运费模板性能优化。区域选择使用懒加载

This commit is contained in:
jason committed 2023-05-22 23:10:22 +08:00
1 parent 855e4d3d02
commit af2fb4bf5f
5 files changed
+158 -45

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ const DEFAULT_CONFIG: TreeHelperConfig = {
export const defaultProps = {
children: 'children',
label: 'name',
value: 'id'
value: 'id',
isLeaf: 'leaf'
}
const getConfig = (config: Partial<TreeHelperConfig>) => Object.assign({}, DEFAULT_CONFIG, config)