uiw 4.15.0 → 4.15.1

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/dist/uiw.js CHANGED
@@ -3093,6 +3093,10 @@ class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_re
3093
3093
  })]
3094
3094
  }),
3095
3095
  children: typeof this.props.children === 'object' && this.props.children.type.name !== 'Icon' ? this.props.children : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
3096
+ style: {
3097
+ display: 'block',
3098
+ writingMode: 'vertical-rl'
3099
+ },
3096
3100
  children: this.props.children
3097
3101
  })
3098
3102
  }));
@@ -4031,34 +4035,43 @@ var react_card_esm_excluded = ["prefixCls", "className", "title", "extra", "foot
4031
4035
 
4032
4036
 
4033
4037
 
4038
+
4034
4039
  function Carousel(props, ref) {
4035
4040
  var {
4036
4041
  position = 0,
4042
+ direction = 'horizontal',
4037
4043
  width = 400,
4038
4044
  height = 200,
4039
4045
  palyTime = 2000,
4040
4046
  scrollTime = 200,
4041
4047
  autoPlay = true,
4048
+ afterChange,
4049
+ beforeChange,
4042
4050
  prefixCls = 'w-carousel',
4043
4051
  className,
4044
4052
  style
4045
4053
  } = props;
4046
4054
  var cls = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]);
4047
4055
  var [currentPosition, currentPositionSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(position);
4056
+ var [transitionInner, transitionInnerSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(scrollTime * 0.001 + "s ease-in-out");
4048
4057
  var positionRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(currentPosition);
4049
- var childCount = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.count(props.children);
4058
+ var childCount = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.count(props.children) + 1;
4050
4059
 
4051
- var _stopPlay = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(() => {});
4060
+ var _stopPlay = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
4061
+ stop: () => {},
4062
+ after: afterChange,
4063
+ before: beforeChange
4064
+ });
4052
4065
 
4053
4066
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().useImperativeHandle(ref, () => ({
4054
4067
  gotoSlide,
4055
4068
  prevSlide: () => gotoSlide(positionRef.current - 1),
4056
4069
  nextSlide: () => gotoSlide(positionRef.current + 1),
4057
- stopPlay: () => _stopPlay.current()
4070
+ stopPlay: () => _stopPlay.current.stop()
4058
4071
  }), [ref]);
4059
4072
 
4060
4073
  var gotoSlide = slidNumber => {
4061
- _stopPlay.current();
4074
+ _stopPlay.current.stop();
4062
4075
 
4063
4076
  var maxSlid = childCount - 1;
4064
4077
  var slidNumberTemp = slidNumber > maxSlid ? maxSlid : slidNumber;
@@ -4075,6 +4088,7 @@ function Carousel(props, ref) {
4075
4088
 
4076
4089
  if (autoPlay) {
4077
4090
  var time = setInterval(() => {
4091
+ _stopPlay.current.after == null ? void 0 : _stopPlay.current.after(positionRef.current);
4078
4092
  positionRef.current++;
4079
4093
 
4080
4094
  if (positionRef.current >= childCount) {
@@ -4082,9 +4096,10 @@ function Carousel(props, ref) {
4082
4096
  }
4083
4097
 
4084
4098
  currentPositionSet(positionRef.current);
4099
+ _stopPlay.current.before == null ? void 0 : _stopPlay.current.before(positionRef.current);
4085
4100
  }, ms);
4086
4101
 
4087
- _stopPlay.current = () => {
4102
+ _stopPlay.current.stop = () => {
4088
4103
  clearInterval(time);
4089
4104
  };
4090
4105
  }
@@ -4093,31 +4108,79 @@ function Carousel(props, ref) {
4093
4108
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
4094
4109
  play();
4095
4110
  return () => {
4096
- _stopPlay.current();
4111
+ _stopPlay.current.stop();
4097
4112
  };
4098
4113
  }, [autoPlay]);
4114
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
4115
+ var time;
4116
+
4117
+ if (childCount === currentPosition + 1) {
4118
+ time = setTimeout(() => {
4119
+ _stopPlay.current.before = () => {
4120
+ transitionInnerSet(scrollTime * 0.001 + "s ease-in-out");
4121
+ _stopPlay.current.before = props.beforeChange;
4122
+ };
4123
+
4124
+ transitionInnerSet('none');
4125
+ gotoSlide(0);
4126
+ }, scrollTime);
4127
+ }
4128
+
4129
+ return () => {
4130
+ clearTimeout(time);
4131
+ };
4132
+ }, [currentPosition]);
4133
+ var childrens = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(props.children, child => {
4134
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4135
+ style: _extends({
4136
+ width,
4137
+ height
4138
+ }, style),
4139
+ children: child
4140
+ });
4141
+ });
4142
+ var innerStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
4143
+ var style = {
4144
+ transform: '',
4145
+ display: ''
4146
+ };
4147
+
4148
+ switch (direction) {
4149
+ case 'horizontal':
4150
+ style.transform = "translate3d(" + -(currentPosition * width) + "px, 0px, 0px)";
4151
+ style.display = 'flex';
4152
+ break;
4153
+
4154
+ case 'vertical':
4155
+ style.transform = "translate3d(0px, " + -(currentPosition * height) + "px, 0px)";
4156
+ style.display = 'block';
4157
+ break;
4158
+
4159
+ default:
4160
+ break;
4161
+ }
4162
+
4163
+ return style;
4164
+ }, [direction, currentPosition, width, height]);
4099
4165
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4100
4166
  className: cls,
