@hi-ui/check-tree-select 4.0.0-beta.31 → 4.0.0-beta.32
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.
@@ -101,7 +101,10 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
101
101
|
displayRender = _a.displayRender,
|
102
102
|
placeholderProp = _a.placeholder,
|
103
103
|
appearance = _a.appearance,
|
104
|
-
|
104
|
+
virtual = _a.virtual,
|
105
|
+
itemHeight = _a.itemHeight,
|
106
|
+
height = _a.height,
|
107
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "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"]);
|
105
108
|
|
106
109
|
var i18n = localeContext.useLocaleContext();
|
107
110
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
@@ -308,7 +311,10 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
308
311
|
// TODO: 支持 fieldNames
|
309
312
|
// @ts-ignore
|
310
313
|
onLoadChildren: onLoadChildren,
|
311
|
-
fieldNames: fieldNames
|
314
|
+
fieldNames: fieldNames,
|
315
|
+
virtual: virtual,
|
316
|
+
itemHeight: itemHeight,
|
317
|
+
height: height
|
312
318
|
}, treeProps)) : null);
|
313
319
|
});
|
314
320
|
|
@@ -68,7 +68,10 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
68
68
|
displayRender = _a.displayRender,
|
69
69
|
placeholderProp = _a.placeholder,
|
70
70
|
appearance = _a.appearance,
|
71
|
-
|
71
|
+
virtual = _a.virtual,
|
72
|
+
itemHeight = _a.itemHeight,
|
73
|
+
height = _a.height,
|
74
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "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"]);
|
72
75
|
|
73
76
|
var i18n = useLocaleContext();
|
74
77
|
var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
|
@@ -275,7 +278,10 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
275
278
|
// TODO: 支持 fieldNames
|
276
279
|
// @ts-ignore
|
277
280
|
onLoadChildren: onLoadChildren,
|
278
|
-
fieldNames: fieldNames
|
281
|
+
fieldNames: fieldNames,
|
282
|
+
virtual: virtual,
|
283
|
+
itemHeight: itemHeight,
|
284
|
+
height: height
|
279
285
|
}, treeProps)) : null);
|
280
286
|
});
|
281
287
|
|
@@ -122,6 +122,20 @@ export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChan
|
|
122
122
|
* 设置展现形式
|
123
123
|
*/
|
124
124
|
appearance?: HiBaseAppearanceEnum;
|
125
|
+
/**
|
126
|
+
* 设置虚拟滚动容器的可视高度。暂不对外暴露
|
127
|
+
* @private
|
128
|
+
*/
|
129
|
+
height?: number;
|
130
|
+
/**
|
131
|
+
* 设置虚拟列表每项的固定高度。暂不对外暴露
|
132
|
+
* @private
|
133
|
+
*/
|
134
|
+
itemHeight?: number;
|
135
|
+
/**
|
136
|
+
* 设置 `true` 开启虚拟滚动
|
137
|
+
*/
|
138
|
+
virtual?: boolean;
|
125
139
|
}
|
126
140
|
/**
|
127
141
|
* 在 checkedIdsSet 为数据合法的情况下,查找所有的半选中态的节点 ids
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/check-tree-select",
|
3
|
-
"version": "4.0.0-beta.
|
3
|
+
"version": "4.0.0-beta.32",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HIUI <mi-hiui@xiaomi.com>",
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"@hi-ui/picker": "^4.0.0-beta.23",
|
56
56
|
"@hi-ui/popper": "^4.0.0-beta.13",
|
57
57
|
"@hi-ui/tag-input": "^4.0.0-beta.18",
|
58
|
-
"@hi-ui/tree": "^4.0.0-beta.
|
58
|
+
"@hi-ui/tree": "^4.0.0-beta.30",
|
59
59
|
"@hi-ui/tree-utils": "^4.0.0-beta.4",
|
60
60
|
"@hi-ui/type-assertion": "^4.0.0-beta.4",
|
61
61
|
"@hi-ui/use-data-source": "^4.0.0-beta.5",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"react": "^17.0.1",
|
73
73
|
"react-dom": "^17.0.1"
|
74
74
|
},
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "1639653e72981dcce445765c8b80866adcffcad0"
|
76
76
|
}
|