master
wangxia 2 months ago
parent 7495ff1865
commit 2e9c25a57e

@ -27,10 +27,18 @@ export default {
}, },
data() { data() {
return { return {
activeIndex: this.current, // activeIndex: this.current, // computed
targetScrollId: `tab-${this.current}`, // scroll-into-viewid // targetScrollId: `tab-${this.current}`, // scroll-into-viewid(computed)
}; };
}, },
computed: {
activeIndex() {
return this.current;
},
targetScrollId() {
return `tab-${this.current}`;
},
},
methods: { methods: {
// tab // tab
handleTabClick(index) { handleTabClick(index) {

@ -617,6 +617,7 @@ export default {
} else { } else {
that.tabInfo.active = 1; that.tabInfo.active = 1;
} }
console.log('that.tabInfo.active',that.tabInfo.active);
callback(); callback();
}); });
}, },

Loading…
Cancel
Save