ElemeFE / ElemeFE/element

The El cascade component clearcheckdnodes is invalid. Multiple multiple selection is set. If it is changed to single selection, expanding the lower level selection will be invalid for the first time. You cannot choose to turn off the lower level automatically

Open
#21,075 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

selectItem(i) {
if (i.length == 1) {
this.singleItem = i[0]
}
if (i.length > 1) {
let index = i.findIndex((v) => v === this.singleItem)
i.splice(index, 1)
this.form.category = ''
this.$nextTick(() => {
this.form.category = i
this.singleItem = i[0]
})
}
},

设计到赋值有下级的选项可以触发bug(插入不了视频演示)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.