@hi-ui/check-select 4.6.1 → 4.6.2

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,11 @@
1
1
  # @hi-ui/check-select
2
2
 
3
+ ## 4.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3114](https://github.com/XiaoMi/hiui/pull/3114) [`8ddcda3`](https://github.com/XiaoMi/hiui/commit/8ddcda36864ef1ad6679a413f660cfcc7f55e8a3) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-select): 修复 customRender 回调中的 value 值无法显示初始值问题 (#3113)
8
+
3
9
  ## 4.6.1
4
10
 
5
11
  ### Patch Changes
@@ -299,7 +299,10 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
299
299
  onSearch: funcUtils.callAllFuncs(onSearchProp, onSearch),
300
300
  loading: rest.loading !== undefined ? rest.loading : loading,
301
301
  footer: renderDefaultFooter(),
302
- trigger: customRender ? typeof customRender === 'function' ? customRender(checkedItems) : customRender : ( /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({}, tagInputProps, {
302
+ trigger: customRender ? typeof customRender === 'function' ? customRender(dropdownItems.filter(function (item) {
303
+ var _a;
304
+ return value.includes((_a = item.id) !== null && _a !== void 0 ? _a : '');
305
+ })) : customRender : ( /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({}, tagInputProps, {
303
306
  size: size,
304
307
  clearable: clearable,
305
308
  placeholder: placeholder,
@@ -285,7 +285,10 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
285
285
  onSearch: callAllFuncs(onSearchProp, onSearch),
286
286
  loading: rest.loading !== undefined ? rest.loading : loading,
287
287
  footer: renderDefaultFooter(),
288
- trigger: customRender ? typeof customRender === 'function' ? customRender(checkedItems) : customRender : ( /*#__PURE__*/React.createElement(TagInputMock, Object.assign({}, tagInputProps, {
288
+ trigger: customRender ? typeof customRender === 'function' ? customRender(dropdownItems.filter(function (item) {
289
+ var _a;
290
+ return value.includes((_a = item.id) !== null && _a !== void 0 ? _a : '');
291
+ })) : customRender : ( /*#__PURE__*/React.createElement(TagInputMock, Object.assign({}, tagInputProps, {
289
292
  size: size,
290
293
  clearable: clearable,
291
294
  placeholder: placeholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-select",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",