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,
data() {
this.onReopenCallback = [];
return {
inited: this.value,
};
@ -142,9 +135,6 @@ export function PopupMixin(options = {}) {
this.opened = true;
this.renderOverlay();
this.addLock();
this.onReopenCallback.forEach((callback) => {
callback();
});
},
addLock() {
@ -230,10 +220,6 @@ export function PopupMixin(options = {}) {
updateZIndex(value = 0) {
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: {
text: 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() {
this.start();
},

View File

@ -42,12 +42,6 @@ export default createComponent({
}),
],
inject: {
vanPopup: {
default: null,
},
},
model: {
prop: 'active',
},
@ -177,13 +171,6 @@ export default createComponent({
mounted() {
this.init();
// https://github.com/youzan/vant/issues/7959
if (this.vanPopup) {
this.vanPopup.onReopen(() => {
this.setLine();
});
}
},
activated() {