shineout 3.9.8-beta.9 → 3.9.9-beta.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/shineout.js CHANGED
@@ -6613,7 +6613,7 @@ __webpack_require__.r(strings_namespaceObject);
6613
6613
  __webpack_require__.d(strings_namespaceObject, {
6614
6614
  capitalize: function() { return capitalize; },
6615
6615
  getDirectionIconName: function() { return getDirectionIconName; },
6616
- getRTLPosition: function() { return getRTLPosition; },
6616
+ getRTLPosition: function() { return strings_getRTLPosition; },
6617
6617
  removeProtocol: function() { return strings_removeProtocol; },
6618
6618
  substitute: function() { return strings_substitute; }
6619
6619
  });
@@ -7299,7 +7299,7 @@ var config = {
7299
7299
  InfoLine: icons.InfoCircleFill,
7300
7300
  WarningLine: icons.WarningCircleFill,
7301
7301
  SuccessLine: icons.CheckCircleFill,
7302
- DangerLine: icons.Close
7302
+ DangerLine: icons.CloseFill
7303
7303
  },
7304
7304
  rate: {
7305
7305
  Star: icons.StarFill
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
12402
12402
  };
12403
12403
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12405
- /* harmony default export */ var version = ('3.9.8-beta.9');
12405
+ /* harmony default export */ var version = ('3.9.9-beta.1');
12406
12406
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12407
12407
 
12408
12408
 
