shineout 3.9.0-beta.26 → 3.9.0-beta.28

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.0-beta.26'
525
+ version: '3.9.0-beta.28'
526
526
  };
@@ -8,13 +8,13 @@ export type ModalFunctionOptions = Omit<ModalOptions, 'jssStyle'>;
8
8
  * @title ModalMethods
9
9
  * @cn Modal 提供了一组方法供全局调用,这些方法生成的元素,会在关闭后销毁。
10
10
  * 该组方法应仅供展示所用, 如果需要数据交互, 请使用 Modal。
11
- * Modal.info(options) // 提示信息
12
- * Modal.success(options) // 成功信息
13
- * Modal.warning(options) // 警告信息
14
- * Modal.error(options) // 错误信息
15
- * Modal.confirm(options) // 确认信息
16
- * Modal.show(options) // 普通信息
17
- * Modal.closeAll // 关闭所有Modal
11
+ * - `Modal.info(options)` 提示信息
12
+ * - `Modal.success(options)` 成功信息
13
+ * - `Modal.warn(options)` 警告信息
14
+ * - `Modal.error(options)` 错误信息
15
+ * - `Modal.confirm(options)` 确认信息
16
+ * - `Modal.show(options)` 普通信息
17
+ * - `Modal.closeAll` 关闭所有Modal
18
18
  * options 支持 Modal除了 destory, visible 的其他任何属性, 此外还有如下的额外属性:
19
19
  */
