Files
peiwan-uniapp/pages/order/blind/components/tabBox.vue

47 lines
682 B
Vue
Raw Normal View History

2025-01-21 01:46:34 +08:00
<template>
<view>
<u-tabs :list="tabList" bg-color="#fff" font-size="28" active-color="var(--ui-BG-Main)" :is-scroll="false" v-model="current" @change="change"></u-tabs>
</view>
</template>
<script>
export default {
components: {
},
props: {
currentValue: 0,
tabList: {
type: Array,
default: [],
},
},
data() {
return {
}
},
computed: {
current: {
get() {
return this.currentValue;
},
set(newValue) {
}
},
},
methods: {
change(index) {
this.$emit('change', index);
},
}
}
</script>
<style lang="scss" scoped>
.tab-box {
background-color: #fff;
padding: 5px 0;
}
</style>