Skip to content

Commit

Permalink
修改拼写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Luozf12345 committed Jul 17, 2024
1 parent 7677815 commit 211bcbe
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 252 deletions.
49 changes: 0 additions & 49 deletions tdesign-component/example/assets/code/upload._uploadError.txt

This file was deleted.

55 changes: 0 additions & 55 deletions tdesign-component/example/assets/code/upload._uploadLoading.txt

This file was deleted.

55 changes: 0 additions & 55 deletions tdesign-component/example/assets/code/upload._uploadMultiple.txt

This file was deleted.

49 changes: 0 additions & 49 deletions tdesign-component/example/assets/code/upload._uploadRetry.txt

This file was deleted.

39 changes: 0 additions & 39 deletions tdesign-component/example/assets/code/upload._uploadSingle.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class _TDMultiCascaderState extends State<TDMultiCascader> with TickerProviderSt
_tabListData.insert(level, item);
_selectTabValue = item.value;
//下一级查询
_getChildenListData(level + 1, item.value!);
_getChildrenListData(level + 1, item.value!);
});
},
child: Container(
Expand Down Expand Up @@ -422,18 +422,18 @@ class _TDMultiCascaderState extends State<TDMultiCascader> with TickerProviderSt
setState(() {});
}

void _getChildenListData(int level, String value) {
void _getChildrenListData(int level, String value) {
//查询层级数据
List<MultiCascaderListModel> selectLevelData = _listData.where((element) => element.level == (level)).toList();
var selectLevelData = _listData.where((element) => element.level == (level)).toList();
//判断下级是否存在
if (selectLevelData.isNotEmpty) {
//获取下级数据
List<MultiCascaderListModel> childList =
var childList =
selectLevelData.where((element) => element.parentValue == value).toList();
_selectListData = childList;
_currentTabIndex += 1;
} else {
List<MultiCascaderListModel> result = _tabListData.where((element) => element.label != '选择选项').toList();
var result = _tabListData.where((element) => element.label != '选择选项').toList();
widget.onChange(result);
Navigator.of(context).pop();
}
Expand Down

0 comments on commit 211bcbe

Please sign in to comment.