@hi-ui/check-select 4.4.2-alpha.0 → 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 +21 -18
- package/lib/cjs/CheckSelect.js +3 -1
- package/lib/esm/CheckSelect.js +3 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
@@ -1,26 +1,29 @@
|
|
1
1
|
# @hi-ui/check-select
|
2
2
|
|
3
|
-
## 4.4.
|
3
|
+
## 4.4.3
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- @hi-ui/
|
17
|
-
- @hi-ui/
|
18
|
-
- @hi-ui/
|
19
|
-
- @hi-ui/
|
20
|
-
- @hi-ui/
|
21
|
-
- @hi-ui/
|
22
|
-
- @hi-ui/
|
23
|
-
- @hi-ui/
|
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
|
+
|
9
|
+
## 4.4.2
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [#2791](https://github.com/XiaoMi/hiui/pull/2791) [`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715) Thanks [@zyprepare](https://github.com/zyprepare)! - build: style-inject(node 环境下有问题) 替换为 @hi-ui/style-inject
|
14
|
+
|
15
|
+
- Updated dependencies [[`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715)]:
|
16
|
+
- @hi-ui/env@4.0.5
|
17
|
+
- @hi-ui/icons@4.0.19
|
18
|
+
- @hi-ui/checkbox@4.0.10
|
19
|
+
- @hi-ui/highlighter@4.0.9
|
20
|
+
- @hi-ui/input@4.1.1
|
21
|
+
- @hi-ui/picker@4.1.6
|
22
|
+
- @hi-ui/popper@4.1.5
|
23
|
+
- @hi-ui/tag-input@4.1.1
|
24
|
+
- @hi-ui/virtual-list@4.0.8
|
25
|
+
- @hi-ui/array-utils@4.0.5
|
26
|
+
- @hi-ui/classname@4.0.5
|
24
27
|
|
25
28
|
## 4.4.1
|
26
29
|
|
package/lib/cjs/CheckSelect.js
CHANGED
@@ -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) {
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -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.
|
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>",
|
@@ -43,18 +43,18 @@
|
|
43
43
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@hi-ui/array-utils": "^4.0.5
|
47
|
-
"@hi-ui/checkbox": "^4.0.10
|
48
|
-
"@hi-ui/classname": "^4.0.5
|
49
|
-
"@hi-ui/dom-utils": "^4.0.
|
50
|
-
"@hi-ui/env": "^4.0.5
|
51
|
-
"@hi-ui/func-utils": "^4.0.
|
52
|
-
"@hi-ui/highlighter": "^4.0.9
|
53
|
-
"@hi-ui/icons": "^4.0.19
|
54
|
-
"@hi-ui/input": "^4.1.1
|
55
|
-
"@hi-ui/picker": "^4.1.6
|
56
|
-
"@hi-ui/popper": "^4.1.5
|
57
|
-
"@hi-ui/tag-input": "^4.1.1
|
46
|
+
"@hi-ui/array-utils": "^4.0.5",
|
47
|
+
"@hi-ui/checkbox": "^4.0.10",
|
48
|
+
"@hi-ui/classname": "^4.0.5",
|
49
|
+
"@hi-ui/dom-utils": "^4.0.7",
|
50
|
+
"@hi-ui/env": "^4.0.5",
|
51
|
+
"@hi-ui/func-utils": "^4.0.4",
|
52
|
+
"@hi-ui/highlighter": "^4.0.9",
|
53
|
+
"@hi-ui/icons": "^4.0.19",
|
54
|
+
"@hi-ui/input": "^4.1.1",
|
55
|
+
"@hi-ui/picker": "^4.1.6",
|
56
|
+
"@hi-ui/popper": "^4.1.5",
|
57
|
+
"@hi-ui/tag-input": "^4.1.1",
|
58
58
|
"@hi-ui/times": "^4.0.4",
|
59
59
|
"@hi-ui/tree-utils": "^4.1.6",
|
60
60
|
"@hi-ui/type-assertion": "^4.0.4",
|
@@ -62,18 +62,18 @@
|
|
62
62
|
"@hi-ui/use-children": "^4.0.4",
|
63
63
|
"@hi-ui/use-data-source": "^4.0.4",
|
64
64
|
"@hi-ui/use-latest": "^4.0.4",
|
65
|
-
"@hi-ui/use-search-mode": "^4.1.
|
65
|
+
"@hi-ui/use-search-mode": "^4.1.4",
|
66
66
|
"@hi-ui/use-toggle": "^4.0.4",
|
67
67
|
"@hi-ui/use-uncontrolled-state": "^4.0.4",
|
68
|
-
"@hi-ui/virtual-list": "^4.0.8
|
68
|
+
"@hi-ui/virtual-list": "^4.0.8"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|
71
|
-
"@hi-ui/core": ">=4.0.
|
71
|
+
"@hi-ui/core": ">=4.0.8",
|
72
72
|
"react": ">=16.8.6",
|
73
73
|
"react-dom": ">=16.8.6"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@hi-ui/core": "^4.0.
|
76
|
+
"@hi-ui/core": "^4.0.8",
|
77
77
|
"@hi-ui/core-css": "^4.1.5",
|
78
78
|
"react": "^17.0.1",
|
79
79
|
"react-dom": "^17.0.1"
|