This commit is contained in:
xvv 2024-07-20 16:13:43 +08:00
parent e214172c60
commit 15083eef11
2 changed files with 52 additions and 1 deletions

View File

@ -639,6 +639,5 @@ export default {
background: #FF9655 !important;
border: 1px solid #FF9655 !important;
color: #fff;
}
</style>

View File

@ -0,0 +1,52 @@
<script >
export default {
data(){
return{
activeindex:0,
tablist:[
{
name:'通知模板',
},
{
name:'通知记录',
},
]
}
}
}
</script>
<template>
<div class="container">
<div class="tab-box">
<div class="f-box" v-for="(item,index) in tablist" :key="index" @click="activeindex=index" :class="{ 'active' :activeindex==index}">{{item.name}}</div>
</div>
</div>
</template>
<style scoped lang="scss">
.tab-box{
width: 100%;
background: #fff;
display: flex;
box-sizing: border-box;
padding: 0px 50px;
}
.f-box{
height: 40px;
color: #999999;
margin-right: 50px;
display: flex;
align-items: center;
}
.active{
color: #FF9655 !important;
border-bottom: 2px solid #FF9655 !important;
}
.container{
background: #F4F5F9;
height: 100vh;
}
</style>