add close event handler to image viewer grass pane
This commit is contained in:
parent
4ecef7d4e2
commit
4bf823d76b
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<transition name="image-viewer">
|
||||
<div id="image" v-if="modalOpen">
|
||||
<div id="image" v-if="modalOpen" @click="close">
|
||||
<div class="image-wrapper" @keyup.esc.exact="close" tabindex="-1" ref="wrapper">
|
||||
<div class="image-header">
|
||||
<el-button type="text" icon="el-icon-close" @click="close" class="close-button"></el-button>
|
||||
|
|
Loading…
Reference in New Issue