@hi-ui/check-tree-select 4.6.0 → 4.6.1-alpha.0
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.
@@ -97,7 +97,8 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
97
97
|
customRender = _a.customRender,
|
98
98
|
prefix = _a.prefix,
|
99
99
|
suffix = _a.suffix,
|
100
|
-
|
100
|
+
keywordProp = _a.keyword,
|
101
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "keyword"]);
|
101
102
|
var i18n = core.useLocaleContext();
|
102
103
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
103
104
|
var _useUncontrolledToggl = useToggle.useUncontrolledToggle({
|
@@ -195,6 +196,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
195
196
|
});
|
196
197
|
var _useSearchMode = useSearchMode.useSearchMode({
|
197
198
|
searchable: searchableProp,
|
199
|
+
keyword: keywordProp,
|
198
200
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy, highlightSearchStrategy]
|
199
201
|
}),
|
200
202
|
stateInSearch = _useSearchMode.state,
|
@@ -299,6 +301,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
299
301
|
// onChange={tryChangeValue}
|
300
302
|
// data={mergedData}
|
301
303
|
searchable: searchable,
|
304
|
+
keyword: keywordProp,
|
302
305
|
onSearch: funcUtils.callAllFuncs(onSearchProp, onSearch),
|
303
306
|
footer: renderDefaultFooter(),
|
304
307
|
loading: rest.loading !== undefined ? rest.loading : loading,
|
@@ -84,7 +84,8 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
84
84
|
customRender = _a.customRender,
|
85
85
|
prefix = _a.prefix,
|
86
86
|
suffix = _a.suffix,
|
87
|
-
|
87
|
+
keywordProp = _a.keyword,
|
88
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "keyword"]);
|
88
89
|
var i18n = useLocaleContext();
|
89
90
|
var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
90
91
|
var _useUncontrolledToggl = useUncontrolledToggle({
|
@@ -182,6 +183,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
182
183
|
});
|
183
184
|
var _useSearchMode = useSearchMode({
|
184
185
|
searchable: searchableProp,
|
186
|
+
keyword: keywordProp,
|
185
187
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy, highlightSearchStrategy]
|
186
188
|
}),
|
187
189
|
stateInSearch = _useSearchMode.state,
|
@@ -286,6 +288,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
286
288
|
// onChange={tryChangeValue}
|
287
289
|
// data={mergedData}
|
288
290
|
searchable: searchable,
|
291
|
+
keyword: keywordProp,
|
289
292
|
onSearch: callAllFuncs(onSearchProp, onSearch),
|
290
293
|
footer: renderDefaultFooter(),
|
291
294
|
loading: rest.loading !== undefined ? rest.loading : loading,
|