@@ -13828,7 +13828,7 @@ var datePickerTokens = {
13828
13828
  datePickerCellHeaderColor: 'Neutral-text-4',
13829
13829
  datePickerCellMarginY: 'Spacing-4',
13830
13830
  datePickerTimePanelPaddingX: 'Spacing-12',
13831
- datePickerTimePanelPaddingY: 'Spacing-7',
13831
+ datePickerTimePanelPaddingY: 'Spacing-6',
13832
13832
  datePickerTimeListGap: 'Spacing-8',
13833
13833
  datePickerTimeItemHeight: 'Size-15',
13834
13834
  datePickerTimeItemBorderRadius: 'Radius-default',
@@ -14121,7 +14121,7 @@ var inputTokens = {
14121
14121
  inputBackgroundColor: 'Neutral-fill-1',
14122
14122
  inputClearColor: 'Neutral-text-3',
14123
14123
  inputToggleColor: 'Neutral-text-4',
14124
- inputHoverBorderColor: 'Brand-6',
14124
+ inputHoverBorderColor: 'Brand-5',
14125
14125
  inputHoverBackgroundColor: 'Neutral-fill-1',
14126
14126
  inputHoverClearColor: 'Neutral-text-4',
14127
14127
  inputHoverToggleColor: 'Neutral-text-5',
@@ -14576,6 +14576,8 @@ var selectTokens = {
14576
14576
  selectLargeOptionInnerPaddingY: 'Spacing-8',
14577
14577
  selectLargeClearIconSize: 'Font-16',
14578
14578
  selectLargePlaceholderMarginY: 'Spacing-4',
14579
+ selectLargeColumnPadding: 'Spacing-12',
14580
+ selectLargeHeaderPaddingX: 'Spacing-12',
14579
14581
  selectInnerPaddingX: 'Spacing-8',
14580
14582
  selectInnerPaddingY: 'Spacing-5',
14581
14583
  selectInnerTitleMarginY: 'Spacing-2',
@@ -14690,6 +14692,7 @@ var sliderTokens = {
14690
14692
  sliderIndicatorBackgroundColor: 'Neutral-fill-1',
14691
14693
  sliderIndicatorBorderColor: 'Brand-6',
14692
14694
  sliderIndicatorBorderSize: 'Border-2',
14695
+ sliderIndicatorHoverBoderColor: 'Brand-5',
14693
14696
  sliderIndicatorActiveBackgroundColor: 'Brand-6',
14694
14697
  sliderIndicatorActiveShadow: 'Shadow-1',
14695
14698
  sliderIndicatorDisabledBorderColor: 'Brand-3',
@@ -14736,6 +14739,7 @@ var spinTokens = {
14736
14739
 
14737
14740
  var stepsTokens = {
14738
14741
  stepsDescriptionFontColor: 'Neutral-text-3',
14742
+ stepsDescriptionFontSize: 'Font-14',
14739
14743
  stepsDescriptionTitleMarginX: 'Spacing-4',
14740
14744
  stepsIconWidth: 'Size-14',
14741
14745
  stepsIconHeight: 'Size-14',
@@ -14750,7 +14754,7 @@ var stepsTokens = {
14750
14754
  stepsSmallTitleFontSize: 'Font-14',
14751
14755
  stepsSmallDescriptionFontSize: 'Font-12',
14752
14756
  stepsLargeTitleFontSize: 'Font-18',
14753
- stepsLargeDescriptionFontSize: 'Font-12',
14757
+ stepsLargeDescriptionFontSize: 'Font-14',
14754
14758
  stepsWaitFontColor: 'Neutral-text-4',
14755
14759
  stepsWaitBackgroundColor: 'Neutral-fill-2',
14756
14760
  stepsWaitHoverFontColor: 'Brand-6',
@@ -15371,12 +15375,14 @@ var textareaTokens = {
15371
15375
  textareaSmallFontSize: 'Font-12',
15372
15376
  textareaSmallPaddingX: 'Spacing-8',
15373
15377
  textareaSmallPaddingY: 'Spacing-1',
15378
+ textareaSmallClearSize: 'Font-12',
15374
15379
  textareaLargeFontSize: 'Font-16',
15375
15380
  textareaLargePaddingX: 'Spacing-12',
15376
15381
  textareaLargePaddingY: 'Spacing-7',
15382
+ textareaLargeClearSize: 'Font-16',
15377
15383
  textareaPlaceholderColor: 'Neutral-text-2',
15378
15384
  textareaBackgroundColor: 'Neutral-fill-1',
15379
- textareaHoverBorderColor: 'Brand-6',
15385
+ textareaHoverBorderColor: 'Brand-5',
15380
15386
  textareaFocusBorderColor: 'Brand-7',
15381
15387
  textareaFocusShadow: 'Brand-2',
15382
15388
  textareaDisabledFontColor: 'Neutral-text-2',
@@ -17379,6 +17385,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17379
17385
  ;// CONCATENATED MODULE: ../shineout-style/src/input/input-border.ts
17380
17386
 
17381
17387
 
17388
+
17382
17389
  var supportsHas = function supportsHas() {
17383
17390
  if (typeof CSS === 'undefined' || typeof CSS.supports === 'undefined') {
17384
17391
  return false;
@@ -17512,13 +17519,13 @@ var supportsHas = function supportsHas() {
17512
17519
  // '[data-soui-role="input-group-separate"]&': {
17513
17520
  // boxShadow: 'none',
17514
17521
  // }
17515
- })), "".concat(name, "Disabled"), defineProperty_default()(defineProperty_default()({
17522
+ })), "".concat(name, "Disabled"), defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({
17516
17523
  color: token.disabledFontColor,
17517
17524
  backgroundColor: token.disabledBackgroundColor,
17518
17525
  borderColor: token.disabledBorderColor,
17519
17526
  boxShadow: 'none',
17520
17527
  cursor: 'not-allowed'
17521
- }, "&:not($".concat(name, "Error):hover"), {
17528
+ }, getTokenName('inputInnerPlaceFontColor'), token.disabledFontColor), getTokenName('inputInnerFontColor'), token.disabledFontColor), "&:not($".concat(name, "Error):hover"), {
17522
17529
  borderColor: token.disabledBorderColor
17523
17530
  }), '& *', {
17524
17531
  cursor: 'not-allowed'
@@ -18373,6 +18380,10 @@ var collapseItemStyle = {
18373
18380
  }
18374
18381
  }
18375
18382
  },
18383
+ iconRight: {
18384
+ marginRight: 0,
18385
+ marginLeft: src.collapseHeaderGap
18386
+ },
18376
18387
  title: {
18377
18388
  flex: 1,
18378
18389
  lineHeight: src.lineHeightDynamic
@@ -20994,6 +21005,9 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
20994
21005
  height: src.inputIconSize,
20995
21006
  color: src.inputToggleColor,
20996
21007
  cursor: 'pointer',
21008
+ '$wrapperDisabled &': {
21009
+ color: src.inputDisabledFontColor
21010
+ },
20997
21011
  '$wrapperSmall &': {
20998
21012
  width: src.inputSmallIconSize,
20999
21013
  height: src.inputSmallIconSize
@@ -21738,6 +21752,9 @@ var menuStyle = {
21738
21752
  '$wrapper:not($wrapperVertical) $itemClosing > $itemContent &': {
21739
21753
  transform: 'rotate(0deg)'
21740
21754
  }
21755
+ },
21756
+ '&$expandFront > $icon': {
21757
+ minHeight: src.lineHeightDynamic
21741
21758
  }
21742
21759
  },
21743
21760
  expandVertical: {
@@ -22386,9 +22403,17 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
22386
22403
  top: 12,
22387
22404
  right: 12,
22388
22405
  marginTop: 0,
22406
+ '[dir="rtl"] &': {
22407
+ right: 'auto',
22408
+ left: 12
22409
+ },
22389
22410
  '$wrapperDrawer &': {
22390
22411
  top: 4,
22391
- right: 4
22412
+ right: 4,
22413
+ '[dir="rtl"] &': {
22414
+ right: 'auto',
22415
+ left: 4
22416
+ }
22392
22417
  }
22393
22418
  },
22394
22419
  body: {
@@ -24475,6 +24500,10 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
24475
24500
  marginRight: 0,
24476
24501
  marginLeft: 4,
24477
24502
  width: 'auto'
24503
+ },
24504
+ '$pickerLarge &': {
24505
+ paddingLeft: src.selectLargeHeaderPaddingX,
24506
+ paddingRight: src.selectLargeHeaderPaddingX
24478
24507
  }
24479
24508
  },
24480
24509
  footer: {},
@@ -24498,6 +24527,10 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
24498
24527
  height: '100%',
24499
24528
  display: 'flex',
24500
24529
  alignItems: 'center',
24530
+ '$pickerLarge &': {
24531
+ paddingLeft: src.selectLargeColumnPadding,
24532
+ paddingRight: src.selectLargeColumnPadding
24533
+ },
24501
24534
  '& $columnsCheckbox': {
24502
24535
  marginRight: 0
24503
24536
  },
@@ -24713,6 +24746,12 @@ var sliderStyle = {
24713
24746
  indicator: {
24714
24747
  position: 'absolute',
24715
24748
  zIndex: 100,
24749
+ '&:hover::after': {
24750
+ borderColor: src.sliderIndicatorHoverBoderColor
24751
+ },
24752
+ '&:active::after': {
24753
+ borderColor: src.sliderIndicatorBorderColor
24754
+ },
24716
24755
  '&::after': {
24717
24756
  content: '""',
24718
24757
  display: 'block',
@@ -25554,7 +25593,8 @@ var spinStyle = objectSpread2_default()(objectSpread2_default()({
25554
25593
  chasingRing: chasing_ring,
25555
25594
  fade: {},
25556
25595
  spin: {
25557
- margin: 'auto'
25596
+ margin: 'auto',
25597
+ flexShrink: 0
25558
25598
  },
25559
25599
  content: {
25560
25600
  margin: 'auto',
@@ -25736,6 +25776,9 @@ var stepsStyle = {
25736
25776
  '& $title': {
25737
25777
  fontSize: src.stepsSmallTitleFontSize
25738
25778
  },
25779
+ '& $content $description': {
25780
+ fontSize: src.stepsSmallDescriptionFontSize
25781
+ },
25739
25782
  '&$default $iconWrapper': {
25740
25783
  fontSize: src.stepsSmallTitleFontSize,
25741
25784
  lineHeight: src.stepsSmallIconHeight,
@@ -25879,6 +25922,9 @@ var stepsStyle = {
25879
25922
  '& $title': {
25880
25923
  fontSize: src.stepsLargeTitleFontSize
25881
25924
  },
25925
+ '& $content $description': {
25926
+ fontSize: src.stepsLargeDescriptionFontSize
25927
+ },
25882
25928
  '&$default $iconWrapper': {
25883
25929
  fontSize: src.stepsLargeTitleFontSize,
25884
25930
  width: "calc(".concat(src.stepsLargeIconFontSize, " + 14px)"),
@@ -26479,7 +26525,7 @@ var stepsStyle = {
26479
26525
  lineHeight: src.stepsIconHeight
26480
26526
  },
26481
26527
  '& $description': {
26482
- fontSize: src.stepsSmallDescriptionFontSize
26528
+ fontSize: src.stepsDescriptionFontSize
26483
26529
  },
26484
26530
  '& $icon svg': {
26485
26531
  padding: 6,
@@ -28514,7 +28560,7 @@ var textarea_wrapper = textarea_inputBorder.wrapper,
28514
28560
  var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
28515
28561
  rootClass: {}
28516
28562
  }, textarea_inputBorder), {}, {
28517
- wrapper: objectSpread2_default()({
28563
+ wrapper: objectSpread2_default()(objectSpread2_default()({
28518
28564
  display: 'inline-flex',
28519
28565
  flexDirection: 'column',
28520
28566
  width: '100%',
@@ -28522,7 +28568,14 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
28522
28568
  position: 'relative',
28523
28569
  flexWrap: 'wrap',
28524
28570
  minHeight: "calc(".concat(src.lineHeightDynamic, " + ").concat(src.inputPaddingY, " * 2)")
28525
- }, textarea_wrapper)
28571
+ }, textarea_wrapper), {}, {
28572
+ '$wrapperSmall&': {
28573
+ minHeight: "calc(".concat(src.lineHeightDynamic, " + ").concat(src.inputSmallPaddingY, " * 2)")
28574
+ },
28575
+ '$wrapperLarge&': {
28576
+ minHeight: "calc(".concat(src.lineHeightDynamic, " + ").concat(src.inputLargePaddingY, " * 2)")
28577
+ }
28578
+ })
28526
28579
  }, textarea_resetWrapper), {}, {
28527
28580
  textarea: {
28528
28581
  padding: 0,
@@ -28594,13 +28647,27 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
28594
28647
  cursor: 'pointer',
28595
28648
  padding: 4,
28596
28649
  color: src.textareaClearColor,
28650
+ '$wrapperSmall &': {
28651
+ top: src.textareaSmallPaddingY
28652
+ },
28653
+ '$wrapperLarge &': {
28654
+ top: src.textareaLargePaddingY
28655
+ },
28597
28656
  '&:hover': {
28598
28657
  color: src.textareaClearHoverColor
28599
28658
  },
28600
28659
  '& > svg': {
28601
28660
  display: 'block',
28602
28661
  width: src.textareaClearSize,
28603
- height: src.textareaClearSize
28662
+ height: src.textareaClearSize,
28663
+ '$wrapperSmall &': {
28664
+ width: src.textareaSmallClearSize,
28665
+ height: src.textareaSmallClearSize
28666
+ },
28667
+ '$wrapperLarge &': {
28668
+ width: src.textareaLargeClearSize,
28669
+ height: src.textareaLargeClearSize
28670
+ }
28604
28671
  },
28605
28672
  '[dir="rtl"] &': {
28606
28673
  right: 'auto',
@@ -28609,7 +28676,13 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
28609
28676
  },
28610
28677
  wrapperWithClear: {
28611
28678
  '&& $textarea': {
28612
- paddingRight: "calc(".concat(src.textareaPaddingX, " * 4)")
28679
+ paddingRight: "calc(".concat(src.textareaPaddingX, " + ").concat(src.textareaClearSize, " + 12px)")
28680
+ },
28681
+ '&&$wrapperSmall > $textarea': {
28682
+ paddingRight: "calc(".concat(src.textareaSmallPaddingX, " + ").concat(src.textareaSmallClearSize, " + 12px)")
28683
+ },
28684
+ '&&$wrapperLarge > $textarea': {
28685
+ paddingRight: "calc(".concat(src.textareaLargePaddingX, " + ").concat(src.textareaLargeClearSize, " + 12px)")
28613
28686
  }
28614
28687
  }
28615
28688
  });
@@ -28690,7 +28763,7 @@ var TransferStyle = {
28690
28763
  '& $target': {
28691
28764
  borderRadius: "0 ".concat(src.transferBorderRadius, " ").concat(src.transferBorderRadius, " 0"),
28692
28765
  '& $header': {
28693
- paddingRight: 6,
28766
+ paddingRight: 8,
28694
28767
  borderRadius: "0 ".concat(src.transferBorderRadius, " 0 0")
28695
28768
  }
28696
28769
  }
@@ -28707,7 +28780,7 @@ var TransferStyle = {
28707
28780
  target: {},
28708
28781
  simpleTarget: {
28709
28782
  display: 'flex',
28710
- padding: '5px 3px',
28783
+ padding: '5px 4px',
28711
28784
  paddingLeft: 8,
28712
28785
  fontSize: src.transferFontSize,
28713
28786
  justifyContent: 'space-between',
@@ -28724,7 +28797,7 @@ var TransferStyle = {
28724
28797
  display: 'flex',
28725
28798
  alignItems: 'center',
28726
28799
  justifyContent: 'center',
28727
- marginLeft: 3,
28800
+ marginLeft: 4,
28728
28801
  '& svg': {
28729
28802
  width: src.transferFontSize,
28730
28803
  color: src.transferRemoveIconColor
@@ -31100,6 +31173,26 @@ var usePopup = function usePopup(props) {
31100
31173
  };
31101
31174
  };
31102
31175
  /* harmony default export */ var use_popup = (usePopup);
31176
+ ;// CONCATENATED MODULE: ../hooks/src/utils/rtl.ts
31177
+ var oppositeMap = {
31178
+ left: 'right',
31179
+ right: 'left',
31180
+ 'left-top': 'right-top',
31181
+ 'left-bottom': 'right-bottom',
31182
+ 'right-top': 'left-top',
31183
+ 'right-bottom': 'left-bottom',
31184
+ 'top-left': 'top-right',
31185
+ 'top-right': 'top-left',
31186
+ 'bottom-left': 'bottom-right',
31187
+ 'bottom-right': 'bottom-left',
31188
+ top: 'top',
31189
+ bottom: 'bottom',
31190
+ auto: 'auto'
31191
+ };
31192
+ var getRTLPosition = function getRTLPosition(position, isRTL) {
31193
+ if (!isRTL || !position) return position;
31194
+ return oppositeMap[position] || position;
31195
+ };
31103
31196
  ;// CONCATENATED MODULE: ../hooks/src/utils/func.ts
31104
31197
  // 节流函数
31105
31198
  var throttle = function throttle(func, wait) {
@@ -33446,7 +33539,7 @@ var Popover = function Popover(props) {
33446
33539
  open: props.visible,
33447
33540
  defaultOpen: props.defaultVisible,
33448
33541
  onCollapse: onVisibleChange,
33449
- position: props.position,
33542
+ position: getRTLPosition(props.position, config.direction === 'rtl'),
33450
33543
  trigger: trigger,
33451
33544
  autoMode: 'popover',
33452
33545
  priorityDirection: priorityDirection,
@@ -33897,7 +33990,7 @@ function useForkRef() {
33897
33990
 
33898
33991
 
33899
33992
 
33900
- var animation_list_excluded = ["display", "children", "style", "onRef", "show", "duration", "type", "className", "animation", "onAnimationAfterEnter"];
33993
+ var animation_list_excluded = ["display", "children", "style", "onRef", "show", "duration", "type", "className", "animation", "onAnimationAfterEnter", "dir"];
33901
33994
 
33902
33995
 
33903
33996
 
@@ -33949,6 +34042,7 @@ var AnimationList = function AnimationList(props) {
33949
34042
  _props$animation = props.animation,
33950
34043
  animation = _props$animation === void 0 ? true : _props$animation,
33951
34044
  onAnimationAfterEnter = props.onAnimationAfterEnter,
34045
+ dir = props.dir,
33952
34046
  forwardProps = objectWithoutProperties_default()(props, animation_list_excluded);
33953
34047
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(undefined),
33954
34048
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -34239,7 +34333,8 @@ var AnimationList = function AnimationList(props) {
34239
34333
  className: classNamePo,
34240
34334
  "data-sheinx-animation-type": type.join(' '),
34241
34335
  "data-sheinx-animation-duration": duration,
34242
- style: wrapperStyle
34336
+ style: wrapperStyle,
34337
+ dir: dir
34243
34338
  }, forwardProps), {}, {
34244
34339
  children: children
34245
34340
  }));
@@ -34369,7 +34464,7 @@ var Tooltip = function Tooltip(props) {
34369
34464
  var delay = props.delay || props.mouseEnterDelay || defaultDelay;
34370
34465
  var mouseLeaveDelay = props.mouseLeaveDelay || defaultDelay;
34371
34466
  var _usePopup = use_popup({
34372
- position: popsitionProps,
34467
+ position: getRTLPosition(popsitionProps, config.direction === 'rtl'),
34373
34468
  trigger: trigger,
34374
34469
  autoMode: 'popover',
34375
34470
  priorityDirection: priorityDirection,
@@ -38366,7 +38461,8 @@ var input_Input = function Input(props) {
38366
38461
  digits: commonProps.digits,
38367
38462
  integerLimit: commonProps.integerLimit,
38368
38463
  numType: commonProps.numType,
38369
- trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false
38464
+ trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false,
38465
+ required: false
38370
38466
  };
38371
38467
  var inputFormatProps = use_input_format(objectSpread2_default()({
38372
38468
  value: commonProps.value,
@@ -42429,6 +42525,7 @@ var Result = function Result(props) {
42429
42525
  disabledRight = props.disabledRight,
42430
42526
  _props$activeIndex = props.activeIndex,
42431
42527
  activeIndex = _props$activeIndex === void 0 ? -1 : _props$activeIndex,
42528
+ weekShort = props.weekShort,
42432
42529
  onClickProps = props.onClick;
42433
42530
  var _useConfig = useConfig(),
42434
42531
  locale = _useConfig.locale;
@@ -42490,7 +42587,7 @@ var Result = function Result(props) {
42490
42587
  var className = classnames_default()(styles === null || styles === void 0 ? void 0 : styles.resultText, info.target && (styles === null || styles === void 0 ? void 0 : styles.placeholder), dis && (styles === null || styles === void 0 ? void 0 : styles.resultTextDisabled), info.index === activeIndex && (styles === null || styles === void 0 ? void 0 : styles.resultTextActive));
42491
42588
  var formFieldId = (fieldId === null || fieldId === void 0 ? void 0 : fieldId.split(separator)) || [];
42492
42589
  var inputValue = info.target || info.value || '';
42493
- var displayValue = props.type === 'week' && inputValue ? "".concat(inputValue).concat(getLocale(locale, 'weekShort')) : inputValue;
42590
+ var displayValue = props.type === 'week' && inputValue && weekShort !== null ? "".concat(inputValue).concat(weekShort === undefined ? getLocale(locale, 'weekShort') : weekShort) : inputValue;
42494
42591
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
42495
42592
  className: className,
42496
42593
  id: formFieldId[info.index],
@@ -43562,7 +43659,6 @@ var Cascader = function Cascader(props0) {
43562
43659
  var _useConfig = useConfig(),
43563
43660
  locale = _useConfig.locale,
43564
43661
  direction = _useConfig.direction;
43565
- var isRtl = direction === 'rtl';
43566
43662
  var jssStyle = props.jssStyle,
43567
43663
  style = props.style,
43568
43664
  _props$adjust = props.adjust,
@@ -43615,7 +43711,7 @@ var Cascader = function Cascader(props0) {
43615
43711
  compressed = props.compressed,
43616
43712
  compressedBound = props.compressedBound,
43617
43713
  _props$position = props.position,
43618
- positionProp = _props$position === void 0 ? isRtl ? 'bottom-right' : 'bottom-left' : _props$position,
43714
+ positionProp = _props$position === void 0 ? 'bottom-left' : _props$position,
43619
43715
  absolute = props.absolute,
43620
43716
  zIndex = props.zIndex,
43621
43717
  emptyText = props.emptyText,
@@ -43706,7 +43802,7 @@ var Cascader = function Cascader(props0) {
43706
43802
  onCollapse: onCollapse,
43707
43803
  disabled: false,
43708
43804
  trigger: 'click',
43709
- position: positionProp
43805
+ position: getRTLPosition(positionProp, direction === 'rtl')
43710
43806
  }),
43711
43807
  open = _usePopup.open,
43712
43808
  position = _usePopup.position,
@@ -44244,6 +44340,7 @@ var Cascader = function Cascader(props0) {
44244
44340
  type: "scale-y",
44245
44341
  duration: 'fast',
44246
44342
  style: pickerWrapperStyle,
44343
+ dir: direction,
44247
44344
  children: renderPanel()
44248
44345
  })
44249
44346
  })]
@@ -45844,8 +45941,9 @@ var CollapseItem = function CollapseItem(props) {
45844
45941
  getHeaderIconProps = _useCollapseItem.getHeaderIconProps,
45845
45942
  getTitleProps = _useCollapseItem.getTitleProps,
45846
45943
  getExtraProps = _useCollapseItem.getExtraProps;
45847
- var headerIconItem = function headerIconItem() {
45848
- var collapseItemIconClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.icon, jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.activeTransform // expandIconPosition === 'right'
45944
+ var headerIconItem = function headerIconItem(direction) {
45945
+ var collapseItemIconClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.icon, jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.activeTransform, direction === 'right' && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.iconRight)
45946
+ // expandIconPosition === 'right'
45849
45947
  // ? jssStyle?.collapseItem.activeTransformRight
45850
45948
  // : jssStyle?.collapseItem.activeTransform,
45851
45949
  );
@@ -45894,11 +45992,11 @@ var CollapseItem = function CollapseItem(props) {
45894
45992
  children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getItemContentProps({
45895
45993
  className: collapseItemHeaderClassName
45896
45994
  })), {}, {
45897
- children: [expandIconPosition === 'left' && headerIconItem(), extraPosition === 'left' && extraItem(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getTitleProps({
45995
+ children: [expandIconPosition === 'left' && headerIconItem('left'), extraPosition === 'left' && extraItem(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getTitleProps({
45898
45996
  className: classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.title, triggerRegion === 'header' && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.region))
45899
45997
  })), {}, {
45900
45998
  children: title
45901
- })), extraPosition === 'right' && extraItem(), expandIconPosition === 'right' && headerIconItem()]
45999
+ })), extraPosition === 'right' && extraItem(), expandIconPosition === 'right' && headerIconItem('right')]
45902
46000
  })), renderContent()]
45903
46001
  });
45904
46002
  };
@@ -47340,7 +47438,36 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
47340
47438
  return item;
47341
47439
  });
47342
47440
  var isDis = isDisabledInputDate(inputValue);
47441
+
47442
+ // Check min/max constraints for inputValue
47443
+ var isOutOfRange = false;
47343
47444
  if (!isDis) {
47445
+ for (var i = 0; i < inputValue.length; i++) {
47446
+ var _date = inputValue[i];
47447
+ if (_date) {
47448
+ if (type === 'week') {
47449
+ if (props.min && util.compareWeek(_date, props.min, 0, options) < 0) {
47450
+ isOutOfRange = true;
47451
+ break;
47452
+ }
47453
+ if (props.max && util.compareWeek(_date, props.max, 0, options) > 0) {
47454
+ isOutOfRange = true;
47455
+ break;
47456
+ }
47457
+ } else {
47458
+ if (props.min && util.compareDay(_date, props.min, 0, options) < 0) {
47459
+ isOutOfRange = true;
47460
+ break;
47461
+ }
47462
+ if (props.max && util.compareDay(_date, props.max, 0, options) > 0) {
47463
+ isOutOfRange = true;
47464
+ break;
47465
+ }
47466
+ }
47467
+ }
47468
+ }
47469
+ }
47470
+ if (!isDis && !isOutOfRange) {
47344
47471
  formatValue = getFormatValueArr(inputValue);
47345
47472
  }
47346
47473
  }
@@ -49617,7 +49744,9 @@ var DatePicker = function DatePicker(props0) {
49617
49744
  disabled = props.disabled,
49618
49745
  size = props.size,
49619
49746
  _props$adjust = props.adjust,
49620
- adjust = _props$adjust === void 0 ? true : _props$adjust;
49747
+ adjust = _props$adjust === void 0 ? true : _props$adjust,
49748
+ startOfWeek = props.startOfWeek,
49749
+ weekShort = props.weekShort;
49621
49750
  var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(-1),
49622
49751
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
49623
49752
  activeIndex = _React$useState2[0],
@@ -49639,7 +49768,6 @@ var DatePicker = function DatePicker(props0) {
49639
49768
  inputRefs: []
49640
49769
  });
49641
49770
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
49642
- var isRTL = direction === 'rtl';
49643
49771
  var dfp = 'bottom-left';
49644
49772
  var _React$useState9 = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(false),
49645
49773
  _React$useState10 = slicedToArray_default()(_React$useState9, 2),
@@ -49651,13 +49779,10 @@ var DatePicker = function DatePicker(props0) {
49651
49779
  } else if (!date_picker_verticalPosition.includes(listPosition)) {
49652
49780
  listPosition = dfp;
49653
49781
  }
49654
- if (isRTL) {
49655
- if (listPosition === 'bottom-left') listPosition = 'bottom-right';else if (listPosition === 'bottom-right') listPosition = 'bottom-left';else if (listPosition === 'top-left') listPosition = 'top-right';else if (listPosition === 'top-right') listPosition = 'top-left';
49656
- }
49657
49782
  var options = {
49658
49783
  timeZone: props.timeZone,
49659
49784
  // 需要确保 weekStartsOn 是 number,否则后续的星期顺序计算都会出错
49660
- weekStartsOn: Number(getLocale(locale, 'startOfWeek'))
49785
+ weekStartsOn: startOfWeek === null || startOfWeek === undefined ? Number(getLocale(locale, 'startOfWeek')) : startOfWeek
49661
49786
  };
49662
49787
  var inputAbleResult = useInputAble({
49663
49788
  value: props.value,
@@ -49681,7 +49806,9 @@ var DatePicker = function DatePicker(props0) {
49681
49806
  allowSingle: props.allowSingle,
49682
49807
  defaultCurrent: props.defaultPickerValue || props.defaultRangeMonth,
49683
49808
  formatResult: props.formatResult,
49684
- onPickerChange: props.onPickerChange
49809
+ onPickerChange: props.onPickerChange,
49810
+ min: props.min,
49811
+ max: props.max
49685
49812
  }),
49686
49813
  inputArr = _useDatePickerFormat.inputArr,
49687
49814
  resultArr = _useDatePickerFormat.resultArr,
@@ -49730,7 +49857,7 @@ var DatePicker = function DatePicker(props0) {
49730
49857
  onCollapse: onCollapse,
49731
49858
  disabled: disabledStatus === 'all',
49732
49859
  trigger: 'click',
49733
- position: listPosition
49860
+ position: getRTLPosition(listPosition, direction === 'rtl')
49734
49861
  }),
49735
49862
  open = _usePopup.open,
49736
49863
  position = _usePopup.position,
@@ -49804,6 +49931,7 @@ var DatePicker = function DatePicker(props0) {
49804
49931
  disabledLeft: disabledStatus === 'left',
49805
49932
  disabledRight: disabledStatus === 'right',
49806
49933
  placeholder: props.placeholder,
49934
+ weekShort: weekShort,
49807
49935
  focused: focused,
49808
49936
  open: open,
49809
49937
  onFocus: handleFocus,
@@ -50455,6 +50583,8 @@ function _ReactUnmount() {
50455
50583
 
50456
50584
 
50457
50585
 
50586
+
50587
+
50458
50588
  var hasMask = false;
50459
50589
  var modal_content_config = {
50460
50590
  instanceIds: [],
@@ -50513,6 +50643,8 @@ var Modal = function Modal(props) {
50513
50643
  var _props$jssStyle, _props$jssStyle$modal;
50514
50644
  var modalClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$modal = _props$jssStyle.modal) === null || _props$jssStyle$modal === void 0 ? void 0 : _props$jssStyle$modal.call(_props$jssStyle);
50515
50645
  var panelRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
50646
+ var wrapperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
50647
+ var popupCtx = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(popup_context);
50516
50648
  var isPositionX = ['left', 'right'].includes(props.position || '');
50517
50649
  var isPositionY = ['top', 'bottom'].includes(props.position || '');
50518
50650
  var defaultWidth = isPositionX ? 'auto' : 500;
@@ -50526,6 +50658,7 @@ var Modal = function Modal(props) {
50526
50658
  top = _props$top === void 0 ? '10vh' : _props$top,
50527
50659
  _props$style = props.style,
50528
50660
  style = _props$style === void 0 ? {} : _props$style;
50661
+ var globalConfig = useConfig();
50529
50662
  var width = style.width || props.width || defaultWidth;
50530
50663
  var height = style.height || props.height;
50531
50664
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
@@ -50726,6 +50859,22 @@ var Modal = function Modal(props) {
50726
50859
  }
50727
50860
  }, [props.setInnerClose]);
50728
50861
 
50862
+ // 将 Modal 的 ref 注册到父 Popover 的 chain 中,防止点击 Modal 时关闭 Popover
50863
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
50864
+ // Modal 显示或关闭动画播放期间,都需要在 chain 中
50865
+ if (wrapperRef.current) {
50866
+ if (visible) {
50867
+ popupCtx.bindChild(wrapperRef);
50868
+ } else {
50869
+ popupCtx.removeChild(wrapperRef);
50870
+ }
50871
+ }
50872
+ return function () {
50873
+ // 确保清理时移除
50874
+ popupCtx.removeChild(wrapperRef);
50875
+ };
50876
+ }, [visible]);
50877
+
50729
50878
  // render
50730
50879
  var renderIcon = function renderIcon(isEmptyTitle) {
50731
50880
  var iconRoot = classnames_default()(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerIcon, isEmptyTitle && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.emptyIcon));
@@ -50854,6 +51003,7 @@ var Modal = function Modal(props) {
50854
51003
  context.content = content;
50855
51004
  return /*#__PURE__*/(0,jsx_runtime.jsx)(FormFooterProvider, {
50856
51005
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
51006
+ ref: wrapperRef,
50857
51007
  onClick: function onClick(e) {
50858
51008
  e.stopPropagation();
50859
51009
  },
@@ -50864,6 +51014,7 @@ var Modal = function Modal(props) {
50864
51014
  zIndex: props.zIndex,
50865
51015
  display: !visible && !animation ? 'none' : undefined
50866
51016
  },
51017
+ dir: globalConfig.direction,
50867
51018
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
50868
51019
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.mask
50869
51020
  }, events), {}, {
@@ -51262,7 +51413,7 @@ var Dropdown = function Dropdown(props) {
51262
51413
  var dropdownClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$dropdown = jssStyle.dropdown) === null || _jssStyle$dropdown === void 0 ? void 0 : _jssStyle$dropdown.call(jssStyle);
51263
51414
  var config = useConfig();
51264
51415
  var isRtl = config.direction === 'rtl';
51265
- var dfp = isRtl ? 'bottom-right' : 'bottom-left';
51416
+ var dfp = 'bottom-left';
51266
51417
  var positionMap = {
51267
51418
  'left-top': 'left-top',
51268
51419
  'left-bottom': 'left-bottom',
@@ -51283,7 +51434,7 @@ var Dropdown = function Dropdown(props) {
51283
51434
  onCollapse: props.onCollapse,
51284
51435
  disabled: disabled,
51285
51436
  trigger: trigger,
51286
- position: props.position || dfp,
51437
+ position: getRTLPosition(props.position || dfp, isRtl),
51287
51438
  autoMode: 'menu',
51288
51439
  priorityDirection: 'vertical',
51289
51440
  mouseLeaveDelay: 200
@@ -56800,6 +56951,9 @@ var list_List = function List(props) {
56800
56951
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
56801
56952
  className: styles.optionGroupTitle,
56802
56953
  title: typeof title === 'string' ? title : undefined,
56954
+ style: {
56955
+ height: 'var(--group-title-height)'
56956
+ },
56803
56957
  children: title
56804
56958
  });
56805
56959
  };
@@ -56834,6 +56988,9 @@ var list_List = function List(props) {
56834
56988
  }, []);
56835
56989
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
56836
56990
  className: rootClass,
56991
+ style: {
56992
+ '--group-title-height': "".concat(lineHeight - 2, "px")
56993
+ },
56837
56994
  children: renderList()
56838
56995
  });
56839
56996
  };
@@ -58635,6 +58792,9 @@ var ColumnsList = function ColumnsList(props) {
58635
58792
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
58636
58793
  className: styles.optionGroupTitle,
58637
58794
  title: typeof title === 'string' ? title : undefined,
58795
+ style: {
58796
+ height: 'var(--group-title-height)'
58797
+ },
58638
58798
  children: title
58639
58799
  }, key);
58640
58800
  }
@@ -58845,7 +59005,7 @@ function Select(props0) {
58845
59005
  createOnBlur = _props$createOnBlur === void 0 ? true : _props$createOnBlur;
58846
59006
  var hasFilter = isFunc(props.onAdvancedFilter || onFilterProp);
58847
59007
  var showInput = hasFilter || isFunc(onCreateProp) || onCreateProp === true;
58848
- var positionProp = props.position || (direction === 'rtl' ? 'bottom-right' : 'bottom-left');
59008
+ var positionProp = props.position || 'bottom-left';
58849
59009
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
58850
59010
  var rootStyle = Object.assign({
58851
59011
  width: width
@@ -58920,7 +59080,7 @@ function Select(props0) {
58920
59080
  onCollapse: onCollapse,
58921
59081
  disabled: false,
58922
59082
  trigger: trigger,
58923
- position: positionProp
59083
+ position: getRTLPosition(positionProp, direction === 'rtl')
58924
59084
  }),
58925
59085
  open = _usePopup.open,
58926
59086
  position = _usePopup.position,
@@ -61193,6 +61353,21 @@ var MenuItem = function MenuItem(props) {
61193
61353
  flexShrink: 0
61194
61354
  }
61195
61355
  }) : null;
61356
+ var frontCaret = null;
61357
+ if (props.frontCaret) {
61358
+ frontCaret = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61359
+ style: {
61360
+ color: props.caretColor
61361
+ },
61362
+ className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandFront, (isVertical || isSubHorizontal) && (classes === null || classes === void 0 ? void 0 : classes.expandVertical), props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
61363
+ onClick: handleExpandClick,
61364
+ dir: config.direction,
61365
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61366
+ className: classes === null || classes === void 0 ? void 0 : classes.icon,
61367
+ children: frontCaretType === 'hollow' ? icons_config.menu.CollapseArrow : icons_config.menu.FrontSolidArrowDown
61368
+ })
61369
+ });
61370
+ }
61196
61371
  var item = render_render(props.renderItem, props.dataItem, props.index);
61197
61372
  var link = props.linkKey ? getKey(props.linkKey, props.dataItem, props.index, true) : undefined;
61198
61373
  var title = null;
@@ -61201,7 +61376,7 @@ var MenuItem = function MenuItem(props) {
61201
61376
  title = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(item, {
61202
61377
  className: mergeClass,
61203
61378
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
61204
- children: [indent, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61379
+ children: [indent, frontCaret, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61205
61380
  className: classes === null || classes === void 0 ? void 0 : classes.titleContent,
61206
61381
  children: item.props.children
61207
61382
  })]
@@ -61213,28 +61388,17 @@ var MenuItem = function MenuItem(props) {
61213
61388
  href: link
61214
61389
  };
61215
61390
  title = /*#__PURE__*/(0,jsx_runtime.jsxs)("a", objectSpread2_default()(objectSpread2_default()({}, linkProps), {}, {
61216
- children: [indent, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61391
+ children: [indent, frontCaret, iconEl, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61217
61392
  className: classes === null || classes === void 0 ? void 0 : classes.titleContent,
61218
61393
  children: wrapSpan(item)
61219
61394
  })]
61220
61395
  }));
61221
61396
  }
61222
61397
  if (props.frontCaret) {
61223
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, expandAble ? customAttributes : undefined), {}, {
61398
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, expandAble ? customAttributes : undefined), {}, {
61224
61399
  className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.itemContent, classes === null || classes === void 0 ? void 0 : classes.itemContentFront),
61225
61400
  onClick: handleItemClick,
61226
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61227
- style: {
61228
- color: props.caretColor
61229
- },
61230
- className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.expand, classes === null || classes === void 0 ? void 0 : classes.expandFront, (isVertical || isSubHorizontal) && (classes === null || classes === void 0 ? void 0 : classes.expandVertical), props.parentSelectable && (classes === null || classes === void 0 ? void 0 : classes.expandHover)),
61231
- onClick: handleExpandClick,
61232
- dir: config.direction,
61233
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61234
- className: classes === null || classes === void 0 ? void 0 : classes.icon,
61235
- children: frontCaretType === 'hollow' ? icons_config.menu.CollapseArrow : icons_config.menu.FrontSolidArrowDown
61236
- })
61237
- }), title]
61401
+ children: title
61238
61402
  }));
