幼教产品B2B生态平台小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
726 B

12 months ago
<template>
<view class="sideSelect">
11 months ago
<view v-for="(item, i) in menus" :key="i" :class="['item', {active: cur === item.id }]" @click="menuChange(item)">{{ item.classificationName }}</view>
12 months ago
</view>
</template>
<script>
export default {
name:"sideSelect",
props: {
menus: {
type: Array,
default: () => []
},
},
data() {
return {
cur: ''
};
},
methods: {
menuChange(item) {
this.cur = item.id
12 months ago
this.$emit('menuClick', item)
12 months ago
}
}
}
</script>
<style scoped lang="scss">
.sideSelect {
min-width: 200rpx;
font-size: 28rpx;
text-align: center;
11 months ago
background-color: #fff;
12 months ago
.item {
padding: 20rpx 0;
}
.active {
color: #fff;
background-color: $uni-primary;
}
}
</style>