fix(dialog): onEsc

This commit is contained in:
07akioni 2022-07-27 22:59:06 +08:00
parent 6a343873eb
commit ed5be49732

View File

@ -91,10 +91,9 @@ export const NDialogEnvironment = defineComponent({
}
}
function handleEsc (): void {
const { onEsc, closeOnEsc } = props
const { onEsc } = props
if (onEsc) {
onEsc()
closeOnEsc && hide()
}
}
function hide (): void {