mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
dialog component
This commit is contained in:
parent
c45822b400
commit
3bed02995d
@ -24,7 +24,7 @@ const defaultCallback = action => {
|
||||
}
|
||||
};
|
||||
|
||||
var initInstance = () => {
|
||||
const initInstance = () => {
|
||||
instance = new DialogConstructor({
|
||||
el: document.createElement('div')
|
||||
});
|
||||
@ -32,7 +32,7 @@ var initInstance = () => {
|
||||
instance.callback = defaultCallback;
|
||||
};
|
||||
|
||||
var showNextDialog = () => {
|
||||
const showNextDialog = () => {
|
||||
if (!instance) {
|
||||
initInstance();
|
||||
}
|
||||
|
@ -52,6 +52,9 @@ const PopupManager = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 遮罩层点击回调,`closeOnClickOverlay`为`true`时会关闭当前`popup`
|
||||
*/
|
||||
handleOverlayClick() {
|
||||
const topModal = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
||||
if (!topModal) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user