mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-29 20:29:46 +08:00
fix(cascader): 修复cascader组件onClickTab事件没有同步activeTab的值导致选择异常的问题
This commit is contained in:
parent
acdf1ad280
commit
92ae4a29c0
@ -193,6 +193,9 @@ VantComponent({
|
|||||||
onClickTab(e) {
|
onClickTab(e) {
|
||||||
const { index: tabIndex, title } = e.detail;
|
const { index: tabIndex, title } = e.detail;
|
||||||
this.$emit('click-tab', { title, tabIndex });
|
this.$emit('click-tab', { title, tabIndex });
|
||||||
|
this.setData({
|
||||||
|
activeTab: tabIndex,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 选中
|
// 选中
|
||||||
onSelect(e) {
|
onSelect(e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user