@hi-ui/check-tree-select 4.2.0 → 4.3.0
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,16 @@
|
|
1
1
|
# @hi-ui/check-tree-select
|
2
2
|
|
3
|
+
## 4.3.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2604](https://github.com/XiaoMi/hiui/pull/2604) [`2dd977a5c`](https://github.com/XiaoMi/hiui/commit/2dd977a5c0db411e07aa5c4ea50ef04f37ebf8d2) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add size api
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies [[`534bfd298`](https://github.com/XiaoMi/hiui/commit/534bfd29852003af2209c3a64e5f1b2b1d37c19e)]:
|
12
|
+
- @hi-ui/tree@4.5.2
|
13
|
+
|
3
14
|
## 4.2.0
|
4
15
|
|
5
16
|
### Minor Changes
|
@@ -116,7 +116,9 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
116
116
|
height = _a.height,
|
117
117
|
showCheckAll = _a.showCheckAll,
|
118
118
|
tagInputProps = _a.tagInputProps,
|
119
|
-
|
119
|
+
_a$size = _a.size,
|
120
|
+
size = _a$size === void 0 ? 'md' : _a$size,
|
121
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "tagInputProps", "size"]);
|
120
122
|
|
121
123
|
var i18n = core.useLocaleContext();
|
122
124
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
@@ -336,6 +338,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
336
338
|
footer: renderDefaultFooter(),
|
337
339
|
loading: rest.loading !== undefined ? rest.loading : loading,
|
338
340
|
trigger: /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({}, tagInputProps, {
|
341
|
+
size: size,
|
339
342
|
// ref={targetElementRef}
|
340
343
|
// onClick={openMenu}
|
341
344
|
// disabled={disabled}
|
@@ -356,6 +359,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
356
359
|
/*#__PURE__*/
|
357
360
|
// 只做渲染,不做逻辑处理(比如搜索过滤后,check操作的是对过滤后的data操作,这是不符合预期的)
|
358
361
|
React__default["default"].createElement(tree.Tree, Object.assign({
|
362
|
+
size: 'md',
|
359
363
|
className: prefixCls + "__tree",
|
360
364
|
selectable: false,
|
361
365
|
checkable: true,
|
@@ -78,7 +78,9 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
78
78
|
height = _a.height,
|
79
79
|
showCheckAll = _a.showCheckAll,
|
80
80
|
tagInputProps = _a.tagInputProps,
|
81
|
-
|
81
|
+
_a$size = _a.size,
|
82
|
+
size = _a$size === void 0 ? 'md' : _a$size,
|
83
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "tagInputProps", "size"]);
|
82
84
|
|
83
85
|
var i18n = useLocaleContext();
|
84
86
|
var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
@@ -298,6 +300,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
298
300
|
footer: renderDefaultFooter(),
|
299
301
|
loading: rest.loading !== undefined ? rest.loading : loading,
|
300
302
|
trigger: /*#__PURE__*/React.createElement(TagInputMock, Object.assign({}, tagInputProps, {
|
303
|
+
size: size,
|
301
304
|
// ref={targetElementRef}
|
302
305
|
// onClick={openMenu}
|
303
306
|
// disabled={disabled}
|
@@ -318,6 +321,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
318
321
|
/*#__PURE__*/
|
319
322
|
// 只做渲染,不做逻辑处理(比如搜索过滤后,check操作的是对过滤后的data操作,这是不符合预期的)
|
320
323
|
React.createElement(Tree, Object.assign({
|
324
|
+
size: 'md',
|
321
325
|
className: prefixCls + "__tree",
|
322
326
|
selectable: false,
|
323
327
|
checkable: true,
|
@@ -3,6 +3,7 @@ import { CheckTreeSelectDataItem, CheckTreeSelectItemEventData, CheckTreeSelectA
|
|
3
3
|
import { FlattedTreeNodeData } from '@hi-ui/tree';
|
4
4
|
import { PickerProps } from '@hi-ui/picker';
|
5
5
|
import { TagInputMockProps } from '@hi-ui/tag-input';
|
6
|
+
import { HiBaseSizeEnum } from '@hi-ui/core';
|
6
7
|
/**
|
7
8
|
* 多项树形选择器
|
8
9
|
*/
|
@@ -140,6 +141,10 @@ export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChan
|
|
140
141
|
* TagInput 参数设置
|
141
142
|
*/
|
142
143
|
tagInputProps?: TagInputMockProps;
|
144
|
+
/**
|
145
|
+
* 设置尺寸
|
146
|
+
*/
|
147
|
+
size?: HiBaseSizeEnum;
|
143
148
|
}
|
144
149
|
/**
|
145
150
|
* 在 checkedIdsSet 为数据合法的情况下,查找所有的半选中态的节点 ids
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/check-tree-select",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"@hi-ui/picker": "^4.1.1",
|
54
54
|
"@hi-ui/popper": "^4.0.5",
|
55
55
|
"@hi-ui/tag-input": "^4.0.6",
|
56
|
-
"@hi-ui/tree": "^4.
|
56
|
+
"@hi-ui/tree": "^4.5.2",
|
57
57
|
"@hi-ui/tree-utils": "^4.0.2",
|
58
58
|
"@hi-ui/type-assertion": "^4.0.1",
|
59
59
|
"@hi-ui/use-check": "^4.0.2",
|
@@ -69,7 +69,7 @@
|
|
69
69
|
},
|
70
70
|
"devDependencies": {
|
71
71
|
"@hi-ui/core": "^4.0.4",
|
72
|
-
"@hi-ui/core-css": "^4.
|
72
|
+
"@hi-ui/core-css": "^4.1.1",
|
73
73
|
"react": "^17.0.1",
|
74
74
|
"react-dom": "^17.0.1"
|
75
75
|
}
|