4101
4167
  style: {
4102
4168
  width,
4103
4169
  height
4104
4170
  },
4105
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4171
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
4106
4172
  className: cls + "-content",
4107
- style: {
4173
+ style: _extends({
4108
4174
  width: width * childCount,
4109
- transform: "translate3d(" + -(currentPosition * width) + "px, 0px, 0px)",
4110
- transition: scrollTime * 0.001 + "s ease-in-out"
4111
- },
4112
- children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(props.children, child => {
4113
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4114
- style: _extends({
4115
- width,
4116
- height
4117
- }, style),
4118
- children: child
4119
- });
4120
- })
4175
+ transition: transitionInner
4176
+ }, innerStyle),
4177
+ children: [childrens, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4178
+ style: _extends({
4179
+ width,
4180
+ height
4181
+ }, style),
4182
+ children: childrens == null ? void 0 : childrens[0]
4183
+ })]
4121
4184
  })
4122
4185
  });
4123
4186
  }
@@ -7889,7 +7952,7 @@ var react_tag_esm_excluded = ["prefixCls", "className", "style", "title", "child
7889
7952
  className: cls,
7890
7953
  style: styl
7891
7954
  }, other, {
7892
- children: [title || children, closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
7955
+ children: [title || children, !disabled && closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
7893
7956
  onClick: onClose,
7894
7957
  className: prefixCls + "-close",
7895
7958
  width: "15",
@@ -7968,6 +8031,11 @@ function SearchSelect(props) {
7968
8031
  selectedValueChange(defaultValue);
7969
8032
  }
7970
8033
  }, []);
8034
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
8035
+ if (disabled) {
8036
+ setInnerIsOpen(false);
8037
+ }
8038
+ }, [disabled]);
7971
8039
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
7972
8040
  if (valueVerify(value)) {
7973
8041
  selectedValueChange(value);
@@ -8103,7 +8171,7 @@ function SearchSelect(props) {
8103
8171
  overlayStyl: {
8104
8172
  width: 100
8105
8173
  },
8106
- disabled: option && option.length > 0 ? false : true
8174
+ disabled: disabled
8107
8175
  }, others, {
8108
8176
  onVisibleChange: onVisibleChange,
8109
8177
  isOpen: innerIsOpen,
@@ -8164,6 +8232,7 @@ function SearchSelect(props) {
8164
8232
  color: "#393E48"
8165
8233
  }, tagProps, {
8166
8234
  closable: true,
8235
+ disabled: disabled,
8167
8236
  onClose: e => {
8168
8237
  e.stopPropagation();
8169
8238
  handleItemsClick(index, item);
@@ -8193,7 +8262,7 @@ function SearchSelect(props) {
8193
8262
  value: selectedLabel,
8194
8263
  placeholder: selectedValue.length ? '' : placeholder
8195
8264
  })]
8196
- }), (selectIconType === 'close' || selectIconType === 'loading' && loading) && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
8265
+ }), !disabled && (selectIconType === 'close' || selectIconType === 'loading' && loading) && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
8197
8266
  type: selectIconType,
