feat: 所有侧滑增加点击外部后关闭的事件

This commit is contained in:
陈劲松
2020-02-26 18:26:55 +08:00
parent 54bfb5266f
commit d5f41c9ad0
11 changed files with 44 additions and 16 deletions

View File

@@ -53,7 +53,7 @@
}
</style>
<template key="chartBox">
<div>
<div v-clickoutside="clickos">
<panel-box :panel="panel" @reload="panelReload" ref="panelBox2"></panel-box>
<transition name="right-box">
@@ -270,6 +270,9 @@
show(show) {
this.rightBox.show = show;
},
clickos() {
this.esc();
},
toAddPanel() {
this.$refs.panelBox2.show(true);
this.panel = {