feat: 增加侧滑点击外部关闭的功能

1.增加:config-account、config-promserver、alert-rule
This commit is contained in:
陈劲松
2020-02-25 18:59:23 +08:00
parent 16771a49bd
commit 9b91b74adb
5 changed files with 37 additions and 9 deletions

View File

@@ -78,7 +78,7 @@
</div>
<transition name="right-box">
<div class="right-box right-box-prom" v-if="rightBox.show">
<div class="right-box right-box-prom" v-if="rightBox.show" v-clickoutside="clickos">
<!-- begin--顶部按钮-->
<div class="right-box-top-btns">
<button type="button" v-if="rightBox.isEdit && promServer.id != ''" @click="del(promServer)"
@@ -364,6 +364,9 @@
this.$store.commit('setHeaderTable', data);
this.tablelable = data;
},
clickos() {
this.rightBox.show = false;
},
toEdit: function (u) {
this.promServer = Object.assign({}, u);
this.rightBox.isEdit = true;