refs #561 Close side bar with esc

This commit is contained in:
AkiraFukushima 2018-08-23 09:21:03 +09:00
parent 7ebddf0d42
commit 9c84ff0da1
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<transition name="slide-detail"> <transition name="slide-detail">
<div id="side_bar" v-if="openSideBar"> <div id="side_bar" v-if="openSideBar" v-shortkey="['esc']" @shortkey="close">
<div class="header"> <div class="header">
<i class="el-icon-loading" v-show="loading"></i> <i class="el-icon-loading" v-show="loading"></i>
<i class="el-icon-close" @click="close"></i> <i class="el-icon-close" @click="close"></i>