@hi-ui/tree-select 5.0.0-canary.1 → 5.0.0-canary.3

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,23 @@
1
1
  # @hi-ui/tree-select
2
2
 
3
+ ## 5.0.0-canary.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a89b3b3ae: fix: 修改组件问题 (5.0)
8
+
9
+ ## 5.0.0-canary.2
10
+
11
+ ### Patch Changes
12
+
13
+ - df3615e78: <br>
14
+ - style(tag-input): 间距调整 (5.0)
15
+ - style(select): 选择类组件选项圆角改为 4px (5.0)
16
+ - style(picker): 搜索框样式调整 (5.0)
17
+ - Updated dependencies [3cb3377dc]
18
+ - Updated dependencies [df3615e78]
19
+ - @hi-ui/picker@5.0.0-canary.3
20
+
3
21
  ## 5.0.0-canary.1
4
22
 
5
23
  ### Minor Changes
@@ -195,9 +195,9 @@ var TreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
195
195
  }
196
196
  // 本地搜索执行默认高亮规则
197
197
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
198
- var ret = highlight ? /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
199
- keyword: searchValue
200
- }, node.title) : true;
198
+ var ret = highlight ? ( /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
199
+ keyword: new RegExp(searchValue, 'ig')
200
+ }, node.title)) : true;
201
201
  return ret;
202
202
  }, [titleRender, searchValue, searchMode]);
203
203
  var shouldUseSearch = !!searchValue && !hasError;
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, '__esModule', {
13
13
  value: true
14
14
  });
15
- var css_248z = "";
15
+ var css_248z = ".hi-v5-tree-select__tree .hi-v5-tree-node__wrap {border-radius: var(--hi-v5-border-radius-md, 4px);}";
16
16
  var __styleInject__ = require('@hi-ui/style-inject')["default"];
17
17
  __styleInject__(css_248z);
18
18
  exports["default"] = css_248z;
@@ -183,9 +183,9 @@ var TreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
183
183
  }
184
184
  // 本地搜索执行默认高亮规则
185
185
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
186
- var ret = highlight ? /*#__PURE__*/React.createElement(Highlighter, {
187
- keyword: searchValue
188
- }, node.title) : true;
186
+ var ret = highlight ? ( /*#__PURE__*/React.createElement(Highlighter, {
187
+ keyword: new RegExp(searchValue, 'ig')
188
+ }, node.title)) : true;
189
189
  return ret;
190
190
  }, [titleRender, searchValue, searchMode]);
191
191
  var shouldUseSearch = !!searchValue && !hasError;
@@ -8,6 +8,6 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import __styleInject__ from '@hi-ui/style-inject';
11
- var css_248z = "";
11
+ var css_248z = ".hi-v5-tree-select__tree .hi-v5-tree-node__wrap {border-radius: var(--hi-v5-border-radius-md, 4px);}";
12
12
  __styleInject__(css_248z);
13
13
  export { css_248z as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/tree-select",
3
- "version": "5.0.0-canary.1",
3
+ "version": "5.0.0-canary.3",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -51,7 +51,7 @@
51
51
  "@hi-ui/highlighter": "^5.0.0-canary.0",
52
52
  "@hi-ui/icons": "^5.0.0-canary.0",
53
53
  "@hi-ui/input": "^5.0.0-canary.2",
54
- "@hi-ui/picker": "^5.0.0-canary.0",
54
+ "@hi-ui/picker": "^5.0.0-canary.3",
55
55
  "@hi-ui/popper": "^5.0.0-canary.0",
56
56
  "@hi-ui/tree": "^5.0.0-canary.0",
57
57
  "@hi-ui/tree-utils": "^5.0.0-canary.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@hi-ui/core": "^5.0.0-canary.0",
71
- "@hi-ui/core-css": "^5.0.0-canary.0",
71
+ "@hi-ui/core-css": "^5.0.0-canary.4",
72
72
  "react": "^17.0.1",
73
73
  "react-dom": "^17.0.1"
74
74
  }