提交一部分民政评分新版

This commit is contained in:
aixianling
2022-12-06 18:04:44 +08:00
parent 0ffed95b87
commit a9e0c68755
4 changed files with 249 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<template>
<section class="AiTabPanes" :style="{background}">
<section class="AiTabPanes" :class="{white}" :style="{background}">
<div class="item" :class="{active:value==i}" v-for="(item, i) in tabs" :key="i"
@click="handleClick(item,i)">{{ item }}
@click="handleClick(item,i)">{{ getLabel(item) }}
</div>
</section>
</template>
@@ -19,9 +19,13 @@ export default {
props: {
value: {default: ""},
tabs: {default: () => []},
background: {default: ""}
background: {default: ""},
white: Boolean
},
methods: {
getLabel(item) {
return item?.label || item
},
handleClick(item, index) {
this.$emit("change", index)
this.$emit("click", item)
@@ -63,5 +67,22 @@ export default {
}
}
}
&.white {
background: #fff;
.item {
color: #666;
&.active {
color: #000;
font-weight: bold;
&:after {
background: #3399FF;
}
}
}
}
}
</style>