mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Tabs): setLine when popup reopened (#8792)
This commit is contained in:
parent
c608f15f47
commit
34f389917f
@ -60,6 +60,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
created() {
|
||||
// https://github.com/youzan/vant/issues/8634
|
||||
if (this.vanPopup) {
|
||||
this.vanPopup.onReopen(() => {
|
||||
this.start();
|
||||
|
@ -42,6 +42,12 @@ export default createComponent({
|
||||
}),
|
||||
],
|
||||
|
||||
inject: {
|
||||
vanPopup: {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
model: {
|
||||
prop: 'active',
|
||||
},
|
||||
@ -171,6 +177,13 @@ export default createComponent({
|
||||
|
||||
mounted() {
|
||||
this.init();
|
||||
|
||||
// https://github.com/youzan/vant/issues/7959
|
||||
if (this.vanPopup) {
|
||||
this.vanPopup.onReopen(() => {
|
||||
this.setLine();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
activated() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user