8198
8267
  spin: loading && selectIconType === 'loading',
8199
8268
  onClick: resetSelectedValue
@@ -8206,7 +8275,7 @@ function SearchSelect(props) {
8206
8275
  onChange: e => handleInputChange(e.target.value),
8207
8276
  value: selectedLabel,
8208
8277
  placeholder: placeholder,
8209
- addonAfter: (selectIconType === 'close' || selectIconType === 'loading' && loading) && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
8278
+ addonAfter: !disabled && (selectIconType === 'close' || selectIconType === 'loading' && loading) && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
8210
8279
  type: selectIconType,
8211
8280
  spin: loading && selectIconType === 'loading',
8212
8281
  onClick: resetSelectedValue
@@ -8959,59 +9028,6 @@ var react_switch_esm_excluded = ["prefixCls"];
8959
9028
  ;// CONCATENATED MODULE: ../react-table/esm/style/index.css
8960
9029
  // extracted by mini-css-extract-plugin
8961
9030
  /* harmony default export */ const react_table_esm_style = ({});
8962
- ;// CONCATENATED MODULE: ../react-table/esm/Thead.js
8963
-
8964
-
8965
- var Thead_excluded = ["prefixCls", "className", "data", "onCellHead"],
8966
- Thead_excluded2 = ["title", "key", "render", "children", "ellipsis"];
8967
-
8968
-
8969
-
8970
-
8971
- function TheadComponent(props) {
8972
- if (props === void 0) {
8973
- props = {};
8974
- }
8975
-
8976
- var {
8977
- prefixCls = 'w-table',
8978
- className,
8979
- data = [],
8980
- onCellHead = noop
8981
- } = props,
8982
- other = _objectWithoutPropertiesLoose(props, Thead_excluded);
8983
-
8984
- return /*#__PURE__*/(0,jsx_runtime.jsx)("thead", _extends({
8985
- className: [prefixCls, className].filter(Boolean).join(' ').trim()
8986
- }, other, {
8987
- children: data && data.length > 0 && data.map((tds, rowNum) => /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
8988
- children: (tds || []).map((item, colNum) => {
8989
- var {
8990
- title,
8991
- ellipsis
8992
- } = item,
8993
- thProps = _objectWithoutPropertiesLoose(item, Thead_excluded2);
8994
-
8995
- var titleNode = typeof title === 'function' ? title(item, colNum, rowNum) : title;
8996
-
8997
- if (thProps.colSpan === 0) {
8998
- return null;
8999
- }
9000
-
9001
- if (ellipsis) {
9002
- thProps.className = (thProps.className || '') + " " + prefixCls + "-ellipsis";
9003
- }
9004
-
9005
- return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({}, thProps, {
9006
- className: prefixCls + "-tr-children-" + ((item == null ? void 0 : item.align) || 'left') + " " + (className || ''),
9007
- onClick: evn => onCellHead(item, colNum, rowNum, evn),
9008
- children: titleNode
9009
- }), colNum);
9010
- })
9011
- }, rowNum))
9012
- }));
9013
- }
9014
-
9015
9031
  ;// CONCATENATED MODULE: ../react-table/esm/util.js
