@zat-design/sisyphus-react 3.4.12-beta.7 → 3.4.12-beta.9

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.
@@ -181,7 +181,9 @@ var useShouldUpdate = function useShouldUpdate(props) {
181
181
  // ) {
182
182
  // form.validateFields([name]);
183
183
  // }
184
- if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !isEqualWith(rulesRef.current, _rules, customEqualForFun) || !isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) || !isEqualWith(originComponentRef.current, _component, customEqualForFun) || equalDependencies(dependencies, prevValues, _currentValues)) {
184
+ if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !isEqualWith(rulesRef.current, _rules, customEqualForFun) || !isEqualWith(fieldPropsRef.current, _fieldProps, customEqualForFun) ||
185
+ // !isEqualWith(originComponentRef.current, _component, customEqualForFun) ||
186
+ equalDependencies(dependencies, prevValues, _currentValues)) {
185
187
  showRef.current = _show;
186
188
  disabledRef.current = _disabled;
187
189
  requiredRef.current = _required;
@@ -9,10 +9,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
9
9
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
10
10
  import "antd/es/select/style";
11
11
  import _Select from "antd/es/select";
12
- var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames", "tooltip", "otherProps", "labelInValue", "filterInList", "scrollFollowParent", "defaultOne", "onSearch", "optionRender", "onChange", "updateDataSource", "transformResponse", "isView"];
12
+ var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames", "tooltip", "otherProps", "labelInValue", "filterInList", "scrollFollowParent", "defaultOne", "onSearch", "optionRender", "onChange", "updateDataSource", "transformResponse", "isView", "viewportReady"];
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
15
- import React, { useImperativeHandle, useState, forwardRef } from 'react';
14
+ import { useDeepCompareEffect, useInViewport, useRequest as useRequestFunc } from 'ahooks';
15
+ import React, { useImperativeHandle, useState, forwardRef, useRef, useEffect } from 'react';
16
16
  import { isFunction, isObject, isString, omit, cloneDeep, isNumber } from 'lodash';
17
17
  import { useProConfig } from '../ProConfigProvider';
18
18
  import Container from '../ProForm/components/Container';
@@ -54,7 +54,18 @@ export var ProSelect = function ProSelect(props, ref) {
54
54
  updateDataSource = props.updateDataSource,
55
55
  transformResponse = props.transformResponse,
56
56
  isViewPro = props.isView,
57
+ _props$viewportReady = props.viewportReady,
58
+ viewportReady = _props$viewportReady === void 0 ? false : _props$viewportReady,
57
59
  selectProps = _objectWithoutProperties(props, _excluded);
60
+ /** 是否在可视区域出现过 */
61
+ var _useState = useState(false),
62
+ _useState2 = _slicedToArray(_useState, 2),
63
+ viewFlag = _useState2[0],
64
+ setViewFlag = _useState2[1];
65
+ var refSelect = useRef(null);
66
+ var _useInViewport = useInViewport(refSelect),
67
+ _useInViewport2 = _slicedToArray(_useInViewport, 1),
68
+ inViewport = _useInViewport2[0];
58
69
  selectProps.showCodeName = (_selectProps$showCode = selectProps.showCodeName) !== null && _selectProps$showCode !== void 0 ? _selectProps$showCode : showCodeName;
59
70
  var value = props.value;
60
71
  var _ref2 = ProForm.useFieldProps() || {},
@@ -65,15 +76,15 @@ export var ProSelect = function ProSelect(props, ref) {
65
76
  code = fieldNames.value;
66
77
  label = fieldNames.label;
67
78
  }
68
- var _useState = useState(dataSource || []),
69
- _useState2 = _slicedToArray(_useState, 2),
70
- selectList = _useState2[0],
71
- setSelectList = _useState2[1];
72
- // 用来控制只有第一次才会设置 defaultOne 属性、🔒
73
- var _useState3 = useState(false),
79
+ var _useState3 = useState(dataSource || []),
74
80
  _useState4 = _slicedToArray(_useState3, 2),
75
- isDefaultOne = _useState4[0],
76
- setIsDefaultOne = _useState4[1];
81
+ selectList = _useState4[0],
82
+ setSelectList = _useState4[1];
83
+ // 用来控制只有第一次才会设置 defaultOne 属性、🔒
84
+ var _useState5 = useState(false),
85
+ _useState6 = _slicedToArray(_useState5, 2),
86
+ isDefaultOne = _useState6[0],
87
+ setIsDefaultOne = _useState6[1];
77
88
  var OptionRender = optionRender;
78
89
  var defaultOnSuccessFun = function defaultOnSuccessFun(res) {
79
90
  var _res$status = res.status,
@@ -134,8 +145,16 @@ export var ProSelect = function ProSelect(props, ref) {
134
145
  if (manual) {
135
146
  return;
136
147
  }
148
+ if (viewportReady && !viewFlag) {
149
+ return;
150
+ }
137
151
  fetchFunction.run(defaultParams);
138
- }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue]);
152
+ }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue, viewFlag]);
153
+ useEffect(function () {
154
+ if (inViewport && !viewFlag && viewportReady) {
155
+ setViewFlag(true);
156
+ }
157
+ }, [inViewport]);
139
158
  // disable默认值
