feat: 所有侧滑增加点击外部后关闭的事件
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template key="panelBox">
|
||||
<transition name="right-box-580">
|
||||
<div class="right-box right-box-panel z-top" v-if="rightBox.show">
|
||||
<div class="right-box right-box-panel z-top" v-if="rightBox.show" v-clickoutside="clickos">
|
||||
<!-- begin--顶部按钮-->
|
||||
<div class="right-box-top-btns">
|
||||
<button type="button" v-if="panel.id != ''" @click="del(panel)" class="nz-btn nz-btn-size-normal nz-btn-size-alien nz-btn-style-light nz-btn-min-width-82">
|
||||
@@ -59,6 +59,9 @@
|
||||
setTitle(title) {
|
||||
this.rightBox.title = title;
|
||||
},
|
||||
clickos() {
|
||||
this.esc();
|
||||
},
|
||||
//面板相关方法
|
||||
del: function(u) {
|
||||
this.$confirm(this.$t("tip.confirmDelete"), {
|
||||
|
||||
Reference in New Issue
Block a user