@hi-ui/tree-select 4.0.0-beta.40 → 4.0.0-beta.43
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/lib/cjs/TreeSelect.js
CHANGED
@@ -75,6 +75,7 @@ var TreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
75
75
|
dataSource = _a.dataSource,
|
76
76
|
_a$disabled = _a.disabled,
|
77
77
|
disabled = _a$disabled === void 0 ? false : _a$disabled,
|
78
|
+
visible = _a.visible,
|
78
79
|
onOpen = _a.onOpen,
|
79
80
|
onClose = _a.onClose,
|
80
81
|
_a$fieldNames = _a.fieldNames,
|
@@ -103,12 +104,13 @@ var TreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
103
104
|
virtual = _a.virtual,
|
104
105
|
itemHeight = _a.itemHeight,
|
105
106
|
height = _a.height,
|
106
|
-
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "onOpen", "onClose", "fieldNames", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height"]);
|
107
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height"]);
|
107
108
|
|
108
109
|
var i18n = localeContext.useLocaleContext();
|
109
110
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('treeSelect.placeholder') : placeholderProp;
|
110
111
|
|
111
112
|
var _useUncontrolledToggl = useToggle.useUncontrolledToggle({
|
113
|
+
visible: visible,
|
112
114
|
disabled: disabled,
|
113
115
|
onOpen: onOpen,
|
114
116
|
onClose: onClose
|
package/lib/esm/TreeSelect.js
CHANGED
@@ -42,6 +42,7 @@ var TreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
42
42
|
dataSource = _a.dataSource,
|
43
43
|
_a$disabled = _a.disabled,
|
44
44
|
disabled = _a$disabled === void 0 ? false : _a$disabled,
|
45
|
+
visible = _a.visible,
|
45
46
|
onOpen = _a.onOpen,
|
46
47
|
onClose = _a.onClose,
|
47
48
|
_a$fieldNames = _a.fieldNames,
|
@@ -70,12 +71,13 @@ var TreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
70
71
|
virtual = _a.virtual,
|
71
72
|
itemHeight = _a.itemHeight,
|
72
73
|
height = _a.height,
|
73
|
-
rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "onOpen", "onClose", "fieldNames", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height"]);
|
74
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "onSearch", "clearable", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height"]);
|
74
75
|
|
75
76
|
var i18n = useLocaleContext();
|
76
77
|
var placeholder = isUndef(placeholderProp) ? i18n.get('treeSelect.placeholder') : placeholderProp;
|
77
78
|
|
78
79
|
var _useUncontrolledToggl = useUncontrolledToggle({
|
80
|
+
visible: visible,
|
79
81
|
disabled: disabled,
|
80
82
|
onOpen: onOpen,
|
81
83
|
onClose: onClose
|
@@ -8,7 +8,7 @@ import { UseDataSource } from '@hi-ui/use-data-source';
|
|
8
8
|
* TODO: What is TreeSelect
|
9
9
|
*/
|
10
10
|
export declare const TreeSelect: React.ForwardRefExoticComponent<TreeSelectProps & React.RefAttributes<HTMLDivElement | null>>;
|
11
|
-
export interface TreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'trigger'> {
|
11
|
+
export interface TreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'trigger' | 'scrollable'> {
|
12
12
|
/**
|
13
13
|
* 展示数据
|
14
14
|
*/
|
@@ -17,10 +17,6 @@ export interface TreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' |
|
|
17
17
|
* 设置 data 中 id, title, disabled, children 对应的 key (3.0 新增) object - { title: 'title', id: 'id',disabled:'disabled', children: 'children'}
|
18
18
|
*/
|
19
19
|
fieldNames?: Record<string, string>;
|
20
|
-
/**
|
21
|
-
* 数据选择类型
|
22
|
-
*/
|
23
|
-
type?: 'single' | 'multiple';
|
24
20
|
/**
|
25
21
|
* 是否有边框
|
26
22
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/tree-select",
|
3
|
-
"version": "4.0.0-beta.
|
3
|
+
"version": "4.0.0-beta.43",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HIUI <mi-hiui@xiaomi.com>",
|
@@ -51,11 +51,11 @@
|
|
51
51
|
"@hi-ui/func-utils": "^4.0.0-beta.13",
|
52
52
|
"@hi-ui/highlighter": "^4.0.0-beta.11",
|
53
53
|
"@hi-ui/icons": "^4.0.0-beta.11",
|
54
|
-
"@hi-ui/input": "^4.0.0-beta.
|
54
|
+
"@hi-ui/input": "^4.0.0-beta.18",
|
55
55
|
"@hi-ui/locale-context": "^4.0.0-beta.19",
|
56
|
-
"@hi-ui/picker": "^4.0.0-beta.
|
57
|
-
"@hi-ui/popper": "^4.0.0-beta.
|
58
|
-
"@hi-ui/tree": "^4.0.0-beta.
|
56
|
+
"@hi-ui/picker": "^4.0.0-beta.32",
|
57
|
+
"@hi-ui/popper": "^4.0.0-beta.19",
|
58
|
+
"@hi-ui/tree": "^4.0.0-beta.37",
|
59
59
|
"@hi-ui/tree-utils": "^4.0.0-beta.5",
|
60
60
|
"@hi-ui/type-assertion": "^4.0.0-beta.5",
|
61
61
|
"@hi-ui/use-data-source": "^4.0.0-beta.6",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"react": "^17.0.1",
|
73
73
|
"react-dom": "^17.0.1"
|
74
74
|
},
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "c88fb2f2e288ed4eda0edaa405db38e55d55bcd6"
|
76
76
|
}
|