forked from opentiny/tiny-vue
fix(vue-renderless): [cascader] fix cascade component multiple selection configuration emitPath: false does not echo the selected name (#844)
* fix: cascader组件多选 配置 emitPath:false之后不回显选中名称 * fix(vue-renderless): [cascader] fix cascader组件多选 配置 emitPath:false之后不回显选中名称 * fix(vue-renderless): [cascader] fix cascader组件多选 配置 emitPath:false之后不回显选中名称
This commit is contained in:
parent
9ea7373a0a
commit
515887975b
|
@ -328,8 +328,12 @@ export const getCheckedNodes =
|
||||||
return flag
|
return flag
|
||||||
}
|
}
|
||||||
for (let i = 0; i < checkedValue.length; i++) {
|
for (let i = 0; i < checkedValue.length; i++) {
|
||||||
if (Array.isArray(checkedValue[i]) && checkedValue[i].length) {
|
if (Array.isArray(checkedValue[i]) ) {
|
||||||
flag = checkedValue[i][checkedValue[i].length - 1] === str
|
if (checkedValue[i].length) {
|
||||||
|
flag = checkedValue[i][checkedValue[i].length - 1] === str
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flag = checkedValue[i] === str
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
|
|
Loading…
Reference in New Issue