Develop dictionary management function

This commit is contained in:
zyronon
2023-11-26 02:53:49 +08:00
parent 502d4942dd
commit 04291d8728
2 changed files with 172 additions and 33 deletions

View File

@@ -8,12 +8,14 @@ export class MessageBox {
title: string,
onOk: () => any = () => void 0,
onCancel: () => any = () => void 0,
onClose: () => any = () => void 0,
config: ModalProps = {}
) {
let container = document.createElement('div')
const close = () => {
render(null, container);
container.remove()
onClose?.()
}
const vNode = createVNode(Dialog, {