mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[bugfix] Tab: incorrect title position when insert tab pane (#4091)
This commit is contained in:
@@ -110,8 +110,11 @@ export default createComponent({
|
|||||||
|
|
||||||
children() {
|
children() {
|
||||||
this.setCurrentIndexByName(this.currentName || this.active);
|
this.setCurrentIndexByName(this.currentName || this.active);
|
||||||
this.scrollIntoView();
|
|
||||||
this.setLine();
|
this.setLine();
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.scrollIntoView(true);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
currentIndex() {
|
currentIndex() {
|
||||||
|
Reference in New Issue
Block a user