@hi-ui/check-select 4.4.2 → 4.4.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,11 @@
1
1
  # @hi-ui/check-select
2
2
 
3
+ ## 4.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2795](https://github.com/XiaoMi/hiui/pull/2795) [`234687ee0`](https://github.com/XiaoMi/hiui/commit/234687ee0ea4de16faaf771ea6a599bc43971249) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - fix: 修复 onClear 设置后没触发问题
8
+
3
9
  ## 4.4.2
4
10
 
5
11
  ### Patch Changes
@@ -75,6 +75,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
75
75
  visible = _a.visible,
76
76
  onOpen = _a.onOpen,
77
77
  onClose = _a.onClose,
78
+ onClear = _a.onClear,
78
79
  appearance = _a.appearance,
79
80
  invalid = _a.invalid,
80
81
  dataSource = _a.dataSource,
@@ -93,7 +94,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
93
94
  suffix = _a.suffix,
94
95
  onKeyDownProp = _a.onKeyDown,
95
96
  keywordProp = _a.keyword,
96
- rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
97
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "onClear", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
97
98
  var i18n = core.useLocaleContext();
98
99
  var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
99
100
  // ************************** Picker ************************* //
@@ -307,6 +308,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
307
308
  value: value,
308
309
  // @ts-ignore
309
310
  onChange: tryChangeValue,
311
+ onClear: onClear,
310
312
  data: mergedData,
311
313
  invalid: invalid,
312
314
  onClick: function onClick(evt) {
@@ -61,6 +61,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
61
61
  visible = _a.visible,
62
62
  onOpen = _a.onOpen,
63
63
  onClose = _a.onClose,
64
+ onClear = _a.onClear,
64
65
  appearance = _a.appearance,
65
66
  invalid = _a.invalid,
66
67
  dataSource = _a.dataSource,
@@ -79,7 +80,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
79
80
  suffix = _a.suffix,
80
81
  onKeyDownProp = _a.onKeyDown,
81
82
  keywordProp = _a.keyword,
82
- rest = __rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
83
+ rest = __rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "onClear", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
83
84
  var i18n = useLocaleContext();
84
85
  var placeholder = isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
85
86
  // ************************** Picker ************************* //
@@ -293,6 +294,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
293
294
  value: value,
294
295
  // @ts-ignore
295
296
  onChange: tryChangeValue,
297
+ onClear: onClear,
296
298
  data: mergedData,
297
299
  invalid: invalid,
298
300
  onClick: function onClick(evt) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-select",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",