element级联选择器一级单选、二级多选
代码:
const tag = ref(-1)
function change(item){
item.forEach(v => {
this.tag = v[0]
})
let filterd = item.filter(v => v[0] == this.tag)
this.selectDepartment = filterd
}
在级联选择器中添加change事件
代码:
const tag = ref(-1)
function change(item){
item.forEach(v => {
this.tag = v[0]
})
let filterd = item.filter(v => v[0] == this.tag)
this.selectDepartment = filterd
}
在级联选择器中添加change事件