Develop dictionary management function
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user