@hi-ui/check-select 4.4.0 → 4.4.1
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.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/CheckSelect.js +4 -1
- package/lib/esm/CheckSelect.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @hi-ui/check-select
|
2
2
|
|
3
|
+
## 4.4.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2771](https://github.com/XiaoMi/hiui/pull/2771) [`eee27bd5f`](https://github.com/XiaoMi/hiui/commit/eee27bd5f81a89169c1c2dc993b9100731cafcbd) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 keyword 受控时搜索结果有误的问题
|
8
|
+
|
3
9
|
## 4.4.0
|
4
10
|
|
5
11
|
### Minor Changes
|
package/lib/cjs/CheckSelect.js
CHANGED
@@ -92,7 +92,8 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
92
92
|
prefix = _a.prefix,
|
93
93
|
suffix = _a.suffix,
|
94
94
|
onKeyDownProp = _a.onKeyDown,
|
95
|
-
|
95
|
+
keywordProp = _a.keyword,
|
96
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
|
96
97
|
var i18n = core.useLocaleContext();
|
97
98
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
|
98
99
|
// ************************** Picker ************************* //
|
@@ -147,6 +148,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
147
148
|
});
|
148
149
|
var _useSearchMode = useSearchMode.useSearchMode({
|
149
150
|
searchable: searchableProp,
|
151
|
+
keyword: keywordProp,
|
150
152
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy]
|
151
153
|
}),
|
152
154
|
stateInSearch = _useSearchMode.state,
|
@@ -286,6 +288,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
286
288
|
onOpen: menuVisibleAction.on,
|
287
289
|
onClose: menuVisibleAction.off,
|
288
290
|
onKeyDown: domUtils.mockDefaultHandlers(handleKeyDown, onKeyDownProp),
|
291
|
+
keyword: keywordProp,
|
289
292
|
searchable: searchable,
|
290
293
|
scrollable: !inVirtual,
|
291
294
|
onSearch: funcUtils.callAllFuncs(onSearchProp, onSearch),
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -78,7 +78,8 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
78
78
|
prefix = _a.prefix,
|
79
79
|
suffix = _a.suffix,
|
80
80
|
onKeyDownProp = _a.onKeyDown,
|
81
|
-
|
81
|
+
keywordProp = _a.keyword,
|
82
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
|
82
83
|
var i18n = useLocaleContext();
|
83
84
|
var placeholder = isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
|
84
85
|
// ************************** Picker ************************* //
|
@@ -133,6 +134,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
133
134
|
});
|
134
135
|
var _useSearchMode = useSearchMode({
|
135
136
|
searchable: searchableProp,
|
137
|
+
keyword: keywordProp,
|
136
138
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy]
|
137
139
|
}),
|
138
140
|
stateInSearch = _useSearchMode.state,
|
@@ -272,6 +274,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
272
274
|
onOpen: menuVisibleAction.on,
|
273
275
|
onClose: menuVisibleAction.off,
|
274
276
|
onKeyDown: mockDefaultHandlers(handleKeyDown, onKeyDownProp),
|
277
|
+
keyword: keywordProp,
|
275
278
|
searchable: searchable,
|
276
279
|
scrollable: !inVirtual,
|
277
280
|
onSearch: callAllFuncs(onSearchProp, onSearch),
|