<!-- 板块导航 头部 点击板块后的头部导航 -->
<template>
    <router-link class="path-box" :to="`/allSections?fid=${fid}`">
        <div>论坛</div>
        <span class="path-slash">/</span>
        <div class="oneEllipsis">{{ stairname }}</div>
        <span class="path-slash">/</span>
        <div class="oneEllipsis">{{ subsectionsname }}</div>
    </router-link>
</template>

<script>
export default {
    name: 'PlateNavigation',

    data() {
        return {
            path: "/allSections",
        };
    },
    props: ["stairname", "subsectionsname", "fid"],
    mounted() {

    },

    methods: {

    },
};
</script>

<style lang="scss" scoped>
//路径
.path-box {
    display: flex;
    flex-direction: row;
    height: 1.28rem;
    line-height: 1.28rem;
    margin: 0.5rem 0.35rem 0;
    padding: 0 .4rem;
    border-radius: 1.68rem 1.68rem 0 1.68rem;
    background-color: #fff;
    font-size: 0.32rem;
    -webkit-box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
    position: relative;

    .path-slash {
        color: #D7D7D7;
        font-size: .32rem;
        margin: 0 .18rem;
    }

    div {
        color: #7F7F7F;
        max-width: 2.5rem;

        &:last-child {
            max-width: 50%;
            color: #000;
            font-weight: bold;
        }
    }

    &::after {
        content: "";
        width: 0;
        height: 0;
        position: absolute;
        bottom: 0;
        right: 0;
        border-top: 0.24rem solid rgba(98, 177, 255, 1);
        border-left: 0.24rem solid transparent;
        transform: rotateX(180deg);
        margin: 0 0.09rem 0.09rem 0;
    }

}
</style>