9016
9032
  /**
9017
9033
  * Get colspan number
@@ -9173,6 +9189,130 @@ function getAllColumnsKeys(data, keys) {
9173
9189
 
9174
9190
  return keys;
9175
9191
  }
9192
+ function locationFixed(fixed, location, index) {
9193
+ var _location$index, _location$index2;
9194
+
9195
+ if (!fixed) return {};
9196
+ if (fixed === 'right') return {
9197
+ right: (_location$index = location[index]) == null ? void 0 : _location$index.right
9198
+ };
9199
+ return {
9200
+ left: (_location$index2 = location[index]) == null ? void 0 : _location$index2.left
9201
+ };
9202
+ }
9203
+
9204
+ ;// CONCATENATED MODULE: ../react-table/esm/ThComponent.js
9205
+
9206
+
9207
+ var ThComponent_excluded = ["title", "key", "render", "children", "ellipsis", "fixed"];
9208
+
9209
+
9210
+
9211
+
9212
+ class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
9213
+ componentDidMount() {
9214
+ var rect = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this);
9215
+ this.props.updateLocation({
9216
+ width: rect.getBoundingClientRect().width
9217
+ }, this.props.colNum);
9218
+ }
9219
+
9220
+ render() {
9221
+ var {
9222
+ colNum,
9223
+ prefixCls,
9224
+ item,
9225
+ titleNode,
9226
+ onCellHead,
9227
+ rowNum,
9228
+ locationWidth
9229
+ } = this.props;
9230
+
9231
+ var {
9232
+ fixed = false
9233
+ } = item,
9234
+ thProps = _objectWithoutPropertiesLoose(item, ThComponent_excluded);
9235
+
9236
+ var cls = '';
9237
+
9238
+ if (fixed) {
9239
+ if (fixed === 'right') {
9240
+ cls = prefixCls + '-fixed-right';
9241
+ } else {
9242
+ cls = prefixCls + '-fixed-true';
9243
+ }
9244
+ }
9245
+
9246
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({}, thProps, {
9247
+ style: _extends({}, thProps.style, locationFixed(fixed, locationWidth, colNum)),
9248
+ className: prefixCls + "-tr-children-" + ((item == null ? void 0 : item.align) || 'left') + " " + (item.className || '') + " " + cls,
9249
+ onClick: evn => onCellHead == null ? void 0 : onCellHead(item, colNum, rowNum, evn),
9250
+ children: titleNode
9251
+ }), colNum);
9252
+ }
9253
+
9254
+ }
9255
+
9256
+ ;// CONCATENATED MODULE: ../react-table/esm/Thead.js
9257
+
9258
+
9259
+ var Thead_excluded = ["prefixCls", "className", "data", "onCellHead", "locationWidth", "updateLocation"],
9260
+ Thead_excluded2 = ["title", "key", "render", "children", "ellipsis", "fixed"];
9261
+
9262
+
9263
+
9264
+
9265
+
9266
+ function TheadComponent(props) {
9267
+ if (props === void 0) {
9268
+ props = {};
9269
+ }
9270
+
9271
+ var {
9272
+ prefixCls = 'w-table',
9273
+ className,
9274
+ data = [],
9275
+ onCellHead = noop,
9276
+ locationWidth,
9277
+ updateLocation
9278
+ } = props,
9279
+ other = _objectWithoutPropertiesLoose(props, Thead_excluded);
9280
+
9281
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("thead", _extends({
9282
+ className: [prefixCls, className].filter(Boolean).join(' ').trim()
9283
+ }, other, {
9284
+ children: data && data.length > 0 && data.map((tds, rowNum) => /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
9285
+ children: (tds || []).map((item, colNum) => {
9286
+ var {
9287
+ title,
9288
+ ellipsis,
9289
+ fixed = false
9290
+ } = item,
9291
+ thProps = _objectWithoutPropertiesLoose(item, Thead_excluded2);
9292
+
9293
+ var titleNode = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
9294
+ className: ellipsis ? (thProps.className || '') + " " + prefixCls + "-ellipsis" : undefined,
9295
+ children: typeof title === 'function' ? title(item, colNum, rowNum) : title
9296
+ });
9297
+
9298
+ if (thProps.colSpan === 0) {
9299
+ return null;
9300
+ }
9301
+
9302
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(ThComponent, {
9303
+ colNum: colNum,
9304
+ item: item,
9305
+ prefixCls: prefixCls,
9306
+ onCellHead: onCellHead,
9307
+ rowNum: rowNum,
9308
+ titleNode: titleNode,
9309
+ locationWidth: locationWidth,
9310
+ updateLocation: updateLocation
9311
+ }, colNum);
9312
+ })
9313
+ }, rowNum))
9314
+ }));
9315
+ }
9176
9316
 
9177
9317
  ;// CONCATENATED MODULE: ../react-table/esm/Expandable.js
9178
9318
 
@@ -9214,6 +9354,7 @@ function ExpandableComponent(_ref) {
9214
9354
 
9215
9355
 
9216
9356
 
9357
+
9217
9358
  function TableTr(props) {
9218
9359
  var {
9219
9360
  rowKey,
@@ -9226,12 +9367,15 @@ function TableTr(props) {
9226
9367
  isExpandedDom,
9227
9368
  hierarchy,
9228
9369
  indentSize,
9229
- childrenColumnName
9370
+ childrenColumnName,
9371
+ locationWidth
9230
9372
  } = props;
9231
9373
  var [isOpacity, setIsOpacity] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
9374
+ var [childrenIndex, setChildrenIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0);
9232
9375
  var [expandIndex, setExpandIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
9233
9376
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
9234
9377
  setIsOpacity(!!(data != null && data.find(it => it[childrenColumnName])));
9378
+ setChildrenIndex((keys == null ? void 0 : keys.findIndex(it => it.key === 'uiw-expanded')) === -1 ? 0 : 1);
9235
9379
  }, [data]);
9236
9380
  var IconDom = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
9237
9381
  return (key, isOpacity) => {
@@ -9285,13 +9429,9 @@ function TableTr(props) {
9285
9429
  }
9286
9430
  }
9287
9431
 
9288
- if (ellipsis && ellipsis[keyName.key]) {
9289
- objs.className = prefixCls + "-ellipsis";
9290
- }
9291
-
9292
9432
  var isHasChildren = Array.isArray(trData[childrenColumnName]);
9293
9433
 
9294
- if (colNum === 0 && (isOpacity || hierarchy || isHasChildren)) {
9434
+ if (colNum === childrenIndex && (isOpacity || hierarchy || isHasChildren)) {
9295
9435
  objs.children = /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
9296
9436
  children: [IconDom(key, isHasChildren), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
9297
9437
  style: {
@@ -9301,10 +9441,22 @@ function TableTr(props) {
9301
9441
  });
9302
9442
  }
9303
9443
 
9444
+ if (keyName.fixed) {
9445
+ if (keyName.fixed === 'right') {
9446
+ objs.className = objs.className + " " + prefixCls + "-fixed-right";
9447
+ } else {
9448
+ objs.className = objs.className + " " + prefixCls + "-fixed-true";
9449
+ }
9450
+ }
9451
+
9304
9452
  return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)("td", _extends({}, objs, {
9305
- key: colNum // style={keyName?.style}
9306
- ,
9307
- className: (objs.className || '') + " " + prefixCls + "-tr-children-" + (keyName.align || 'left') + " " + (keyName.className || ''),
9453
+ style: _extends({}, locationFixed(keyName.fixed, locationWidth, colNum)),
9454
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
9455
+ className: ellipsis && ellipsis[keyName.key] ? prefixCls + "-ellipsis" : undefined,
9456
+ children: objs.children
9457
+ }),
9458
+ key: colNum,
9459
+ className: prefixCls + "-tr-children-" + (keyName.align || 'left') + " " + (keyName.className || '') + " " + (objs.className || ''),
9308
9460
  onClick: evn => onCell(trData, {
9309
9461
  rowNum,
9310
9462
  colNum,
@@ -9312,10 +9464,10 @@ function TableTr(props) {
9312
9464
  }, evn)
9313
9465
  }));
9314
9466
  })
9315
- }, key), expandIndex.includes(key) && /*#__PURE__*/(0,jsx_runtime.jsx)(TableTr, _extends({}, props, {
9467
+ }, key), isExpandedDom(trData, rowNum), expandIndex.includes(key) && /*#__PURE__*/(0,jsx_runtime.jsx)(TableTr, _extends({}, props, {
9316
9468
  data: trData[childrenColumnName],
9317
9469
  hierarchy: hierarchy + 1
9318
- })), isExpandedDom(trData, rowNum)]
9470
+ }))]
9319
9471
  }, rowNum);
