🐛(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
|
.DS_Store
|
||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
package/document/dist/
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
@ -182,8 +182,7 @@ const selectBar = (item: any, selectIndex: number, parentIndex: number) => {
|
|||||||
treeData.value[index].selectIndex = null;
|
treeData.value[index].selectIndex = null;
|
||||||
treeData.value[index].data = [];
|
treeData.value[index].data = [];
|
||||||
}
|
}
|
||||||
|
if (!item.children||item.children.length===0) {
|
||||||
if (!item.children) {
|
|
||||||
//输入框数据更新
|
//输入框数据更新
|
||||||
let data: any[] = [];
|
let data: any[] = [];
|
||||||
function extractData(orginData: any, dataContainer: any, index: number) {
|
function extractData(orginData: any, dataContainer: any, index: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user