标签选中状态问题
This commit is contained in:
@@ -333,21 +333,24 @@ export default defineComponent({
|
||||
|
||||
return data
|
||||
},
|
||||
deleteShow(value:any){
|
||||
deleteShow(v:any){
|
||||
// this.options
|
||||
this.labelBor = false
|
||||
for(let index = 0; index<value.length; index++){
|
||||
if(value[index].checkAll){
|
||||
this.labelBor = true
|
||||
// break
|
||||
return
|
||||
const call = (value:any)=> {
|
||||
for(let index = 0; index<value.length; index++){
|
||||
if(value[index].checkAll){
|
||||
this.labelBor = true
|
||||
// break
|
||||
return
|
||||
}
|
||||
if(value[index].childList != null){
|
||||
call(value[index].childList)
|
||||
}
|
||||
}
|
||||
if(value[index].childList != null){
|
||||
this.deleteShow(value[index].childList)
|
||||
}
|
||||
}
|
||||
};
|
||||
call(v)
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<style lang="less">
|
||||
|
||||
Reference in New Issue
Block a user