mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
done
This commit is contained in:
@@ -5,19 +5,21 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'zan-badge-group',
|
||||
props: {
|
||||
// 当前激活 tab 面板的 key
|
||||
activeKey: {
|
||||
type: [Number, String],
|
||||
default: 0
|
||||
export default {
|
||||
name: 'zan-badge-group',
|
||||
|
||||
props: {
|
||||
// 当前激活 tab 面板的 key
|
||||
activeKey: {
|
||||
type: [Number, String],
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
computedActiveKey: this.activeKey
|
||||
};
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
computedActiveKey: this.activeKey
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
@@ -30,10 +30,10 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
classNames () {
|
||||
classNames() {
|
||||
return {
|
||||
'is-select': this.mark == this.$parent.computedActiveKey ? true : false
|
||||
}
|
||||
'is-select': this.mark === this.$parent.computedActiveKey
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -49,7 +49,7 @@ export default {
|
||||
|
||||
set(val) {
|
||||
if (this.isGroup && this.parentGroup) {
|
||||
this.parentGroup.$emit('input', val);
|
||||
this.parentGroup.$emit('input', val);
|
||||
} else {
|
||||
this.$emit('input', val);
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@
|
||||
},
|
||||
handleSearch() {
|
||||
// input输入回车后,发送回调
|
||||
this.$emit('search', this.value)
|
||||
this.$emit('search', this.value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user