Compare commits

..

No commits in common. "34f389917f95fd7a437c792454abfae7d9d3cf89" and "38856e2e1cc1a0fbeb401efeefeda0e282e20fd9" have entirely different histories.

3 changed files with 0 additions and 42 deletions

View File

@ -58,16 +58,9 @@ export function PopupMixin(options = {}) {
}), }),
], ],
provide() {
return {
vanPopup: this,
};
},
props: popupMixinProps, props: popupMixinProps,
data() { data() {
this.onReopenCallback = [];
return { return {
inited: this.value, inited: this.value,
}; };
@ -142,9 +135,6 @@ export function PopupMixin(options = {}) {
this.opened = true; this.opened = true;
this.renderOverlay(); this.renderOverlay();
this.addLock(); this.addLock();
this.onReopenCallback.forEach((callback) => {
callback();
});
}, },
addLock() { addLock() {
@ -230,10 +220,6 @@ export function PopupMixin(options = {}) {
updateZIndex(value = 0) { updateZIndex(value = 0) {
this.$el.style.zIndex = ++context.zIndex + value; this.$el.style.zIndex = ++context.zIndex + value;
}, },
onReopen(callback) {
this.onReopenCallback.push(callback);
},
}, },
}; };
} }

View File

@ -14,12 +14,6 @@ export default createComponent({
}), }),
], ],
inject: {
vanPopup: {
default: null,
},
},
props: { props: {
text: String, text: String,
mode: String, mode: String,
@ -59,15 +53,6 @@ export default createComponent({
}, },
}, },
created() {
// https://github.com/youzan/vant/issues/8634
if (this.vanPopup) {
this.vanPopup.onReopen(() => {
this.start();
});
}
},
activated() { activated() {
this.start(); this.start();
}, },

View File

@ -42,12 +42,6 @@ export default createComponent({
}), }),
], ],
inject: {
vanPopup: {
default: null,
},
},
model: { model: {
prop: 'active', prop: 'active',
}, },
@ -177,13 +171,6 @@ 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() {