🐛(component): 🐛(component): 修复cascader组件 当传入children为空数组时 点击无反应问题
This commit is contained in:
parent
568c77327a
commit
23bff375cf
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
||||
.DS_Store
|
||||
node_modules/
|
||||
package-lock.json
|
||||
|
||||
package/document/dist/
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
|
@ -182,8 +182,7 @@ const selectBar = (item: any, selectIndex: number, parentIndex: number) => {
|
||||
treeData.value[index].selectIndex = null;
|
||||
treeData.value[index].data = [];
|
||||
}
|
||||
|
||||
if (!item.children) {
|
||||
if (!item.children||item.children.length===0) {
|
||||
//输入框数据更新
|
||||
let data: any[] = [];
|
||||
function extractData(orginData: any, dataContainer: any, index: number) {
|
||||
|
Loading…
Reference in New Issue
Block a user