折叠面板单独展开后,点击全部展开按钮不生效,直接是全部收起操作

This commit is contained in:
liyuetong
2021-07-23 14:11:03 +08:00
parent 7c110a88a5
commit 00036cd3e5

View File

@@ -153,15 +153,15 @@ export default {
},
appCallBack(data) {
if (data.trigger == 'right_button_click') {
this.collapseAll()
this.isOpen = this.isOpen == '0' ? (this.isOpen = '1') : (this.isOpen = '0')
this.collapseAll()
this.checkBtn() // 初始化显示按钮
}
},
//右上角,全部展开、全部收起
collapseAll(){
let that = this
if(that.activeNames.length){
if(that.isOpen == '1'){
that.activeNames = []
}else{
that.activeNames = []