mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
Co-authored-by: wanyiding <wanyiding@tuhu.cn>
This commit is contained in:
@@ -63,5 +63,6 @@ export const imageEmits = {
|
||||
error: (evt: Event) => evt instanceof Event,
|
||||
switch: (val: number) => isNumber(val),
|
||||
close: () => true,
|
||||
show: () => true,
|
||||
}
|
||||
export type ImageEmits = typeof imageEmits
|
||||
|
||||
@@ -207,6 +207,7 @@ function clickHandler() {
|
||||
prevOverflow = document.body.style.overflow
|
||||
document.body.style.overflow = 'hidden'
|
||||
showViewer.value = true
|
||||
emit('show')
|
||||
}
|
||||
|
||||
function closeViewer() {
|
||||
|
||||
Reference in New Issue
Block a user