add close event handler to image viewer grass pane

This commit is contained in:
nasum 2018-04-20 17:44:30 +09:00
parent 4ecef7d4e2
commit 4bf823d76b
1 changed files with 1 additions and 1 deletions

View File

@ -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>