140
159
  if (defaultDisableValue) {
141
160
  return _jsx("span", {
@@ -280,45 +299,48 @@ export var ProSelect = function ProSelect(props, ref) {
280
299
  fieldNames: fieldNames
281
300
  });
282
301
  }
283
- return _jsx(_Select, _objectSpread(_objectSpread({
284
- placeholder: locale === null || locale === void 0 ? void 0 : (_locale$ProSelect = locale.ProSelect) === null || _locale$ProSelect === void 0 ? void 0 : _locale$ProSelect.select,
285
- allowClear: true,
286
- showArrow: true,
287
- loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading,
288
- onChange: handleChange,
289
- optionLabelProp: "children" // 解决warning报错,添加默认值
290
- ,
291
- showSearch: true,
292
- filterOption: isFunction(_onSearch) ? false : function (input, option) {
293
- var _option$children, _option$children$prop;
294
- var value = isString(option === null || option === void 0 ? void 0 : option.children) ? option === null || option === void 0 ? void 0 : option.children : option === null || option === void 0 ? void 0 : (_option$children = option.children) === null || _option$children === void 0 ? void 0 : (_option$children$prop = _option$children.props) === null || _option$children$prop === void 0 ? void 0 : _option$children$prop.title;
295
- return value.toLowerCase().includes(input.toLowerCase());
296
- },
297
- onSearch: function onSearch(value) {
298
- _onSearch && _onSearch(value, _objectSpread({}, fetchFunction));
299
- },
300
- getPopupContainer: function getPopupContainer(trigger) {
301
- return scrollFollowParent ? trigger.parentElement : document.body;
302
- }
303
- }, omit(cloneDeep(selectProps), ['isView', 'showCodeName', 'form', 'name'])), {}, {
304
- value: transformValue(),
305
- children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
306
- return _jsx(Option, {
307
- value: item[code],
308
- record: item,
309
- disabled: !!item.disabled,
310
- children: _jsx(TooltipOption, {
311
- title: OptionRender ? OptionRender(item) : selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
312
- children: OptionRender ? _jsx("span", {
313
- title: OptionRender(item),
314
- children: OptionRender(item)
315
- }) : _jsx("span", {
316
- title: "".concat(item[code], "-").concat(item[label]),
317
- children: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label]
318
- })
319
- }, item[code])
320
- }, item[code]);
321
- })
322
- }));
302
+ return _jsx("div", {
303
+ ref: refSelect,
304
+ children: _jsx(_Select, _objectSpread(_objectSpread({
305
+ placeholder: locale === null || locale === void 0 ? void 0 : (_locale$ProSelect = locale.ProSelect) === null || _locale$ProSelect === void 0 ? void 0 : _locale$ProSelect.select,
306
+ allowClear: true,
307
+ showArrow: true,
308
+ loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading,
309
+ onChange: handleChange,
310
+ optionLabelProp: "children" // 解决warning报错,添加默认值
311
+ ,
312
+ showSearch: true,
313
+ filterOption: isFunction(_onSearch) ? false : function (input, option) {
314
+ var _option$children, _option$children$prop;
315
+ var value = isString(option === null || option === void 0 ? void 0 : option.children) ? option === null || option === void 0 ? void 0 : option.children : option === null || option === void 0 ? void 0 : (_option$children = option.children) === null || _option$children === void 0 ? void 0 : (_option$children$prop = _option$children.props) === null || _option$children$prop === void 0 ? void 0 : _option$children$prop.title;
316
+ return value.toLowerCase().includes(input.toLowerCase());
317
+ },
318
+ onSearch: function onSearch(value) {
319
+ _onSearch && _onSearch(value, _objectSpread({}, fetchFunction));
320
+ },
321
+ getPopupContainer: function getPopupContainer(trigger) {
322
+ return scrollFollowParent ? trigger.parentElement : document.body;
323
+ }
324
+ }, omit(cloneDeep(selectProps), ['isView', 'showCodeName', 'form', 'name'])), {}, {
325
+ value: transformValue(),
326
+ children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
327
+ return _jsx(Option, {
328
+ value: item[code],
329
+ record: item,
330
+ disabled: !!item.disabled,
331
+ children: _jsx(TooltipOption, {
332
+ title: OptionRender ? OptionRender(item) : selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
333
+ children: OptionRender ? _jsx("span", {
334
+ title: OptionRender(item),
335
+ children: OptionRender(item)
336
+ }) : _jsx("span", {
337
+ title: "".concat(item[code], "-").concat(item[label]),
338
+ children: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label]
339
+ })
340
+ }, item[code])
341
+ }, item[code]);
342
+ })
343
+ }))
344
+ });
323
345
  };
