feat: 所有侧滑增加点击外部后关闭的事件
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<transition name="right-box">
|
||||
<div class="right-box right-box-module" v-if="rightBox.show">
|
||||
<div class="right-box right-box-module" v-if="rightBox.show" v-clickoutside="clickos">
|
||||
<!-- begin--顶部按钮-->
|
||||
<div class="right-box-top-btns">
|
||||
<button id="module-del" type="button" v-if="module.id != '' && rightBox.isEdit" @click="del" class="nz-btn nz-btn-size-normal nz-btn-size-alien nz-btn-style-light nz-btn-min-width-82">
|
||||
@@ -140,6 +140,10 @@
|
||||
this.rightBox.show = false;
|
||||
},
|
||||
|
||||
clickos() {
|
||||
this.esc();
|
||||
},
|
||||
|
||||
/*保存*/
|
||||
save() {
|
||||
this.module.param = this.paramToJson(this.module.paramObj);
|
||||
|
||||
Reference in New Issue
Block a user