mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
Merge pull request #5219 from muzhichu/hotfix/cascader-tabclick
fix(cascader): 修复cascader组件onClickTab事件没有同步activeTab的值导致选择异常的问题
This commit is contained in:
commit
c7f2f45430
@ -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