61239
61403
  } else {
61240
61404
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, expandAble ? customAttributes : undefined), {}, {
@@ -65008,21 +65172,21 @@ var useColumns = function useColumns(props) {
65008
65172
  var scrollLeft = scrollInfo.scrollLeft;
65009
65173
  var sum = 0;
65010
65174
  var currentIndex = 0;
65011
- for (var i = 0, len = middleColumns.length - 1; i < len; i++) {
65175
+ for (var i = 0, len = middleColumns.length; i < len; i++) {
65012
65176
  var curCol = middleColumns[i];
65013
65177
  sum += curCol.width || 100;
65014
65178
  if (scrollLeft < sum) {
65015
65179
  // 计算可视区域内需要渲染的列数
65016
- for (var j = i + 1; j <= len; j++) {
65180
+ for (var j = i + 1; j < len; j++) {
65017
65181
  var _props$scrollRef$curr;
65018
65182
  var nextCol = middleColumns[j];
65019
65183
  sum += nextCol.width || 100;
65020
65184
  if (props.scrollRef.current && sum - scrollLeft >= ((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientWidth)) {
65021
65185
  // 在原有基础上,右侧增加缓冲列
65022
- var visibleCount = j - i;
65186
+ var visibleCount = j - i + 1;
65023
65187
  setRenderedCount(Math.min(visibleCount + overscan * 2, len));
65024
65188
  break;
65025
- } else if (j === len) {
65189
+ } else if (j === len - 1) {
65026
65190
  // 到达最后一列
65027
65191
  var _visibleCount = j - i + 1;
65028
65192
  setRenderedCount(Math.min(_visibleCount + overscan * 2, len));
@@ -65059,17 +65223,24 @@ var useColumns = function useColumns(props) {
65059
65223
  if (col.fixed) {
65060
65224
  return col;
65061
65225
  }
65062
- if (index < startIndex || index > startIndex + renderedCount) {
65226
+ // 计算当前列在 middleColumns 中的索引
65227
+ var middleIndex = index - leftFixedColumns.length;
65228
+
65229
+ // 如果不在可渲染范围内
65230
+ if (middleIndex < startIndex || middleIndex >= startIndex + renderedCount) {
65063
65231
  var colSpan;
65064
65232
  var colSpanWidth;
65065
- if (index > startIndex + renderedCount && index === startIndex + renderedCount + 1) {
65233
+ // 如果是可见范围后的第一列,合并后面所有隐藏的列
65234
+ if (middleIndex >= startIndex + renderedCount && middleIndex === startIndex + renderedCount) {
65066
65235
  colSpan = function colSpan() {
65067
- return middleColumns.length - index;
65236
+ return middleColumns.length - middleIndex;
65068
65237
  };
65069
- colSpanWidth = middleColumns.slice(index).reduce(function (sum, c) {
65238
+ colSpanWidth = middleColumns.slice(middleIndex).reduce(function (sum, c) {
65070
65239
  return sum + (c.width || 0);
65071
65240
  }, 0);
65072
- } else if (index < startIndex && index === leftFixedColumns.length && startIndex > 0) {
65241
+ }
65242
+ // 如果是第一个中间列且前面有隐藏列,合并前面所有隐藏的列
65243
+ else if (middleIndex < startIndex && middleIndex === 0 && startIndex > 0) {
65073
65244
  colSpan = function colSpan() {
65074
65245
  return startIndex;
65075
65246
  };
@@ -70738,8 +70909,6 @@ var TreeSelect = function TreeSelect(props0) {
70738
70909
  var _useConfig = useConfig(),
70739
70910
  locale = _useConfig.locale,
70740
70911
  direction = _useConfig.direction;
70741
- var isRtl = direction === 'rtl';
70742
- var dfp = isRtl ? 'bottom-right' : 'bottom-left';
70743
70912
  var jssStyle = props.jssStyle,
70744
70913
  className = props.className,
70745
70914
  size = props.size,
@@ -70767,7 +70936,7 @@ var TreeSelect = function TreeSelect(props0) {
70767
70936
  _props$focusSelected = props.focusSelected,
70768
70937
  focusSelected = _props$focusSelected === void 0 ? true : _props$focusSelected,
70769
70938
  _props$position = props.position,
70770
- positionProp = _props$position === void 0 ? dfp : _props$position,
70939
+ positionProp = _props$position === void 0 ? 'bottom-left' : _props$position,
70771
70940
  openProp = props.open,
70772
70941
  onCollapseProp = props.onCollapse,
70773
70942
  disabledProp = props.disabled,
@@ -70928,7 +71097,7 @@ var TreeSelect = function TreeSelect(props0) {
70928
71097
  onCollapse: onCollapse,
70929
71098
  disabled: false,
70930
71099
  trigger: 'click',
70931
- position: positionProp
71100
+ position: getRTLPosition(positionProp, direction === 'rtl')
70932
71101
  }),
70933
71102
  open = _usePopup.open,
70934
71103
  position = _usePopup.position,
@@ -74189,7 +74358,7 @@ function strings_removeProtocol(url) {
74189
74358
  return url;
74190
74359
  }
74191
74360
  }
74192
- function getRTLPosition(position) {
74361
+ function strings_getRTLPosition(position) {
74193
74362
  if (!position) return position;
74194
74363
  // position.replace('left', 'right').replace('right', 'left')
74195
74364
  if (position.indexOf('left') !== -1) {
@@ -75145,7 +75314,7 @@ var upload_interface = __webpack_require__(8821);
75145
75314
 
75146
75315
 
75147
75316
  /* harmony default export */ var src_0 = ({
75148
- version: '3.9.8-beta.9'
75317
+ version: '3.9.9-beta.1'
75149
75318
  });
75150
75319
  }();
75151
75320
  /******/ return __webpack_exports__;