el-cascader选中后不隐藏下拉
<el-cascader
ref="elcascader"
@visible-change="elCascaderOnlick"
@expand-change="elCascaderOnlick"
>
</el-cascader>
elCascaderOnlick() {
let that = this
setTimeout(function () {
document.querySelectorAll('.el-radio__inner').forEach((el) => {
el.onclick = function () {
this.previousElementSibling.click()
that.$refs.elcascader.dropDownVisible = false
}
})
document.querySelectorAll('.el-cascader-panel .el-radio').forEach((el) => {
el.onclick = function () {
that.$refs.elcascader.dropDownVisible = false
}
})
}, 100)
},