diff --git a/src/notice-bar/index.js b/src/notice-bar/index.js index a1519ce63..b591dbb08 100644 --- a/src/notice-bar/index.js +++ b/src/notice-bar/index.js @@ -60,6 +60,7 @@ export default createComponent({ }, created() { + // https://github.com/youzan/vant/issues/8634 if (this.vanPopup) { this.vanPopup.onReopen(() => { this.start(); diff --git a/src/tabs/index.js b/src/tabs/index.js index a0d9e43b1..d68edbc4d 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -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() {