template>服务器托管网
div class="container">
div class="primary">
div
class="item"
v-for="(item, index) in categoryList"
:key="item.id"
:class="{ active: index === activeIndex }"
@click="activeIndex = index"
>
{{ item.服务器托管网label }}
div>
div>
div>
template>
script>
export default {
data() {
return {
activeIndex: 0,
categoryList: [
{
label: "精选好物",
},
{
label: "炫酷动漫",
},
{
label: "贺岁影院",
},
],
};
},
};
script>
style lang="scss" scoped>
.primary {
overflow: hidden;
width: 180px;
flex: none;
background-color: #f6f6f6;
.item {
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
height: 96px;
font-size: 26px;
color: #595c63;
position: relative;
&::after {
content: "";
position: absolute;
left: 42px;
bottom: 0;
width: 96px;
border-top: 1px solid #e3e4e7;
}
}
.active {
background-color: #fff;
&::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 8px;
height: 100%;
background-color: #27ba9b;
}
}
}
// 移除最后一项和高亮项的灰色线条
.primary .item:last-child::after,
.primary .active::after {
display: none;
}
.container {
margin: 30px;
}
style>
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: STM32CubeMX教程16 DAC – 输出3.3V内任意电压
1、准备材料 开发板(正点原子stm32f407探索者开发板V2.4) STM32CubeMX软件(Version 6.10.0) keil Vision5 IDE(MDK-Arm) ST-LINK/V2驱动 野火DAP仿真器 XCOM V2.6串口助手 2、…