ztxkui 4.2.18-113 → 4.2.18-114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,7 +180,7 @@ function EnhanceTreeSelect(_a) {
180
180
  }
181
181
  return data;
182
182
  })();
183
- return (React.createElement(TreeSelect, __assign({ allowClear: true, showSearch: true, filterTreeNode: true, treeNodeFilterProp: "title", treeData: finalTreeData, searchValue: searchValue, onSearch: onSearch, treeDataSimpleMode: asyncLoadChildren, loadData: asyncLoadChildren ? onLoadDataHandle : undefined, onChange: handleChange, fieldNames: fieldNames }, restProps)));
183
+ return (React.createElement(TreeSelect, __assign({ allowClear: true, showSearch: true, filterTreeNode: true, treeNodeFilterProp: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title', treeData: finalTreeData, searchValue: searchValue, onSearch: onSearch, treeDataSimpleMode: asyncLoadChildren, loadData: asyncLoadChildren ? onLoadDataHandle : undefined, onChange: handleChange, fieldNames: fieldNames }, restProps)));
184
184
  }
185
185
  EnhanceTreeSelect.SHOW_PARENT = TreeSelect.SHOW_PARENT;
186
186
  export default EnhanceTreeSelect;
@@ -79,7 +79,7 @@ function TreeSelect(props) {
79
79
  prevValueRef.current = value;
80
80
  onChange === null || onChange === void 0 ? void 0 : onChange(value, labelList, extra);
81
81
  };
82
- return (React.createElement(AntdTreeSelect, __assign({ searchValue: searchValue, onSearch: onSearch, treeData: finalTreeData, onChange: handleChange, fieldNames: fieldNames }, restProps)));
82
+ return (React.createElement(AntdTreeSelect, __assign({ searchValue: searchValue, onSearch: onSearch, treeData: finalTreeData, onChange: handleChange, fieldNames: fieldNames, treeNodeFilterProp: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title' }, restProps)));
83
83
  }
84
84
  TreeSelect.SHOW_PARENT = AntdTreeSelect.SHOW_PARENT;
85
85
  TreeSelect.SHOW_CHILD = AntdTreeSelect.SHOW_CHILD;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.18-113",
3
+ "version": "4.2.18-114",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",