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() {
|
created() {
|
||||||
|
// https://github.com/youzan/vant/issues/8634
|
||||||
if (this.vanPopup) {
|
if (this.vanPopup) {
|
||||||
this.vanPopup.onReopen(() => {
|
this.vanPopup.onReopen(() => {
|
||||||
this.start();
|
this.start();
|
||||||
|
@ -42,6 +42,12 @@ export default createComponent({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
inject: {
|
||||||
|
vanPopup: {
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
model: {
|
model: {
|
||||||
prop: 'active',
|
prop: 'active',
|
||||||
},
|
},
|
||||||
@ -171,6 +177,13 @@ export default createComponent({
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
|
|
||||||
|
// https://github.com/youzan/vant/issues/7959
|
||||||
|
if (this.vanPopup) {
|
||||||
|
this.vanPopup.onReopen(() => {
|
||||||
|
this.setLine();
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user