@hi-ui/check-tree-select 4.0.0-beta.41 → 4.0.0-beta.42

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.
@@ -77,6 +77,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
77
77
  dataSource = _a.dataSource,
78
78
  _a$disabled = _a.disabled,
79
79
  disabled = _a$disabled === void 0 ? false : _a$disabled,
80
+ visible = _a.visible,
80
81
  onOpen = _a.onOpen,
81
82
  onClose = _a.onClose,
82
83
  _a$fieldNames = _a.fieldNames,
@@ -107,12 +108,13 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
107
108
  virtual = _a.virtual,
108
109
  itemHeight = _a.itemHeight,
109
110
  height = _a.height,
110
- 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"]);
111
+ 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"]);
111
112
 
112
113
  var i18n = localeContext.useLocaleContext();
113
114
  var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
114
115
 
115
116
  var _useUncontrolledToggl = useToggle.useUncontrolledToggle({
117
+ visible: visible,
116
118
  disabled: disabled,
117
119
  onOpen: onOpen,
118
120
  onClose: onClose
@@ -43,6 +43,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
43
43
  dataSource = _a.dataSource,
44
44
  _a$disabled = _a.disabled,
45
45
  disabled = _a$disabled === void 0 ? false : _a$disabled,
46
+ visible = _a.visible,
46
47
  onOpen = _a.onOpen,
47
48
  onClose = _a.onClose,
48
49
  _a$fieldNames = _a.fieldNames,
@@ -73,12 +74,13 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
73
74
  virtual = _a.virtual,
74
75
  itemHeight = _a.itemHeight,
75
76
  height = _a.height,
76
- 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"]);
77
+ 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"]);
77
78
 
78
79
  var i18n = useLocaleContext();
79
80
  var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
80
81
 
81
82
  var _useUncontrolledToggl = useUncontrolledToggle({
83
+ visible: visible,
82
84
  disabled: disabled,
83
85
  onOpen: onOpen,
84
86
  onClose: onClose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-tree-select",
3
- "version": "4.0.0-beta.41",
3
+ "version": "4.0.0-beta.42",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HIUI <mi-hiui@xiaomi.com>",
@@ -52,10 +52,10 @@
52
52
  "@hi-ui/highlighter": "^4.0.0-beta.11",
53
53
  "@hi-ui/icons": "^4.0.0-beta.11",
54
54
  "@hi-ui/locale-context": "^4.0.0-beta.19",
55
- "@hi-ui/picker": "^4.0.0-beta.30",
56
- "@hi-ui/popper": "^4.0.0-beta.18",
55
+ "@hi-ui/picker": "^4.0.0-beta.31",
56
+ "@hi-ui/popper": "^4.0.0-beta.19",
57
57
  "@hi-ui/tag-input": "^4.0.0-beta.20",
58
- "@hi-ui/tree": "^4.0.0-beta.35",
58
+ "@hi-ui/tree": "^4.0.0-beta.36",
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-check": "^4.0.0-beta.5",
@@ -73,5 +73,5 @@
73
73
  "react": "^17.0.1",
74
74
  "react-dom": "^17.0.1"
75
75
  },
76
- "gitHead": "29f4d9450879b9bffe83ea928fc2491b70d1bcce"
76
+ "gitHead": "3dc9f628767f463b67ba9a7911cc57de84182b85"
77
77
  }