标签选中状态问题

This commit is contained in:
李志鹏
2025-10-27 15:42:04 +08:00
parent d474af9bf7
commit 41f9293957

View File

@@ -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">