fix: 修复实体列表展开后点击外部无法收回的问题
This commit is contained in:
@@ -66,7 +66,11 @@ export default {
|
|||||||
},
|
},
|
||||||
collapse () {
|
collapse () {
|
||||||
this.isCollapse = true
|
this.isCollapse = true
|
||||||
this.$refs[`detectionRow${this.collapseIndex}`].collapse()
|
if (this.$refs[`detectionRow${this.collapseIndex}`] && this.$refs[`detectionRow${this.collapseIndex}`].collapse) {
|
||||||
|
this.$refs[`detectionRow${this.collapseIndex}`].collapse()
|
||||||
|
} else {
|
||||||
|
this.$refs[`detectionRow${this.collapseIndex}`][0].collapse()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleScroll (e) {
|
handleScroll (e) {
|
||||||
if (e.target.className === 'cn-detection__shadow') {
|
if (e.target.className === 'cn-detection__shadow') {
|
||||||
|
|||||||
@@ -95,7 +95,11 @@ export default {
|
|||||||
},
|
},
|
||||||
collapse () {
|
collapse () {
|
||||||
this.isCollapse = true
|
this.isCollapse = true
|
||||||
this.$refs[`entityRow${this.collapseIndex}`].collapse()
|
if (this.$refs[`entityRow${this.collapseIndex}`] && this.$refs[`entityRow${this.collapseIndex}`].collapse) {
|
||||||
|
this.$refs[`entityRow${this.collapseIndex}`].collapse()
|
||||||
|
} else {
|
||||||
|
this.$refs[`entityRow${this.collapseIndex}`][0].collapse()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
pageNo (val) {
|
pageNo (val) {
|
||||||
this.$emit('pageNo', val)
|
this.$emit('pageNo', val)
|
||||||
|
|||||||
Reference in New Issue
Block a user