@hi-ui/check-tree-select 5.0.0-canary.2 → 5.0.0-canary.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @hi-ui/check-tree-select
2
2
 
3
+ ## 5.0.0-canary.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 40f819417: fix: 修复 UI 问题 (5.0)
8
+ - Updated dependencies [40f819417]
9
+ - @hi-ui/tag-input@5.0.0-canary.6
10
+
11
+ ## 5.0.0-canary.3
12
+
13
+ ### Patch Changes
14
+
15
+ - a89b3b3ae: fix: 修改组件问题 (5.0)
16
+
3
17
  ## 5.0.0-canary.2
4
18
 
5
19
  ### Patch Changes
@@ -214,9 +214,9 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
214
214
  }
215
215
  // 本地搜索执行默认高亮规则
216
216
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
217
- var ret = highlight ? /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
218
- keyword: searchValue
219
- }, node.title) : true;
217
+ var ret = highlight ? ( /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
218
+ keyword: new RegExp(searchValue, 'ig')
219
+ }, node.title)) : true;
220
220
  return ret;
221
221
  }, [titleRender, searchValue, searchMode]);
222
222
  var shouldUseSearch = !!searchValue && !hasError;
@@ -201,9 +201,9 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
201
201
  }
202
202
  // 本地搜索执行默认高亮规则
203
203
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
204
- var ret = highlight ? /*#__PURE__*/React.createElement(Highlighter, {
205
- keyword: searchValue
206
- }, node.title) : true;
204
+ var ret = highlight ? ( /*#__PURE__*/React.createElement(Highlighter, {
205
+ keyword: new RegExp(searchValue, 'ig')
206
+ }, node.title)) : true;
207
207
  return ret;
208
208
  }, [titleRender, searchValue, searchMode]);
209
209
  var shouldUseSearch = !!searchValue && !hasError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-tree-select",
3
- "version": "5.0.0-canary.2",
3
+ "version": "5.0.0-canary.4",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -53,7 +53,7 @@
53
53
  "@hi-ui/icons": "^5.0.0-canary.0",
54
54
  "@hi-ui/picker": "^5.0.0-canary.3",
55
55
  "@hi-ui/popper": "^5.0.0-canary.0",
56
- "@hi-ui/tag-input": "^5.0.0-canary.4",
56
+ "@hi-ui/tag-input": "^5.0.0-canary.6",
57
57
  "@hi-ui/tree": "^5.0.0-canary.0",
58
58
  "@hi-ui/tree-utils": "^5.0.0-canary.0",
59
59
  "@hi-ui/type-assertion": "^5.0.0-canary.0",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@hi-ui/core": "^5.0.0-canary.0",
73
- "@hi-ui/core-css": "^5.0.0-canary.2",
73
+ "@hi-ui/core-css": "^5.0.0-canary.4",
74
74
  "react": "^17.0.1",
75
75
  "react-dom": "^17.0.1"
76
76
  }