324
346
  export default /*#__PURE__*/forwardRef(ProSelect);
@@ -10,6 +10,8 @@ export interface DataOption {
10
10
  export interface PropSelectProps extends Omit<SelectProps, 'onSearch'> {
11
11
  /** 是否查看模式 */
12
12
  isView?: boolean;
13
+ /** 是否开启组件在可视区域中才发起useRequest请求 默认 false */
14
+ viewportReady?: boolean;
13
15
  /** 默认数组第一项 */
14
16
  defaultOne?: boolean;
15
17
  /** 数据源 */
@@ -355,7 +355,7 @@ function List(props) {
355
355
  }
356
356
  return _jsx("div", {
357
357
  className: disabledMode === 'hide' ? 'hide-disable-node' : '',
358
- children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? _jsx(_Tree, _objectSpread(_objectSpread(_objectSpread({}, others), expandedKeys), {}, {
358
+ children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? _jsx(_Tree, _objectSpread(_objectSpread(_objectSpread({}, others), additionProps), {}, {
359
359
  disabled: disabled,
360
360
  style: {
361
361
  width: '100%'
@@ -188,7 +188,9 @@ var useShouldUpdate = function useShouldUpdate(props) {
188
188
  // ) {
189
189
  // form.validateFields([name]);
190
190
  // }
191
- if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !(0, _lodash.isEqualWith)(rulesRef.current, _rules, _index.customEqualForFun) || !(0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _index.customEqualForFun) || !(0, _lodash.isEqualWith)(originComponentRef.current, _component, _index.customEqualForFun) || (0, _index.equalDependencies)(dependencies, prevValues, _currentValues)) {
191
+ if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !(0, _lodash.isEqualWith)(rulesRef.current, _rules, _index.customEqualForFun) || !(0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _index.customEqualForFun) ||
192
+ // !isEqualWith(originComponentRef.current, _component, customEqualForFun) ||
193
+ (0, _index.equalDependencies)(dependencies, prevValues, _currentValues)) {
192
194
  showRef.current = _show;
193
195
  disabledRef.current = _disabled;
194
196
  requiredRef.current = _required;
@@ -21,7 +21,7 @@ var _ = require("..");
21
21
  var _locale = _interopRequireDefault(require("../locale"));
22
22
  var _utils = require("./utils");
23
23
  require("./index.less");
24
- var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames", "tooltip", "otherProps", "labelInValue", "filterInList", "scrollFollowParent", "defaultOne", "onSearch", "optionRender", "onChange", "updateDataSource", "transformResponse", "isView"];
24
+ var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames", "tooltip", "otherProps", "labelInValue", "filterInList", "scrollFollowParent", "defaultOne", "onSearch", "optionRender", "onChange", "updateDataSource", "transformResponse", "isView", "viewportReady"];
25
25
  var Option = _antd.Select.Option;
26
26
  var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
27
27
  var _selectProps$showCode, _locale$ProSelect;
@@ -55,7 +55,18 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
55
55
  updateDataSource = props.updateDataSource,
56
56
  transformResponse = props.transformResponse,
57
57
  isViewPro = props.isView,
58
+ _props$viewportReady = props.viewportReady,
59
+ viewportReady = _props$viewportReady === void 0 ? false : _props$viewportReady,
58
60
  selectProps = (0, _objectWithoutProperties2.default)(props, _excluded);
61
+ /** 是否在可视区域出现过 */
62
+ var _useState = (0, _react.useState)(false),
63
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
64
+ viewFlag = _useState2[0],
65
+ setViewFlag = _useState2[1];
66
+ var refSelect = (0, _react.useRef)(null);
67
+ var _useInViewport = (0, _ahooks.useInViewport)(refSelect),
68
+ _useInViewport2 = (0, _slicedToArray2.default)(_useInViewport, 1),
69
+ inViewport = _useInViewport2[0];
59
70
  selectProps.showCodeName = (_selectProps$showCode = selectProps.showCodeName) !== null && _selectProps$showCode !== void 0 ? _selectProps$showCode : showCodeName;
60
71
  var value = props.value;
61
72
  var _ref2 = _.ProForm.useFieldProps() || {},
@@ -66,15 +77,15 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
66
77
  code = fieldNames.value;
67
78
  label = fieldNames.label;
68
79
  }
69
- var _useState = (0, _react.useState)(dataSource || []),
70
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
71
- selectList = _useState2[0],
72
- setSelectList = _useState2[1];
73
- // 用来控制只有第一次才会设置 defaultOne 属性、🔒
74
- var _useState3 = (0, _react.useState)(false),
80
+ var _useState3 = (0, _react.useState)(dataSource || []),
75
81
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
76
- isDefaultOne = _useState4[0],
77
- setIsDefaultOne = _useState4[1];
82
+ selectList = _useState4[0],
83
+ setSelectList = _useState4[1];
84
+ // 用来控制只有第一次才会设置 defaultOne 属性、🔒
85
+ var _useState5 = (0, _react.useState)(false),
86
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
87
+ isDefaultOne = _useState6[0],
88
+ setIsDefaultOne = _useState6[1];
78
89
  var OptionRender = optionRender;
79
90
  var defaultOnSuccessFun = function defaultOnSuccessFun(res) {
80
91
  var _res$status = res.status,
@@ -135,8 +146,16 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
135
146
  if (manual) {
136
147
  return;
137
148
  }
149
+ if (viewportReady && !viewFlag) {
150
+ return;
151
+ }
138
152
  fetchFunction.run(defaultParams);
139
- }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue]);
153
+ }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue, viewFlag]);
154
+ (0, _react.useEffect)(function () {
155
+ if (inViewport && !viewFlag && viewportReady) {
156
+ setViewFlag(true);
157
+ }
158
+ }, [inViewport]);
140
159
  // disable默认值
141
160
  if (defaultDisableValue) {
142
161
  return (0, _jsxRuntime.jsx)("span", {
@@ -281,45 +300,48 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
281
300
  fieldNames: fieldNames
282
301
  });
283
302
  }
284
- return (0, _jsxRuntime.jsx)(_antd.Select, (0, _objectSpread2.default)((0, _objectSpread2.default)({
285
- placeholder: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProSelect = _locale.default.ProSelect) === null || _locale$ProSelect === void 0 ? void 0 : _locale$ProSelect.select,
286
- allowClear: true,
287
- showArrow: true,
288
- loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading,
289
- onChange: handleChange,
290
- optionLabelProp: "children" // 解决warning报错,添加默认值
291
- ,
292
- showSearch: true,
293
- filterOption: (0, _lodash.isFunction)(_onSearch) ? false : function (input, option) {
294
- var _option$children, _option$children$prop;
295
- var value = (0, _lodash.isString)(option === null || option === void 0 ? void 0 : option.children) ? option === null || option === void 0 ? void 0 : option.children : option === null || option === void 0 ? void 0 : (_option$children = option.children) === null || _option$children === void 0 ? void 0 : (_option$children$prop = _option$children.props) === null || _option$children$prop === void 0 ? void 0 : _option$children$prop.title;
296
- return value.toLowerCase().includes(input.toLowerCase());
297
- },
298
- onSearch: function onSearch(value) {
299
- _onSearch && _onSearch(value, (0, _objectSpread2.default)({}, fetchFunction));
300
- },
301
- getPopupContainer: function getPopupContainer(trigger) {
302
- return scrollFollowParent ? trigger.parentElement : document.body;
303
- }
304
- }, (0, _lodash.omit)((0, _lodash.cloneDeep)(selectProps), ['isView', 'showCodeName', 'form', 'name'])), {}, {
305
- value: transformValue(),
306
- children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
307
- return (0, _jsxRuntime.jsx)(Option, {
308
- value: item[code],
309
- record: item,
310
- disabled: !!item.disabled,
311
- children: (0, _jsxRuntime.jsx)(TooltipOption, {
312
- title: OptionRender ? OptionRender(item) : selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
313
- children: OptionRender ? (0, _jsxRuntime.jsx)("span", {
314
- title: OptionRender(item),
315
- children: OptionRender(item)
316
- }) : (0, _jsxRuntime.jsx)("span", {
317
- title: "".concat(item[code], "-").concat(item[label]),
318
- children: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label]
319
- })
320
- }, item[code])
321
- }, item[code]);
322
- })
323
- }));
303
+ return (0, _jsxRuntime.jsx)("div", {
304
+ ref: refSelect,
305
+ children: (0, _jsxRuntime.jsx)(_antd.Select, (0, _objectSpread2.default)((0, _objectSpread2.default)({
306
+ placeholder: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProSelect = _locale.default.ProSelect) === null || _locale$ProSelect === void 0 ? void 0 : _locale$ProSelect.select,
307
+ allowClear: true,
308
+ showArrow: true,
309
+ loading: fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.loading,
310
+ onChange: handleChange,
311
+ optionLabelProp: "children" // 解决warning报错,添加默认值
312
+ ,
313
+ showSearch: true,
314
+ filterOption: (0, _lodash.isFunction)(_onSearch) ? false : function (input, option) {
315
+ var _option$children, _option$children$prop;
316
+ var value = (0, _lodash.isString)(option === null || option === void 0 ? void 0 : option.children) ? option === null || option === void 0 ? void 0 : option.children : option === null || option === void 0 ? void 0 : (_option$children = option.children) === null || _option$children === void 0 ? void 0 : (_option$children$prop = _option$children.props) === null || _option$children$prop === void 0 ? void 0 : _option$children$prop.title;
317
+ return value.toLowerCase().includes(input.toLowerCase());
318
+ },
319
+ onSearch: function onSearch(value) {
320
+ _onSearch && _onSearch(value, (0, _objectSpread2.default)({}, fetchFunction));
321
+ },
322
+ getPopupContainer: function getPopupContainer(trigger) {
323
+ return scrollFollowParent ? trigger.parentElement : document.body;
324
+ }
325
+ }, (0, _lodash.omit)((0, _lodash.cloneDeep)(selectProps), ['isView', 'showCodeName', 'form', 'name'])), {}, {
326
+ value: transformValue(),
327
+ children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
328
+ return (0, _jsxRuntime.jsx)(Option, {
329
+ value: item[code],
330
+ record: item,
331
+ disabled: !!item.disabled,
332
+ children: (0, _jsxRuntime.jsx)(TooltipOption, {
333
+ title: OptionRender ? OptionRender(item) : selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
334
+ children: OptionRender ? (0, _jsxRuntime.jsx)("span", {
335
+ title: OptionRender(item),
336
+ children: OptionRender(item)
337
+ }) : (0, _jsxRuntime.jsx)("span", {
338
+ title: "".concat(item[code], "-").concat(item[label]),
339
+ children: selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label]
340
+ })
341
+ }, item[code])
342
+ }, item[code]);
343
+ })
344
+ }))
345
+ });
324
346
  };
325
347
  var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(ProSelect);
@@ -10,6 +10,8 @@ export interface DataOption {
10
10
  export interface PropSelectProps extends Omit<SelectProps, 'onSearch'> {
11
11
  /** 是否查看模式 */
12
12
  isView?: boolean;
13
+ /** 是否开启组件在可视区域中才发起useRequest请求 默认 false */
14
+ viewportReady?: boolean;
13
15
  /** 默认数组第一项 */
14
16
  defaultOne?: boolean;
15
17
  /** 数据源 */
@@ -360,7 +360,7 @@ function List(props) {
360
360
  }
361
361
  return (0, _jsxRuntime.jsx)("div", {
362
362
  className: disabledMode === 'hide' ? 'hide-disable-node' : '',
363
- children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? (0, _jsxRuntime.jsx)(_antd.Tree, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, others), expandedKeys), {}, {
363
+ children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? (0, _jsxRuntime.jsx)(_antd.Tree, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, others), additionProps), {}, {
364
364
  disabled: disabled,
365
365
  style: {
366
366
  width: '100%'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.12-beta.7",
3
+ "version": "3.4.12-beta.9",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",