@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 +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.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
|
package/lib/cjs/CheckSelect.js
CHANGED
@@ -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(
|
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,
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -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(
|
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,
|