master
wangxia 2 months ago
parent 7495ff1865
commit 2e9c25a57e

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

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

Loading…
Cancel
Save