20
20
  export type ModalFunctionExternalOptions = Omit<ModalFunctionOptions, keyof ModalProps>;
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.0-beta.26');
12403
+ /* harmony default export */ var version = ('3.9.0-beta.28');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -14680,6 +14680,7 @@ var sliderTokens = {
14680
14680
 
14681
14681
  var spinTokens = {
14682
14682
  spinTipFontColor: 'Brand-6',
14683
+ spinTipFontSize: 'Font-14',
14683
14684
  spinVerticalMargin: 'Spacing-4',
14684
14685
  spinHorizontalMargin: 'Spacing-4',
14685
14686
  spinColor: 'Brand-6',
@@ -14785,7 +14786,7 @@ var switchTokens = {
14785
14786
  switchDisabledCircleUncheckedFill: 'Neutral-fill-2',
14786
14787
  switchDisabledFontColor: 'Neutral-text-2',
14787
14788
  switchLoadingBackgroundColor: 'Neutral-fill-2',
14788
- switchLoadingCircleFill: 'Neutral-text-2',
14789
+ switchLoadingCircleFill: 'Neutral-fill-3',
14789
14790
  switchLoadingFontColor: 'Neutral-text-2',
14790
14791
  switchCheckedBackgroundColor: 'Brand-6',
14791
14792
  switchCheckedCircleFill: 'Neutral-fill-1',
@@ -18821,13 +18822,13 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
18821
18822
  color: src.datePickerCellOtherColor
18822
18823
  },
18823
18824
  '&:not($pickerCellDisabled):not($pickerCellActive):hover': {
18824
- '& span': {
18825
+ '& $pickerCellContent > span': {
18825
18826
  backgroundColor: src.datePickerCellHoverBackgroundColor,
18826
18827
  color: src.datePickerCellHoverColor
18827
18828
  }
18828
18829
  },
18829
18830
  '&$pickerCellInRange:not($pickerCellActive):not($pickerCellDisabled):hover': {
18830
- '& span': {
18831
+ '& $pickerCellContent > span': {
18831
18832
  backgroundColor: src.datePickerCellActiveHoverBackgroundColor
18832
18833
  }
18833
18834
  },
@@ -18841,7 +18842,7 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
18841
18842
  position: 'relative',
18842
18843
  height: src.datePickerCellHeight,
18843
18844
  lineHeight: src.datePickerCellHeight,
18844
- '& span': {
18845
+ '& > span': {
18845
18846
  display: 'inline-block',
18846
18847
  minWidth: src.datePickerCellHotHeight,
18847
18848
  height: src.datePickerCellHotHeight,
@@ -19198,6 +19199,9 @@ var descriptionsStyle = {
19198
19199
  horizontal: {
19199
19200
  '& $label': {
19200
19201
  width: '1px'
19202
+ },
19203
+ '& $value:empty': {
19204
+ width: '1px'
19201
19205
  }
19202
19206
  },
19203
19207
  vertical: {
@@ -25427,7 +25431,8 @@ var spinStyle = objectSpread2_default()(objectSpread2_default()({
25427
25431
  }
25428
25432
  },
25429
25433
  tip: {
25430
- color: src.spinTipFontColor
25434
+ color: src.spinTipFontColor,
25435
+ fontSize: src.spinTipFontSize
25431
25436
  },
25432
25437
  vertical: {},
25433
25438
  horizontal: {}
@@ -41103,7 +41108,9 @@ var Scroll = function Scroll(props) {
41103
41108
  _props$scrollWidth = props.scrollWidth,
41104
41109
  scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
41105
41110
  _props$defaultHeight = props.defaultHeight,
41106
- defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
41111
+ defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight,
41112
+ _props$keepScrollTop = props.keepScrollTop,
41113
+ keepScrollTop = _props$keepScrollTop === void 0 ? false : _props$keepScrollTop;
41107
41114
  var _useResize = useResize({
41108
41115
  targetRef: containerRef,
41109
41116
  timer: 100
@@ -41128,7 +41135,9 @@ var Scroll = function Scroll(props) {
41128
41135
 
41129
41136
  // 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
41130
41137
  var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
41131
- return height === 0 ? 0 : Math.max(0, Math.floor(scrollHeight - height));
41138
+ var maxHeight = Math.max(0, scrollHeight - height);
41139
+ if (keepScrollTop) return maxHeight;
41140
+ return height === 0 ? 0 : maxHeight;
41132
41141
  }, [scrollHeight, height]);
41133
41142
  var placeStyle = {
41134
41143
  paddingTop: paddingTop,
@@ -41417,6 +41426,7 @@ var VirtualList = function VirtualList(props) {
41417
41426
  wrapperRef: wrapperRef,
41418
41427
  onScroll: handleScroll,
41419
41428
  onMouseMove: handleMouseMove,
41429
+ keepScrollTop: keepScrollTop,
41420
41430
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
41421
41431
  className: tagClassName,
41422
41432
  style: innerStyle,
@@ -41637,6 +41647,8 @@ var CascaderNode = function CascaderNode(props) {
41637
41647
  handleSelect(e);
41638
41648
  };
41639
41649
  hasHandleSelectRef.current = true;
41650
+ } else {
41651
+ hasHandleSelectRef.current = false;
41640
41652
  }
41641
41653
  return events;
41642
41654
  };
@@ -42925,7 +42937,7 @@ var result_Result = function Result(props) {
42925
42937
  handleResultItemClick(e, item);
42926
42938
  };
42927
42939
  var content = renderResultContent(item, index, nodes);
42928
- if (!content) return null;
42940
+ if (!content && content !== 0) return null;
42929
42941
  if (renderResultContentProp) {
42930
42942
  // cascader 不渲染tag
42931
42943
  return renderResultContentProp(objectSpread2_default()({
@@ -47131,17 +47143,17 @@ var useDate = function useDate(props) {
47131
47143
  }),
47132
47144
  context = _useRef.current;
47133
47145
  var current = props.current === undefined || !props.current ? currentState : props.current;
47134
- var setCurrent = function setCurrent(date) {
47146
+ var setCurrent = function setCurrent(date, type) {
47135
47147
  var _props$onCurrentChang2;
47136
47148
  if (props.current !== undefined) {
47137
47149
  var _props$onCurrentChang;
47138
- (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
47150
+ (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
47139
47151
  } else {
47140
47152
  if (date) {
47141
47153
  setCurrentState(date);
47142
47154
  }
47143
47155
  }
47144
- (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
47156
+ (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
47145
47157
  };
47146
47158
  var isToday = function isToday(date) {
47147
47159
  var today = util.newDate(undefined, options);
@@ -47163,19 +47175,19 @@ var useDate = function useDate(props) {
47163
47175
  }, [options.weekStartsOn]);
47164
47176
  var handleNextYear = use_persist_fn(function () {
47165
47177
  var date = util.addYears(current, 1, options);
47166
- setCurrent(date);
47178
+ setCurrent(date, 'year');
47167
47179
  });
47168
47180
  var handlePrevYear = use_persist_fn(function () {
47169
47181
  var date = util.addYears(current, -1, options);
47170
- setCurrent(date);
47182
+ setCurrent(date, 'year');
47171
47183
  });
47172
47184
  var handleNextMonth = use_persist_fn(function () {
47173
47185
  var date = util.addMonths(current, 1, options);
47174
- setCurrent(date);
47186
+ setCurrent(date, 'month');
47175
47187
  });
47176
47188
  var handlePrevMonth = use_persist_fn(function () {
47177
47189
  var date = util.addMonths(current, -1, options);
47178
- setCurrent(date);
47190
+ setCurrent(date, 'month');
47179
47191
  });
47180
47192
  var isCurrentMonth = function isCurrentMonth(date) {
47181
47193
  return util.isSameMonth(date, current, options);
@@ -47782,8 +47794,8 @@ var Day = function Day(props) {
47782
47794
  props.onChange(date, noClose || props.type === 'datetime');
47783
47795
  props.setTarget(undefined);
47784
47796
  });
47785
- var setCurrent = usePersistFn(function (date) {
47786
- props.setCurrent(date, areaType);
47797
+ var setCurrent = usePersistFn(function (date, type) {
47798
+ props.setCurrent(date, type || areaType);
47787
47799
  });
47788
47800
  var _useDatePick = use_date({
47789
47801
  current: props.current,
@@ -47815,7 +47827,7 @@ var Day = function Day(props) {
47815
47827
  props.setCurrent(new Date(), areaType);
47816
47828
  props.onChange(new Date(), props.needConfirm || props.type === 'datetime');
47817
47829
  setTimeout(function () {
47818
- if (props.closeByConfirm && !props.range) props.closeByConfirm();
47830
+ if (props.needConfirm && props.closeByConfirm && !props.range) props.closeByConfirm();
47819
47831
  }, 0);
47820
47832
  };
47821
47833
  var renderDay = function renderDay(item, index) {
@@ -47845,7 +47857,16 @@ var Day = function Day(props) {
47845
47857
  onMouseLeave: isDisabled ? undefined : function () {
47846
47858
  props.setTarget(undefined);
47847
47859
  },
47848
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
47860
+ children: props.renderDate ? props.renderDate({
47861
+ date: item,
47862
+ isDisabled: isDisabled,
47863
+ isInRange: isInRange,
47864
+ isToday: isToday,
47865
+ isCurrentMonth: isCurrentMonth,
47866
+ isActive: isActive,
47867
+ position: props.position,
47868
+ className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent
47869
+ }) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
47849
47870
  className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent,
47850
47871
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
47851
47872
  children: func.getDayStr(item)
@@ -48046,15 +48067,15 @@ var useMonth = function useMonth(props) {
48046
48067
  context = _useRef.current;
48047
48068
  var current = props.current === undefined ? currentState : props.current;
48048
48069
  var startYear = util.getDateInfo(current, 'year', options);
48049
- var setCurrent = function setCurrent(date) {
48070
+ var setCurrent = function setCurrent(date, type) {
48050
48071
  var _props$onCurrentChang2;
48051
48072
  if (props.current !== undefined) {
48052
48073
  var _props$onCurrentChang;
48053
- (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
48074
+ (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
48054
48075
  } else {
48055
48076
  setCurrentState(date);
48056
48077
  }
48057
- (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
48078
+ (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
48058
48079
  };
48059
48080
  var isNow = function isNow(date) {
48060
48081
  var today = util.newDate(undefined, options);
@@ -48076,11 +48097,11 @@ var useMonth = function useMonth(props) {
48076
48097
  };
48077
48098
  var handleNext = use_persist_fn(function () {
48078
48099
  var date = util.addYears(current, 1, options);
48079
- setCurrent(date);
48100
+ setCurrent(date, 'year');
48080
48101
  });
48081
48102
  var handlePrev = use_persist_fn(function () {
48082
48103
  var date = util.addYears(current, -1, options);
48083
- setCurrent(date);
48104
+ setCurrent(date, 'year');
48084
48105
  });
48085
48106
  var isDisabled = function isDisabled(date) {
48086
48107
  var min = props.min,
@@ -48157,8 +48178,8 @@ var Month = function Month(props) {
48157
48178
  var changeMode = usePersistFn(function () {
48158
48179
  props.setMode('day');
48159
48180
  });
48160
- var setCurrent = usePersistFn(function (date) {
48161
- props.setCurrent(date, 'month');
48181
+ var setCurrent = usePersistFn(function (date, type) {
48182
+ props.setCurrent(date, type || 'month');
48162
48183
  });
48163
48184
  var _useMonthPick = use_month({
48164
48185
  current: props.current,
@@ -48279,15 +48300,15 @@ var useYear = function useYear(props) {
48279
48300
  context = _useRef.current;
48280
48301
  var current = props.current === undefined ? currentState : props.current;
48281
48302
  var startYear = util.getStartYear(current, options);
48282
- var setCurrent = function setCurrent(date) {
48303
+ var setCurrent = function setCurrent(date, type) {
48283
48304
  var _props$onCurrentChang2;
48284
48305
  if (props.current !== undefined) {
48285
48306
  var _props$onCurrentChang;
48286
- (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
48307
+ (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
48287
48308
  } else {
48288
48309
  setCurrentState(date);
48289
48310
  }
48290
- (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
48311
+ (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
48291
48312
  };
48292
48313
  var isNow = function isNow(date) {
48293
48314
  var today = util.newDate(undefined, options);
@@ -48309,11 +48330,11 @@ var useYear = function useYear(props) {
48309
48330
  };
48310
48331
  var handleNext = use_persist_fn(function () {
48311
48332
  var date = util.addYears(current, 10, options);
48312
- setCurrent(date);
48333
+ setCurrent(date, 'year');
48313
48334
  });
48314
48335
  var handlePrev = use_persist_fn(function () {
48315
48336
  var date = util.addYears(current, -10, options);
48316
- setCurrent(date);
48337
+ setCurrent(date, 'year');
48317
48338
  });
48318
48339
  var isDisabled = function isDisabled(date) {
48319
48340
  var min = props.min,
@@ -48392,8 +48413,8 @@ var Year = function Year(props) {
48392
48413
  var changeMode = usePersistFn(function () {
48393
48414
  props.setMode('month');
48394
48415
  });
48395
- var setCurrent = usePersistFn(function (date) {
48396
- props.setCurrent(date, 'year');
48416
+ var setCurrent = usePersistFn(function (date, type) {
48417
+ props.setCurrent(date, type || 'year');
48397
48418
  });
48398
48419
  var _useYearPick = use_year({
48399
48420
  current: props.current,
@@ -48517,15 +48538,15 @@ var useQuarter = function useQuarter(props) {
48517
48538
  context = _useRef.current;
48518
48539
  var current = props.current === undefined ? currentState : props.current;
48519
48540
  var startYear = util.getDateInfo(current, 'year', options);
48520
- var setCurrent = function setCurrent(date) {
48541
+ var setCurrent = function setCurrent(date, type) {
48521
48542
  var _props$onCurrentChang2;
48522
48543
  if (props.current !== undefined) {
48523
48544
  var _props$onCurrentChang;
48524
- (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
48545
+ (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
48525
48546
  } else {
48526
48547
  setCurrentState(date);
48527
48548
  }
48528
- (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
48549
+ (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
48529
48550
  };
48530
48551
  var isNow = function isNow(date) {
48531
48552
  var today = util.newDate(undefined, options);
@@ -48546,11 +48567,11 @@ var useQuarter = function useQuarter(props) {
48546
48567
  };
48547
48568
  var handleNext = use_persist_fn(function () {
48548
48569
  var date = util.addYears(current, 1, options);
48549
- setCurrent(date);
48570
+ setCurrent(date, 'year');
48550
48571
  });
48551
48572
  var handlePrev = use_persist_fn(function () {
48552
48573
  var date = util.addYears(current, -1, options);
48553
- setCurrent(date);
48574
+ setCurrent(date, 'year');
48554
48575
  });
48555
48576
  var isDisabled = function isDisabled(date) {
48556
48577
  var min = props.min,
@@ -48622,8 +48643,8 @@ var Quarter = function Quarter(props) {
48622
48643
  var jssStyle = props.jssStyle;
48623
48644
  var config = useConfig();
48624
48645
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
48625
- var setCurrent = usePersistFn(function (date) {
48626
- props.setCurrent(date, 'quarter');
48646
+ var setCurrent = usePersistFn(function (date, type) {
48647
+ props.setCurrent(date, type || 'quarter');
48627
48648
  });
48628
48649
  var _useQuarterPick = use_quarter({
48629
48650
  current: props.current,
@@ -48839,11 +48860,8 @@ var useRangePick = function useRangePick(props) {
48839
48860
  return newArr;
48840
48861
  });
48841
48862
  };
48842
- var setCurrent = usePersistFn(function (index, date) {
48843
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
48844
- args[_key - 2] = arguments[_key];
48845
- }
48846
- props.setCurrentArr.apply(props, [function (arr) {
48863
+ var setCurrent = usePersistFn(function (index, date, type) {
48864
+ props.setCurrentArr(function (arr) {
48847
48865
  var newArr = toConsumableArray_default()(arr);
48848
48866
  newArr[index] = date;
48849
48867
  var modeCache = context.modeCache;
@@ -48869,19 +48887,13 @@ var useRangePick = function useRangePick(props) {
48869
48887
  }
48870
48888
  }
48871
48889
  return newArr;
48872
- }].concat(args));
48890
+ }, type, undefined);
48873
48891
  });
48874
- var setCurrentStart = usePersistFn(function (date) {
48875
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
48876
- args[_key2 - 1] = arguments[_key2];
48877
- }
48878
- setCurrent.apply(void 0, [0, date].concat(args));
48892
+ var setCurrentStart = usePersistFn(function (date, type) {
48893
+ setCurrent(0, date, type);
48879
48894
  });
48880
- var setCurrentEnd = usePersistFn(function (date) {
48881
- for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
48882
- args[_key3 - 1] = arguments[_key3];
48883
- }
48884
- setCurrent.apply(void 0, [1, date].concat(args));
48895
+ var setCurrentEnd = usePersistFn(function (date, type) {
48896
+ setCurrent(1, date, type);
48885
48897
  });
48886
48898
  var setDateStart = usePersistFn(function (date, noClose) {
48887
48899
  setDate(0, date, noClose);
@@ -49132,6 +49144,7 @@ var Picker = function Picker(props) {
49132
49144
  }
49133
49145
  if (mode === 'day') {
49134
49146
  return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), {}, {
49147
+ renderDate: props.renderDate,
49135
49148
  onDoubleClick: function onDoubleClick(item, type) {
49136
49149
  // 双击同时设置开始和结束日期
49137
49150
  if (props.range && props.type === 'datetime') {
@@ -49520,6 +49533,7 @@ var DatePicker = function DatePicker(props0) {
49520
49533
  registerModeDisabled: func.registerModeDisabled,
49521
49534
  isDisabledDate: func.isDisabledDate,
49522
49535
  needConfirm: props.needConfirm,
49536
+ renderDate: props.renderDate,
49523
49537
  children: props.children
49524
49538
  })
49525
49539
  })
@@ -49729,7 +49743,7 @@ var useDescriptions = function useDescriptions(props) {
49729
49743
 
49730
49744
 
49731
49745
  var Descriptions = function Descriptions(props) {
49732
- var _jssStyleProps$descri, _renderItem$;
49746
+ var _jssStyleProps$descri;
49733
49747
  var className = props.className,
49734
49748
  jssStyleProps = props.jssStyle,
49735
49749
  style = props.style,
@@ -49757,6 +49771,11 @@ var Descriptions = function Descriptions(props) {
49757
49771
  labelStyle: labelStyle
49758
49772
  }),
49759
49773
  renderItem = _useDescriptions.renderItem;
49774
+ var longestItem = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
49775
+ return renderItem.reduce(function (prev, curr) {
49776
+ return prev.length >= curr.length ? prev : curr;
49777
+ }, []);
49778
+ }, [renderItem]);
49760
49779
  var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
49761
49780
  var Header = function Header() {
49762
49781
  if (!title && !extra) return null;
@@ -49853,7 +49872,7 @@ var Descriptions = function Descriptions(props) {
49853
49872
  cellPadding: 0,
49854
49873
  cellSpacing: 0,
49855
49874
  children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("colgroup", {
49856
- children: (_renderItem$ = renderItem[0]) === null || _renderItem$ === void 0 ? void 0 : _renderItem$.map(function (_, index, arr) {
49875
+ children: longestItem === null || longestItem === void 0 ? void 0 : longestItem.map(function (_, index, arr) {
49857
49876
  return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
49858
49877
  style: {
49859
49878
  width: "".concat(1 / arr.length * 100, "%")
@@ -56175,6 +56194,9 @@ var ListOption = function ListOption(props) {
56175
56194
 
56176
56195
 
56177
56196
 
56197
+ var list_defaultRenderItem = function defaultRenderItem(d) {
56198
+ return d;
56199
+ };
56178
56200
  var list_List = function List(props) {
56179
56201
  var _jssStyle$select;
56180
56202
  var jssStyle = props.jssStyle,
@@ -56194,9 +56216,7 @@ var list_List = function List(props) {
56194
56216
  optionListRef = props.optionListRef,
56195
56217
  isAnimationFinish = props.isAnimationFinish,
56196
56218
  _props$renderItem = props.renderItem,
56197
- renderItemProp = _props$renderItem === void 0 ? function (d) {
56198
- return d;
56199
- } : _props$renderItem,
56219
+ renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
56200
56220
  closePop = props.closePop,
56201
56221
  onControlTypeChange = props.onControlTypeChange,
56202
56222
  onOptionClick = props.onOptionClick;
@@ -58346,9 +58366,7 @@ function Select(props0) {
58346
58366
  autoAdapt = props.autoAdapt,
58347
58367
  groupBy = props.groupBy,
58348
58368
  _props$renderItem = props.renderItem,
58349
- renderItemProp = _props$renderItem === void 0 ? function (d) {
58350
- return d;
58351
- } : _props$renderItem,
58369
+ renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
58352
58370
  renderResultProp = props.renderResult,
58353
58371
  renderUnmatched = props.renderUnmatched,
58354
58372
  resultClassName = props.resultClassName,
@@ -58569,7 +58587,8 @@ function Select(props0) {
58569
58587
  });
58570
58588
  var rootClass = classnames_default()(className, styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.wrapper, isEmpty && styles.wrapperEmpty, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), open && trigger === 'hover' && (styles === null || styles === void 0 ? void 0 : styles.triggerHover), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), defineProperty_default()({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
58571
58589
  var getRenderItem = function getRenderItem(data, index) {
58572
- return typeof renderItemProp === 'function' ? renderItemProp(data, index) : (data === null || data === void 0 ? void 0 : data[renderItemProp]) || '';
58590
+ var _data$renderItemProp;
58591
+ return typeof renderItemProp === 'function' ? renderItemProp(data, index) : (_data$renderItemProp = data === null || data === void 0 ? void 0 : data[renderItemProp]) !== null && _data$renderItemProp !== void 0 ? _data$renderItemProp : '';
58573
58592
  };
58574
58593
  var renderItem = getRenderItem;
58575
58594
  var handleFocus = usePersistFn(function (e) {
@@ -59935,7 +59954,8 @@ var list_list_List = function List(props) {
59935
59954
  minWidth: 0,
59936
59955
  overflow: 'auto'
59937
59956
  },
59938
- dynamicVirtual: props.dynamicHeight
59957
+ dynamicVirtual: props.dynamicHeight,
59958
+ keepScrollTop: !!props.scrollLoading
59939
59959
  }), renderFooter()]
59940
59960
  });
59941
59961
  }
@@ -66056,7 +66076,7 @@ var thead_toNum = toNum;
66056
66076
  var fixedStyle = getFixedStyle(col.fixed, col.index, level);
66057
66077
  var cellClassName = classnames_default()(colTemp.className, colTemp.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), colTemp.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), colTemp.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), colTemp.align !== 'right' && colTemp.align !== 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignLeft), (col.lastFixed || col.firstFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), isLast && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), colTemp.sorter && props.cellSortable && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellSortable));
66058
66078
  var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
66059
- if (colTemp.title || isExpand) {
66079
+ if (colTemp.title !== undefined || isExpand) {
66060
66080
  var sorter = renderSort(colTemp);
66061
66081
  var filter = renderFilter(colTemp, columnIndex);
66062
66082
  trs[level].push( /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
@@ -74215,7 +74235,7 @@ var upload_interface = __webpack_require__(8821);
74215
74235
 
74216
74236
 
74217
74237
  /* harmony default export */ var src_0 = ({
74218
- version: '3.9.0-beta.26'
74238
+ version: '3.9.0-beta.28'
74219
74239
  });
74220
74240
  }();
74221
74241
  /******/ return __webpack_exports__;