@hi-ui/check-select 4.4.3 → 4.4.4
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 +9 -0
- package/lib/cjs/CheckSelect.js +1 -1
- package/lib/esm/CheckSelect.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# @hi-ui/check-select
|
2
2
|
|
3
|
+
## 4.4.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2828](https://github.com/XiaoMi/hiui/pull/2828) [`b8679ce3e`](https://github.com/XiaoMi/hiui/commit/b8679ce3e7fab435fd126901e6e8b23268bcf712) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - fix: 修复异步搜索中,搜索结果中关键字没有高亮显示问题
|
8
|
+
|
9
|
+
- Updated dependencies [[`3afbf239e`](https://github.com/XiaoMi/hiui/commit/3afbf239e816ede48d6a85cbd99b6b099b8c8eb3)]:
|
10
|
+
- @hi-ui/env@4.0.7
|
11
|
+
|
3
12
|
## 4.4.3
|
4
13
|
|
5
14
|
### Patch Changes
|
package/lib/cjs/CheckSelect.js
CHANGED
@@ -164,7 +164,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
164
164
|
if (_ret && _ret !== true) return _ret;
|
165
165
|
}
|
166
166
|
// 本地搜索执行默认高亮规则
|
167
|
-
var highlight = !!searchValue && searchMode === 'filter';
|
167
|
+
var highlight = !!searchValue && (searchMode === 'filter' || searchMode === 'dataSource');
|
168
168
|
var ret = highlight ? ( /*#__PURE__*/React__default["default"].createElement(Checkbox__default["default"], {
|
169
169
|
checked: node.checked,
|
170
170
|
disabled: node.disabled
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -150,7 +150,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
150
150
|
if (_ret && _ret !== true) return _ret;
|
151
151
|
}
|
152
152
|
// 本地搜索执行默认高亮规则
|
153
|
-
var highlight = !!searchValue && searchMode === 'filter';
|
153
|
+
var highlight = !!searchValue && (searchMode === 'filter' || searchMode === 'dataSource');
|
154
154
|
var ret = highlight ? ( /*#__PURE__*/React.createElement(Checkbox, {
|
155
155
|
checked: node.checked,
|
156
156
|
disabled: node.disabled
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/check-select",
|
3
|
-
"version": "4.4.
|
3
|
+
"version": "4.4.4",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"@hi-ui/checkbox": "^4.0.10",
|
48
48
|
"@hi-ui/classname": "^4.0.5",
|
49
49
|
"@hi-ui/dom-utils": "^4.0.7",
|
50
|
-
"@hi-ui/env": "^4.0.
|
50
|
+
"@hi-ui/env": "^4.0.7",
|
51
51
|
"@hi-ui/func-utils": "^4.0.4",
|
52
52
|
"@hi-ui/highlighter": "^4.0.9",
|
53
53
|
"@hi-ui/icons": "^4.0.19",
|