9320
9472
  })
9321
9473
  });
@@ -9359,10 +9511,58 @@ function Table(props) {
9359
9511
  other = _objectWithoutPropertiesLoose(props, react_table_esm_excluded);
9360
9512
 
9361
9513
  var [expandIndex, setExpandIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
9514
+ var [locationWidth, setLocationWidth] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({});
9515
+ var finalLocationWidth = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
9516
+
9517
+ var updateLocation = (params, index) => {
9518
+ finalLocationWidth.current = _extends({}, finalLocationWidth.current, {
9519
+ [index]: _extends({}, finalLocationWidth.current[index], params)
9520
+ });
9521
+
9522
+ if (index === columns.length - 1) {
9523
+ setLocationWidth(computed());
9524
+ }
9525
+ };
9526
+
9527
+ var computed = () => {
9528
+ var left = 0,
9529
+ right = 0;
9530
+
9531
+ for (var _index = 0; _index < columns.length; _index++) {
9532
+ if (finalLocationWidth.current[_index]) {
9533
+ finalLocationWidth.current[_index].left = left;
9534
+ left = finalLocationWidth.current[_index].width + left;
9535
+ }
9536
+ }
9537
+
9538
+ for (var _index2 = columns.length - 1; _index2 > -1; _index2--) {
9539
+ if (finalLocationWidth.current[_index2]) {
9540
+ finalLocationWidth.current[_index2].right = right;
9541
+ right = finalLocationWidth.current[_index2].width + right;
9542
+ }
9543
+ }
9544
+
9545
+ return finalLocationWidth.current;
9546
+ };
9547
+
9362
9548
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
9549
+ var childKey = (expandable == null ? void 0 : expandable.childrenColumnName) || 'children';
9550
+
9551
+ var deep = params => {
9552
+ var arr1 = [];
9553
+ var arr = params.map((it, index) => {
9554
+ if (Array.isArray(it[childKey])) {
9555
+ arr1.push(...deep(it[childKey]));
9556
+ }
9557
+
9558
+ return rowKey ? it[rowKey] : index;
9559
+ });
9560
+ return [...arr1, ...arr];
9561
+ };
9562
+
9363
9563
  if (expandable) {
9364
9564
  if (expandable.defaultExpandAllRows) {
9365
- setExpandIndex(data.map((it, index) => rowKey ? it[rowKey] : index));
9565
+ setExpandIndex(deep(data));
9366
9566
  return;
9367
9567
  }
9368
9568
 
@@ -9507,10 +9707,13 @@ function Table(props) {
9507
9707
  children: title
9508
9708
  }), columns && columns.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(TheadComponent, {
9509
9709
  onCellHead: onCellHead,
9510
- data: header
9710
+ data: header,
9711
+ locationWidth: locationWidth,
9712
+ updateLocation: updateLocation
9511
9713
  }), data && data.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
9512
9714
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(TableTr, {
9513
9715
  rowKey: rowKey,
9716
+ locationWidth: locationWidth,
9514
9717
  data: data,
9515
9718
  keys: self.keys,
9516
9719
  render: render,
@@ -10367,6 +10570,7 @@ function SearchTagInput(props) {
10367
10570
  setInnerIsOpen(isOpen);
10368
10571
  if (!isOpen) searchValueChange('');
10369
10572
  },
10573
+ disabled: disabled,
10370
10574
  isOpen: innerIsOpen,
10371
10575
  menu: /*#__PURE__*/(0,jsx_runtime.jsx)(react_card_esm, {
10372
10576
  bodyStyle: emptyOption === true ? {
@@ -10404,6 +10608,7 @@ function SearchTagInput(props) {
10404
10608
  },
10405
10609
  className: prefixCls + "-tag",
10406
10610
  closable: true,
10611
+ disabled: disabled,
10407
10612
  color: "#393E48",
10408
10613
  onClose: e => {
10409
10614
  e.stopPropagation();
@@ -10413,10 +10618,7 @@ function SearchTagInput(props) {
10413
10618
  }, index);
10414
10619
  }), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
10415
10620
  ref: inputRef,
10416
- style: {
10417
- flex: 1,
10418
- minWidth: 30
10419
- },
10621
+ style: {},
10420
10622
  className: prefixCls + "-input-contents",
10421
10623
  size: size,
10422
10624
  disabled: disabled,
@@ -10425,7 +10627,7 @@ function SearchTagInput(props) {
10425
10627
  value: searchValue,
10426
10628
  placeholder: selectedOption.length ? '' : placeholder
10427
10629
  })]
10428
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
10630
+ }), !disabled && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
10429
10631
  style: {
10430
10632
  height: 25,
10431
10633
  width: 14