shineout 3.7.5 → 3.8.0-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
@@ -7389,7 +7389,7 @@ var Alert = function Alert(props) {
7389
7389
  if (dismiss === HIDE) {
7390
7390
  return null;
7391
7391
  }
7392
- if (title) {
7392
+ if ('title' in props && title !== undefined) {
7393
7393
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
7394
7394
  className: rootClass
7395
7395
  }, getRootProps()), {}, {
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.5');
12237
+ /* harmony default export */ var version = ('3.8.0-beta.1');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -14352,26 +14352,19 @@ var selectTokens = {
14352
14352
  selectIconMarginLeft: 'Spacing-8',
14353
14353
  selectTagMarginY: 'Spacing-2',
14354
14354
  selectTagMarginRight: 'Spacing-4',
14355
- selectTagHeight: 'Line-height-dynamic',
14356
- selectTagLineHeight: 'Line-height-dynamic',
14357
14355
  selectSmallFontSize: 'Font-12',
14358
14356
  selectSmallPaddingX: 'Spacing-8',
14359
14357
  selectSmallPaddingY: 'Spacing-1',
14360
14358
  selectSmallOptionInnerPaddingX: 'Spacing-8',
14361
14359
  selectSmallOptionInnerPaddingY: 'Spacing-2',
14362
- selectSmallTagHeight: 'Size-9',
14363
- selectSmallTagLineHeight: 'Size-8',
14364
14360
  selectLargeFontSize: 'Font-16',
14365
14361
  selectLargePaddingX: 'Spacing-12',
14366
14362
  selectLargePaddingY: 'Spacing-3',
14367
14363
  selectLargeOptionInnerPaddingX: 'Spacing-12',
14368
14364
  selectLargeOptionInnerPaddingY: 'Spacing-8',
14369
14365
  selectLargePlaceholderMarginY: 'Spacing-4',
14370
- selectLargeTagHeight: 'Line-height-dynamic',
14371
- selectLargeTagLineHeight: 'Line-height-dynamic',
14372
14366
  selectInnerPaddingX: 'Spacing-8',
14373
14367
  selectInnerPaddingY: 'Spacing-5',
14374
- selectInnerTitleMarginY: 'Spacing-2',
14375
14368
  selectPlaceholderColor: 'Neutral-text-2',
14376
14369
  selectPlaceholderMarginY: 'Spacing-2',
14377
14370
  selectBackgroundColor: 'Neutral-fill-1',
@@ -17260,7 +17253,6 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17260
17253
 
17261
17254
 
17262
17255
 
17263
-
17264
17256
  var inputBorderToken = {
17265
17257
  lineHeight: src.lineHeightDynamic,
17266
17258
  borderRadius: src.inputBorderRadius,
@@ -17304,12 +17296,6 @@ var inputBorder = input_border('wrapper', inputBorderToken);
17304
17296
  var wrapper = inputBorder.wrapper,
17305
17297
  wrapperDisabled = inputBorder.wrapperDisabled,
17306
17298
  resetWrapper = objectWithoutProperties_default()(inputBorder, ["wrapper", "wrapperDisabled"]);
17307
- var selectTagHeightCssvar = "--select-tag-height";
17308
- var selectSmallTagHeightCssvar = "--select-small-tag-height";
17309
- var selectLargeTagHeightCssvar = "--select-large-tag-height";
17310
- var selectTagHeight = "var(".concat(selectTagHeightCssvar, ")");
17311
- var selectSmallTagHeight = "var(".concat(selectSmallTagHeightCssvar, ")");
17312
- var selectLargeTagHeight = "var(".concat(selectLargeTagHeightCssvar, ")");
17313
17299
  var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
17314
17300
  rootClass: {},
17315
17301
  wrapperEmpty: {},
@@ -17319,100 +17305,95 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
17319
17305
  width: '100%',
17320
17306
  outline: 'none',
17321
17307
  cursor: 'pointer'
17322
- }, wrapper), {}, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, selectTagHeightCssvar, src.selectTagHeight), selectSmallTagHeightCssvar, src.selectSmallTagHeight), selectLargeTagHeightCssvar, src.selectLargeTagHeight), '&$wrapperInnerTitle', {
17323
- '& $placeholder,$ellipsis,$space,input': {
17324
- marginTop: 0,
17325
- marginBottom: 0
17326
- },
17327
- '& $tag': {
17328
- marginTop: 0,
17329
- marginBottom: src.selectInnerTitleMarginY,
17330
- paddingTop: 0,
17331
- paddingBottom: 0,
17332
- height: selectTagHeight,
17333
- border: 'none',
17334
- '& *': {
17335
- lineHeight: selectTagHeight
17308
+ }, wrapper), {}, {
17309
+ '&$wrapperInnerTitle': {
17310
+ '& $placeholder,$ellipsis,$space,input': {
17311
+ marginTop: 0,
17312
+ marginBottom: 0
17313
+ },
17314
+ '& $tag': {
17315
+ marginTop: 0,
17316
+ paddingTop: 0,
17317
+ paddingBottom: 0,
17318
+ height: src.lineHeightDynamic,
17319
+ border: 'none',
17320
+ '& *': {
17321
+ lineHeight: src.lineHeightDynamic
17322
+ }
17323
+ },
17324
+ '&$wrapperSmall $tag': {
17325
+ height: 18,
17326
+ marginBottom: 2,
17327
+ '&$tag *': {
17328
+ lineHeight: '18px'
17329
+ }
17336
17330
  }
17337
17331
  },
17338
- '&$wrapperSmall $tag': {
17339
- height: selectSmallTagHeight,
17340
- marginBottom: 2,
17341
- '&$tag *': {
17342
- lineHeight: selectSmallTagHeight
17332
+ '&$wrapperSmall': {
17333
+ '& $tag': {
17334
+ height: 18,
17335
+ lineHeight: '16px',
17336
+ marginTop: 1,
17337
+ marginBottom: 1
17338
+ },
17339
+ '& $placeholder,$ellipsis,$space,input': {
17340
+ marginTop: 0,
17341
+ marginBottom: 0
17342
+ },
17343
+ '& $optionInner': {
17344
+ paddingTop: src.cascaderSmallOptionInnerPaddingY,
17345
+ paddingBottom: src.cascaderSmallOptionInnerPaddingY,
17346
+ paddingLeft: src.cascaderSmallOptionInnerPaddingX,
17347
+ // padding: `${token.cascaderSmallOptionInnerPaddingY} ${token.cascaderSmallOptionInnerPaddingX}`,
17348
+ fontSize: src.cascaderSmallFontSize
17349
+ },
17350
+ '& $clearIcon': {
17351
+ right: src.cascaderSmallPaddingX
17343
17352
  }
17344
17353
  },
17345
- '&$wrapperLarge $tag': {
17346
- height: selectLargeTagHeight,
17347
- marginBottom: 2,
17348
- '&$tag *': {
17349
- lineHeight: selectLargeTagHeight
17354
+ '&$wrapperLarge': {
17355
+ '& $placeholder,$ellipsis,$space,input': {
17356
+ marginTop: src.cascaderLargePlaceholderMarginY,
17357
+ marginBottom: src.cascaderLargePlaceholderMarginY
17358
+ },
17359
+ '& $arrowIcon': {
17360
+ width: src.cascaderLargeFontSize
17361
+ },
17362
+ '& $optionInner': {
17363
+ // padding: `${token.cascaderLargeOptionInnerPaddingY} ${token.cascaderLargeOptionInnerPaddingX}`,
17364
+ paddingTop: src.cascaderLargeOptionInnerPaddingY,
17365
+ paddingBottom: src.cascaderLargeOptionInnerPaddingY,
17366
+ paddingLeft: src.cascaderLargeOptionInnerPaddingX,
17367
+ fontSize: src.cascaderLargeFontSize
17368
+ },
17369
+ '& $clearIcon': {
17370
+ right: src.cascaderLargePaddingX
17350
17371
  }
17351
- }
17352
- }), '&$wrapperSmall', {
17353
- '& $tag': {
17354
- height: selectSmallTagHeight,
17355
- lineHeight: '16px',
17356
- marginTop: 1,
17357
- marginBottom: 1
17358
- },
17359
- '& $placeholder,$ellipsis,$space,input': {
17360
- marginTop: 0,
17361
- marginBottom: 0
17362
17372
  },
17363
- '& $optionInner': {
17364
- paddingTop: src.cascaderSmallOptionInnerPaddingY,
17365
- paddingBottom: src.cascaderSmallOptionInnerPaddingY,
17366
- paddingLeft: src.cascaderSmallOptionInnerPaddingX,
17367
- // padding: `${token.cascaderSmallOptionInnerPaddingY} ${token.cascaderSmallOptionInnerPaddingX}`,
17368
- fontSize: src.cascaderSmallFontSize
17369
- },
17370
- '& $clearIcon': {
17371
- right: src.cascaderSmallPaddingX
17372
- }
17373
- }), '&$wrapperLarge', {
17374
- '& $tag': {
17375
- height: selectLargeTagHeight,
17376
- '& *': {
17377
- lineHeight: selectLargeTagHeight
17373
+ // hover
17374
+ '&:hover': objectSpread2_default()(objectSpread2_default()({}, wrapper['&:hover']), {}, {
17375
+ '& $clearIcon': {
17376
+ display: 'inline-block'
17377
+ },
17378
+ '&$clearable:not($wrapperEmpty)': {
17379
+ '& :not($compressedIcon)$arrowIcon': {
17380
+ display: 'none'
17381
+ },
17382
+ '& $compressedIcon': {
17383
+ display: 'none'
17384
+ }
17378
17385
  }
17386
+ }),
17387
+ '&:has($pickerWrapperShow)': {
17388
+ borderColor: src.cascaderFocusBorderColor
17379
17389
  },
17380
- '& $placeholder,$ellipsis,$space,input': {
17381
- marginTop: src.cascaderLargePlaceholderMarginY,
17382
- marginBottom: src.cascaderLargePlaceholderMarginY
17383
- },
17384
- '& $arrowIcon': {
17385
- width: src.cascaderLargeFontSize
17386
- },
17387
- '& $optionInner': {
17388
- // padding: `${token.cascaderLargeOptionInnerPaddingY} ${token.cascaderLargeOptionInnerPaddingX}`,
17389
- paddingTop: src.cascaderLargeOptionInnerPaddingY,
17390
- paddingBottom: src.cascaderLargeOptionInnerPaddingY,
17391
- paddingLeft: src.cascaderLargeOptionInnerPaddingX,
17392
- fontSize: src.cascaderLargeFontSize
17393
- },
17394
- '& $clearIcon': {
17395
- right: src.cascaderLargePaddingX
17396
- }
17397
- }), '&:hover', objectSpread2_default()(objectSpread2_default()({}, wrapper['&:hover']), {}, {
17398
- '& $clearIcon': {
17399
- display: 'inline-block'
17400
- },
17401
- '&$clearable:not($wrapperEmpty)': {
17402
- '& :not($compressedIcon)$arrowIcon': {
17403
- display: 'none'
17404
- },
17405
- '& $compressedIcon': {
17390
+ // not wrapperFocus
17391
+ '&:not($wrapperFocus)': {
17392
+ '& $clearIcon': {
17406
17393
  display: 'none'
17407
17394
  }
17408
17395
  }
17409
- })), '&:has($pickerWrapperShow)', {
17410
- borderColor: src.cascaderFocusBorderColor
17411
- }), '&:not($wrapperFocus)', {
17412
- '& $clearIcon': {
17413
- display: 'none'
17414
- }
17415
- })),
17396
+ }),
17416
17397
  virtual: {
17417
17398
  '& $filterList': {
17418
17399
  overflow: 'hidden'
@@ -17545,9 +17526,6 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
17545
17526
  },
17546
17527
  compressedWrapper: {
17547
17528
  width: 0,
17548
- overflow: 'hidden'
17549
- },
17550
- compressedBoundWrapper: {
17551
17529
  overflow: 'auto'
17552
17530
  },
17553
17531
  controlMouse: {
@@ -19628,11 +19606,6 @@ var formItemStyle = objectSpread2_default()(objectSpread2_default()({
19628
19606
  top: '2px'
19629
19607
  }
19630
19608
  },
19631
- wrapperHideRequired: {
19632
- '& $label::before': {
19633
- display: 'none'
19634
- }
19635
- },
19636
19609
  wrapperKeepHeight: {
19637
19610
  marginBottom: src.formItemTipMinHeight,
19638
19611
  '&$wrapperTip': {
@@ -22210,9 +22183,7 @@ var setToken = function setToken(options) {
22210
22183
  attributes = _ref.attributes,
22211
22184
  onlyExtra = _ref.onlyExtra,
22212
22185
  update = _ref.update,
22213
- customExtraToken = _ref.extraToken,
22214
- _ref$ignoreExtra = _ref.ignoreExtra,
22215
- ignoreExtra = _ref$ignoreExtra === void 0 ? false : _ref$ignoreExtra;
22186
+ customExtraToken = _ref.extraToken;
22216
22187
  var _getConfig = getConfig(),
22217
22188
  prefix = _getConfig.prefix;
22218
22189
  if (typeof window === 'undefined') return;
@@ -22251,7 +22222,7 @@ var setToken = function setToken(options) {
22251
22222
  tag.setAttribute('data-token', tokenName || '');
22252
22223
  tag.setAttribute('data-token-id', id);
22253
22224
  tag.setAttribute('data-token-selector', selector);
22254
- tag.innerHTML = ignoreExtra ? "".concat(selector, " {").concat(tokens.join(';'), "}") : "".concat(selector, " {").concat(tokens.concat(extraToken).join(';'), "}");
22225
+ tag.innerHTML = "".concat(selector, " {").concat(tokens.concat(extraToken).join(';'), "}");
22255
22226
  if (!target) {
22256
22227
  document.head.appendChild(tag);
22257
22228
  return;
@@ -23136,7 +23107,6 @@ var useRateStyle = styled(rate_rate, 'rate');
23136
23107
 
23137
23108
 
23138
23109
 
23139
-
23140
23110
  var select_inputBorderToken = {
23141
23111
  lineHeight: src.lineHeightDynamic,
23142
23112
  borderRadius: src.inputBorderRadius,
@@ -23180,12 +23150,6 @@ var select_inputBorder = input_border('wrapper', select_inputBorderToken);
23180
23150
  var select_wrapper = select_inputBorder.wrapper,
23181
23151
  select_wrapperDisabled = select_inputBorder.wrapperDisabled,
23182
23152
  select_resetWrapper = objectWithoutProperties_default()(select_inputBorder, ["wrapper", "wrapperDisabled"]);
23183
- var select_selectTagHeightCssvar = "--select-tag-height";
23184
- var select_selectSmallTagHeightCssvar = "--select-small-tag-height";
23185
- var select_selectLargeTagHeightCssvar = "--select-large-tag-height";
23186
- var select_selectTagHeight = "var(".concat(select_selectTagHeightCssvar, ")");
23187
- var select_selectSmallTagHeight = "var(".concat(select_selectSmallTagHeightCssvar, ")");
23188
- var select_selectLargeTagHeight = "var(".concat(select_selectLargeTagHeightCssvar, ")");
23189
23153
  var selectStyle = objectSpread2_default()(objectSpread2_default()({
23190
23154
  rootClass: {},
23191
23155
  wrapper: objectSpread2_default()(objectSpread2_default()({
@@ -23194,76 +23158,68 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
23194
23158
  width: '100%',
23195
23159
  outline: 'none',
23196
23160
  cursor: 'pointer'
23197
- }, select_wrapper), {}, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, select_selectTagHeightCssvar, src.selectTagHeight), select_selectSmallTagHeightCssvar, src.selectSmallTagHeight), select_selectLargeTagHeightCssvar, src.selectLargeTagHeight), '&$wrapperInnerTitle', {
23198
- '& $placeholder,$ellipsis,$space,input': {
23199
- marginTop: 0,
23200
- marginBottom: 0
23201
- },
23202
- '& $tag': {
23203
- marginTop: 0,
23204
- marginBottom: src.selectInnerTitleMarginY,
23205
- paddingTop: 0,
23206
- paddingBottom: 0,
23207
- height: select_selectTagHeight,
23208
- border: 'none',
23209
- '& *': {
23210
- lineHeight: select_selectTagHeight
23161
+ }, select_wrapper), {}, {
23162
+ '&$wrapperInnerTitle': {
23163
+ '& $placeholder,$ellipsis,$space,input': {
23164
+ marginTop: 0,
23165
+ marginBottom: 0
23166
+ },
23167
+ '& $tag': {
23168
+ marginTop: 0,
23169
+ paddingTop: 0,
23170
+ paddingBottom: 0,
23171
+ height: src.lineHeightDynamic,
23172
+ border: 'none',
23173
+ '& *': {
23174
+ lineHeight: src.lineHeightDynamic
23175
+ }
23176
+ },
23177
+ '&$wrapperSmall $tag': {
23178
+ height: 18,
23179
+ marginBottom: 2,
23180
+ '&$tag *': {
23181
+ lineHeight: '18px'
23182
+ }
23211
23183
  }
23212
23184
  },
23213
- '&$wrapperSmall $tag': {
23214
- height: select_selectSmallTagHeight,
23215
- marginBottom: 2,
23216
- '&$tag *': {
23217
- lineHeight: select_selectSmallTagHeight
23185
+ '&$wrapperSmall': {
23186
+ '& $tag': {
23187
+ height: 18,
23188
+ lineHeight: '16px',
23189
+ marginTop: 1,
23190
+ marginBottom: 1
23191
+ },
23192
+ '& $placeholder,$ellipsis,$space,input': {
23193
+ marginTop: 0,
23194
+ marginBottom: 0
23218
23195
  }
23219
23196
  },
23220
- '&$wrapperLarge $tag': {
23221
- height: select_selectLargeTagHeight,
23222
- marginBottom: 2,
23223
- '&$tag *': {
23224
- lineHeight: select_selectLargeTagHeight
23197
+ '&$wrapperLarge': {
23198
+ '& $placeholder,$ellipsis,$space,input': {
23199
+ marginTop: src.selectLargePlaceholderMarginY,
23200
+ marginBottom: src.selectLargePlaceholderMarginY
23201
+ },
23202
+ '& $arrowIcon': {
23203
+ width: src.selectLargeFontSize
23225
23204
  }
23226
- }
23227
- }), '&$wrapperSmall', {
23228
- '& $tag': {
23229
- height: select_selectSmallTagHeight,
23230
- lineHeight: '16px',
23231
- marginTop: 1,
23232
- marginBottom: 1
23233
23205
  },
23234
- '& $placeholder,$ellipsis,$space,input': {
23235
- marginTop: 0,
23236
- marginBottom: 0
23237
- }
23238
- }), '&$wrapperLarge', {
23239
- '& $tag': {
23240
- height: select_selectLargeTagHeight,
23241
- '& *': {
23242
- lineHeight: select_selectLargeTagHeight
23206
+ '&:hover': objectSpread2_default()(objectSpread2_default()({}, select_wrapper['&:hover']), {}, {
23207
+ cursor: 'pointer',
23208
+ '&$clearable:not($wrapperEmpty):not($wrapperDisabled)': {
23209
+ '& $clearIcon': {
23210
+ display: 'block'
23211
+ },
23212
+ '& $arrowIcon': {
23213
+ display: 'none'
23214
+ }
23243
23215
  }
23244
- },
23245
- '& $placeholder,$ellipsis,$space,input': {
23246
- marginTop: src.selectLargePlaceholderMarginY,
23247
- marginBottom: src.selectLargePlaceholderMarginY
23248
- },
23249
- '& $arrowIcon': {
23250
- width: src.selectLargeFontSize
23251
- }
23252
- }), '&:hover', objectSpread2_default()(objectSpread2_default()({}, select_wrapper['&:hover']), {}, {
23253
- cursor: 'pointer',
23254
- '&$clearable:not($wrapperEmpty):not($wrapperDisabled)': {
23216
+ }),
23217
+ '&:not($wrapperEmpty):not($wrapperOpen)': {
23255
23218
  '& $clearIcon': {
23256
- display: 'block'
23257
- },
23258
- '& $arrowIcon': {
23259
23219
  display: 'none'
23260
23220
  }
23261
23221
  }
23262
- })), '&:not($wrapperEmpty):not($wrapperOpen)', {
23263
- '& $clearIcon': {
23264
- display: 'none'
23265
- }
23266
- })),
23222
+ }),
23267
23223
  wrapperEmpty: {},
23268
23224
  wrapperOpen: {},
23269
23225
  wrapperDisabled: objectSpread2_default()(objectSpread2_default()({}, select_wrapperDisabled), {}, {
@@ -23392,9 +23348,6 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
23392
23348
  },
23393
23349
  compressedWrapper: {
23394
23350
  width: 0,
23395
- overflow: 'hidden'
23396
- },
23397
- compressedBoundWrapper: {
23398
23351
  overflow: 'auto'
23399
23352
  },
23400
23353
  controlMouse: {
@@ -23746,6 +23699,8 @@ var useSelectStyle = styled(src_select_select, 'select');
23746
23699
  /* harmony default export */ var shineout_style_src_select = ((/* unused pure expression or super */ null && (useSelectStyle)));
23747
23700
  ;// CONCATENATED MODULE: ../shineout-style/src/skeleton/skeleton.ts
23748
23701
 
23702
+ // import token from '@sheinx/theme';
23703
+
23749
23704
 
23750
23705
  var skeleton_animation = {
23751
23706
  '@keyframes skeleton-animation': {
@@ -23764,7 +23719,7 @@ var skeletonStyle = objectSpread2_default()(objectSpread2_default()({}, skeleton
23764
23719
  },
23765
23720
  animation: {
23766
23721
  '& $textItem, & $image, & $buttonItem': {
23767
- backgroundImage: "linear-gradient(90deg, ".concat(src.skeletonAnimationFromColor, " 25%, ").concat(src.skeletonAnimationToColor, " 37%, ").concat(src.skeletonAnimationFromColor, " 63%)"),
23722
+ background: "linear-gradient(90deg, ".concat(src.skeletonAnimationFromColor, " 25%, ").concat(src.skeletonAnimationToColor, " 37%, ").concat(src.skeletonAnimationFromColor, " 63%)"),
23768
23723
  backgroundSize: '400% 100%',
23769
23724
  animation: '$skeleton-animation 1.4s ease infinite'
23770
23725
  }
@@ -27548,8 +27503,7 @@ var TagStyle = {
27548
27503
  alignItems: 'center',
27549
27504
  display: 'inline-flex',
27550
27505
  cursor: 'pointer',
27551
- height: src.lineHeightDynamic,
27552
- maxHeight: '100%'
27506
+ height: src.lineHeightDynamic
27553
27507
  },
27554
27508
  closeIconWrapper: {
27555
27509
  display: 'inline-flex',
@@ -28717,12 +28671,6 @@ var tree_select_inputBorder = input_border('wrapper', tree_select_inputBorderTok
28717
28671
  var tree_select_wrapper = tree_select_inputBorder.wrapper,
28718
28672
  tree_select_wrapperDisabled = tree_select_inputBorder.wrapperDisabled,
28719
28673
  tree_select_resetWrapper = objectWithoutProperties_default()(tree_select_inputBorder, ["wrapper", "wrapperDisabled"]);
28720
- var tree_select_selectTagHeightCssvar = "--select-tag-height";
28721
- var tree_select_selectSmallTagHeightCssvar = "--select-small-tag-height";
28722
- var tree_select_selectLargeTagHeightCssvar = "--select-large-tag-height";
28723
- var tree_select_selectTagHeight = "var(".concat(tree_select_selectTagHeightCssvar, ")");
28724
- var tree_select_selectSmallTagHeight = "var(".concat(tree_select_selectSmallTagHeightCssvar, ")");
28725
- var tree_select_selectLargeTagHeight = "var(".concat(tree_select_selectLargeTagHeightCssvar, ")");
28726
28674
  var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28727
28675
  rootClass: {},
28728
28676
  wrapper: objectSpread2_default()(objectSpread2_default()({
@@ -28731,96 +28679,88 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28731
28679
  width: '100%',
28732
28680
  outline: 'none',
28733
28681
  cursor: 'pointer'
28734
- }, tree_select_wrapper), {}, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, tree_select_selectTagHeightCssvar, src.selectTagHeight), tree_select_selectSmallTagHeightCssvar, src.selectSmallTagHeight), tree_select_selectLargeTagHeightCssvar, src.selectLargeTagHeight), '&$wrapperInnerTitle', {
28735
- '& $placeholder,$ellipsis,$space,input': {
28736
- marginTop: 0,
28737
- marginBottom: 0
28738
- },
28739
- '& $tag': {
28740
- marginTop: 0,
28741
- marginBottom: src.selectInnerTitleMarginY,
28742
- paddingTop: 0,
28743
- paddingBottom: 0,
28744
- height: tree_select_selectTagHeight,
28745
- border: 'none',
28746
- '& *': {
28747
- lineHeight: tree_select_selectTagHeight
28682
+ }, tree_select_wrapper), {}, {
28683
+ '&$wrapperInnerTitle': {
28684
+ '& $placeholder,$ellipsis,$space,input': {
28685
+ marginTop: 0,
28686
+ marginBottom: 0
28687
+ },
28688
+ '& $tag': {
28689
+ marginTop: 0,
28690
+ paddingTop: 0,
28691
+ paddingBottom: 0,
28692
+ height: src.lineHeightDynamic,
28693
+ border: 'none',
28694
+ '& *': {
28695
+ lineHeight: src.lineHeightDynamic
28696
+ }
28697
+ },
28698
+ '&$wrapperSmall $tag': {
28699
+ height: 18,
28700
+ marginBottom: 2,
28701
+ '&$tag *': {
28702
+ lineHeight: '18px'
28703
+ }
28748
28704
  }
28749
28705
  },
28750
- '&$wrapperSmall $tag': {
28751
- height: tree_select_selectSmallTagHeight,
28752
- marginBottom: 2,
28753
- '&$tag *': {
28754
- lineHeight: tree_select_selectSmallTagHeight
28706
+ '&$wrapperSmall': {
28707
+ '& $tag': {
28708
+ height: 18,
28709
+ lineHeight: '16px',
28710
+ marginTop: 1,
28711
+ marginBottom: 1
28712
+ },
28713
+ '& $placeholder,$ellipsis,$space,input': {
28714
+ marginTop: 0,
28715
+ marginBottom: 0
28716
+ },
28717
+ '& $optionInner': {
28718
+ paddingTop: src.treeSelectSmallOptionInnerPaddingY,
28719
+ paddingBottom: src.treeSelectSmallOptionInnerPaddingY,
28720
+ paddingLeft: src.treeSelectSmallOptionInnerPaddingX,
28721
+ // padding: `${token.treeSelectSmallOptionInnerPaddingY} ${token.treeSelectSmallOptionInnerPaddingX}`,
28722
+ fontSize: src.treeSelectSmallFontSize
28723
+ },
28724
+ '& $clearIcon': {
28725
+ right: src.treeSelectSmallPaddingX
28755
28726
  }
28756
28727
  },
28757
- '&$wrapperLarge $tag': {
28758
- height: tree_select_selectLargeTagHeight,
28759
- marginBottom: 2,
28760
- '&$tag *': {
28761
- lineHeight: tree_select_selectLargeTagHeight
28728
+ '&$wrapperLarge': {
28729
+ '& $placeholder,$ellipsis,$space,input': {
28730
+ marginTop: src.treeSelectLargePlaceholderMarginY,
28731
+ marginBottom: src.treeSelectLargePlaceholderMarginY
28732
+ },
28733
+ '& $optionInner': {
28734
+ // padding: `${token.treeSelectLargeOptionInnerPaddingY} ${token.treeSelectLargeOptionInnerPaddingX}`,
28735
+ paddingTop: src.treeSelectLargeOptionInnerPaddingY,
28736
+ paddingBottom: src.treeSelectLargeOptionInnerPaddingY,
28737
+ paddingLeft: src.treeSelectLargeOptionInnerPaddingX,
28738
+ fontSize: src.treeSelectLargeFontSize
28739
+ },
28740
+ '& $arrowIcon': {
28741
+ width: src.treeSelectLargeFontSize
28742
+ },
28743
+ '& $clearIcon': {
28744
+ right: src.treeSelectLargePaddingX
28762
28745
  }
28763
- }
28764
- }), '&$wrapperSmall', {
28765
- '& $tag': {
28766
- height: tree_select_selectSmallTagHeight,
28767
- lineHeight: '16px',
28768
- marginTop: 1,
28769
- marginBottom: 1
28770
- },
28771
- '& $placeholder,$ellipsis,$space,input': {
28772
- marginTop: 0,
28773
- marginBottom: 0
28774
- },
28775
- '& $optionInner': {
28776
- paddingTop: src.treeSelectSmallOptionInnerPaddingY,
28777
- paddingBottom: src.treeSelectSmallOptionInnerPaddingY,
28778
- paddingLeft: src.treeSelectSmallOptionInnerPaddingX,
28779
- // padding: `${token.treeSelectSmallOptionInnerPaddingY} ${token.treeSelectSmallOptionInnerPaddingX}`,
28780
- fontSize: src.treeSelectSmallFontSize
28781
28746
  },
28782
- '& $clearIcon': {
28783
- right: src.treeSelectSmallPaddingX
28784
- }
28785
- }), '&$wrapperLarge', {
28786
- '& $tag': {
28787
- height: tree_select_selectLargeTagHeight,
28788
- '& *': {
28789
- lineHeight: tree_select_selectLargeTagHeight
28747
+ '&:hover': {
28748
+ cursor: 'pointer',
28749
+ '&$clearable:not($wrapperEmpty)': {
28750
+ '& $clearIcon': {
28751
+ display: 'block'
28752
+ },
28753
+ '& $arrowIcon': {
28754
+ display: 'none'
28755
+ }
28790
28756
  }
28791
28757
  },
28792
- '& $placeholder,$ellipsis,$space,input': {
28793
- marginTop: src.treeSelectLargePlaceholderMarginY,
28794
- marginBottom: src.treeSelectLargePlaceholderMarginY
28795
- },
28796
- '& $optionInner': {
28797
- // padding: `${token.treeSelectLargeOptionInnerPaddingY} ${token.treeSelectLargeOptionInnerPaddingX}`,
28798
- paddingTop: src.treeSelectLargeOptionInnerPaddingY,
28799
- paddingBottom: src.treeSelectLargeOptionInnerPaddingY,
28800
- paddingLeft: src.treeSelectLargeOptionInnerPaddingX,
28801
- fontSize: src.treeSelectLargeFontSize
28802
- },
28803
- '& $arrowIcon': {
28804
- width: src.treeSelectLargeFontSize
28805
- },
28806
- '& $clearIcon': {
28807
- right: src.treeSelectLargePaddingX
28808
- }
28809
- }), '&:hover', {
28810
- cursor: 'pointer',
28811
- '&$clearable:not($wrapperEmpty)': {
28758
+ '&:not($wrapperEmpty):not($wrapperOpen)': {
28812
28759
  '& $clearIcon': {
28813
- display: 'block'
28814
- },
28815
- '& $arrowIcon': {
28816
28760
  display: 'none'
28817
28761
  }
28818
28762
  }
28819
- }), '&:not($wrapperEmpty):not($wrapperOpen)', {
28820
- '& $clearIcon': {
28821
- display: 'none'
28822
- }
28823
- })),
28763
+ }),
28824
28764
  treeWrapper: defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, getTokenName('treeFontColor'), src.treeSelectOptionFontColor), getTokenName('treeContentHoverFontColor'), src.treeSelectContentHoverFontColor), getTokenName('treeContentHoverBackgroundColor'), src.treeSelectContentHoverBackgroundColor), getTokenName('treeContentActiveBackgroundColor'), src.treeSelectContentActiveBackgroundColor), getTokenName('treeContentActiveFontColor'), src.treeSelectContentActiveFontColor), getTokenName('treeContentDisabledFontColor'), src.treeSelectContentDisabledFontColor), getTokenName('treeContentDisabledBackgroundColor'), src.treeSelectContentDisabledBackgroundColor),
28825
28765
  wrapperEmpty: {},
28826
28766
  wrapperOpen: {},
@@ -28929,9 +28869,6 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28929
28869
  },
28930
28870
  compressedWrapper: {
28931
28871
  width: 0,
28932
- overflow: 'hidden'
28933
- },
28934
- compressedBoundWrapper: {
28935
28872
  overflow: 'auto'
28936
28873
  },
28937
28874
  controlMouse: {
@@ -29159,9 +29096,6 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
29159
29096
  color: src.treeSelectOptionDisabledColor,
29160
29097
  backgroundColor: src.treeSelectOptionDisabledBackgroundColor
29161
29098
  },
29162
- '&&:not([data-active="true"]) > [data-role="text"]': {
29163
- backgroundColor: src.treeSelectContentDisabledBackgroundColor
29164
- },
29165
29099
  '&&:not([data-active="true"]) > [data-role="text"]:hover': {
29166
29100
  backgroundColor: src.treeSelectContentDisabledHoverBackgroundColor
29167
29101
  }
@@ -29300,11 +29234,7 @@ var uploadStyle = {
29300
29234
  border: "1px dashed ".concat(src.uploadImageHandlerBorderColor),
29301
29235
  backgroundColor: src.uploadImageHandlerBackgroundColor,
29302
29236
  color: src.uploadImageHandlerFontColor,
29303
- '&:hover, &:hover': {
29304
- borderColor: src.uploadImageHandlerHoverBorderColor,
29305
- color: src.uploadImageHandlerHoverFontColor
29306
- },
29307
- '&:hover, &:hover svg': {
29237
+ '&:hover, &:hover *': {
29308
29238
  borderColor: src.uploadImageHandlerHoverBorderColor,
29309
29239
  color: src.uploadImageHandlerHoverFontColor
29310
29240
  },
@@ -29425,7 +29355,7 @@ var uploadStyle = {
29425
29355
  borderColor: src.uploadImageHandlerHoverBorderColor,
29426
29356
  color: src.uploadImageHandlerHoverFontColor
29427
29357
  },
29428
- '$wrapper:not($wrapperDisabled) &:hover svg': {
29358
+ '$wrapper:not($wrapperDisabled) &:hover *': {
29429
29359
  color: "".concat(src.uploadImageHandlerHoverFontColor, " !important")
29430
29360
  },
29431
29361
  '$wrapper:not($wrapperDisabled) &:active, $wrapper:not($wrapperDisabled) &:active *': {
@@ -30384,13 +30314,10 @@ var usePopup = function usePopup(props) {
30384
30314
  }
30385
30315
  };
30386
30316
  var handleMouseEnter = use_persist_fn(function (e) {
30387
- var _targetEvents$onMouse, _targetRef$current;
30317
+ var _targetEvents$onMouse;
30388
30318
  targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse = targetEvents.onMouseEnter) === null || _targetEvents$onMouse === void 0 || _targetEvents$onMouse.call(targetEvents, e);
30389
30319
  if (trigger !== 'hover') return;
30390
- var isParentContainsCurrent = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.contains(e.target);
30391
- if (isParentContainsCurrent) {
30392
- handleHoverToggle(true);
30393
- }
30320
+ handleHoverToggle(true);
30394
30321
  });
30395
30322
  var handleMouseLeave = use_persist_fn(function (e) {
30396
30323
  var _targetEvents$onMouse2, _popupRef$current2;
@@ -30862,14 +30789,14 @@ var useCheckElementBorderWidth = function useCheckElementBorderWidth(elementRef)
30862
30789
 
30863
30790
  // 获取指定方向上的border宽度之和
30864
30791
  var getBorderWidth = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
30865
- if (elementRef.current && options.enable) {
30792
+ if (elementRef.current) {
30866
30793
  var _options$direction = options.direction,
30867
30794
  direction = _options$direction === void 0 ? 'horizontal' : _options$direction;
30868
30795
  var style = window.getComputedStyle(elementRef.current);
30869
30796
  var _borderWidth = direction === 'horizontal' ? parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth) : parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
30870
30797
  setBorderWidth(_borderWidth);
30871
30798
  }
30872
- }, [elementRef, options.enable]);
30799
+ }, [elementRef]);
30873
30800
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30874
30801
  getBorderWidth();
30875
30802
  }, [getBorderWidth]);
@@ -31001,14 +30928,6 @@ function shallowEqual(objA, objB) {
31001
30928
  }
31002
30929
  return true;
31003
30930
  }
31004
- function shallowEqualExceptFalsely(objA, objB) {
31005
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
31006
- var falselys = [false, 0, '', null, undefined, NaN];
31007
- if (falselys.includes(objA) && falselys.includes(objB)) {
31008
- return true;
31009
- }
31010
- return shallowEqual(objA, objB, options);
31011
- }
31012
30931
  /* harmony default export */ var shallow_equal = (shallowEqual);
31013
30932
  ;// CONCATENATED MODULE: ../hooks/src/utils/dom/document.ts
31014
30933
  var cachedZoom = 0;
@@ -31117,8 +31036,7 @@ var usePositionStyle = function usePositionStyle(config) {
31117
31036
  enable: show && adjust
31118
31037
  });
31119
31038
  var parentElBorderWidth = useCheckElementBorderWidth(parentElRef, {
31120
- direction: 'horizontal',
31121
- enable: show
31039
+ direction: 'horizontal'
31122
31040
  });
31123
31041
  var popupElSize = useCheckElementSize(popupElRef, {
31124
31042
  enable: show
@@ -31286,7 +31204,7 @@ var usePositionStyle = function usePositionStyle(config) {
31286
31204
  if (_h === 'right') {
31287
31205
  style.left = rect.right - containerRect.left + containerScroll.left + popupGap;
31288
31206
  } else {
31289
- style.right = containerRect.right - rect.left;
31207
+ style.right = containerRect.right - rect.left + popupGap;
31290
31208
  }
31291
31209
  } else if (position === 'cover') {
31292
31210
  style.top = rect.top - containerRect.top + containerScroll.top;
@@ -31297,18 +31215,16 @@ var usePositionStyle = function usePositionStyle(config) {
31297
31215
  };
31298
31216
  };
31299
31217
  var getAbsoluteStyle = function getAbsoluteStyle(position) {
31300
- var _scrollElRef$current, _scrollElRef$current2, _scrollElRef$current3;
31218
+ var _scrollElRef$current;
31301
31219
  if (!parentElRef.current) return {
31302
31220
  style: hideStyle
31303
31221
  };
31304
31222
  var rect = context.parentRect;
31305
31223
  var needCheck = !show || !shallow_equal(context.prevParentPosition, parentElNewPosition);
31306
- var scrollTop = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current = scrollElRef.current) === null || _scrollElRef$current === void 0 ? void 0 : _scrollElRef$current.scrollTop) || 0;
31307
- var scrollLeft = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.scrollLeft) || 0;
31308
- if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current3 = scrollElRef.current) !== null && _scrollElRef$current3 !== void 0 && _scrollElRef$current3.contains(parentElRef.current)) {
31309
- var _scrollElRef$current4;
31310
- var visibleRect = ((_scrollElRef$current4 = scrollElRef.current) === null || _scrollElRef$current4 === void 0 ? void 0 : _scrollElRef$current4.getBoundingClientRect()) || {};
31311
- if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom + scrollTop || rect.right < visibleRect.left || rect.left > visibleRect.right + scrollLeft) {
31224
+ if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current = scrollElRef.current) !== null && _scrollElRef$current !== void 0 && _scrollElRef$current.contains(parentElRef.current)) {
31225
+ var _scrollElRef$current2;
31226
+ var visibleRect = ((_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.getBoundingClientRect()) || {};
31227
+ if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom || rect.right < visibleRect.left || rect.left > visibleRect.right) {
31312
31228
  return {
31313
31229
  style: hideStyle
31314
31230
  };
@@ -32063,12 +31979,12 @@ var AbsoluteList = function AbsoluteList(props) {
32063
31979
  return scrollElRefProp || scrollElRefContext || closestScrollContainerRef;
32064
31980
  }, [scrollElRefProp, scrollElRefContext]);
32065
31981
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
32066
- if (scrollElRefProp || scrollElRefContext || !focus) return;
31982
+ if (scrollElRefProp || scrollElRefContext) return;
32067
31983
  var closestScrollContainer = getClosestScrollContainer(parentElRef.current);
32068
31984
  if (closestScrollContainer) {
32069
31985
  closestScrollContainerRef.current = closestScrollContainer;
32070
31986
  }
32071
- }, [parentElRef, scrollElRefProp, scrollElRefContext, focus]);
31987
+ }, [parentElRef, scrollElRefProp, scrollElRefContext]);
32072
31988
  var _usePositionStyle = usePositionStyle({
32073
31989
  getContainer: getRoot,
32074
31990
  position: position,
@@ -33262,103 +33178,6 @@ function toNum(v) {
33262
33178
  }
33263
33179
  return 0;
33264
33180
  }
33265
-
33266
- /**
33267
- * 在字符串层面实现四舍五入
33268
- * @param {string} numStr 数字字符串
33269
- * @param {number} precision 精度
33270
- * @returns {string} 四舍五入后的字符串
33271
- */
33272
- function roundString(numStr, precision) {
33273
- if (precision < 0) return numStr;
33274
- var parts = numStr.split('.');
33275
- var intPart = parts[0];
33276
- var decimalPart = parts[1] || '';
33277
- if (decimalPart.length <= precision) {
33278
- return intPart + (decimalPart ? ".".concat(decimalPart.padEnd(precision, '0')) : '');
33279
- }
33280
-
33281
- // 需要进行四舍五入
33282
- var roundPos = precision;
33283
- var carry = 0;
33284
-
33285
- // 确定是否需要进位
33286
- if (parseInt(decimalPart[roundPos], 10) >= 5) carry = 1;
33287
-
33288
- // 如果不需要进位,直接截断
33289
- if (carry === 0) {
33290
- return intPart + (precision > 0 ? ".".concat(decimalPart.slice(0, precision)) : '');
33291
- }
33292
-
33293
- // 处理进位
33294
- var digits = (intPart + (decimalPart ? ".".concat(decimalPart) : '')).replace('.', '').split('');
33295
- var dotPos = intPart.length;
33296
-
33297
- // 从小数位开始向前进位
33298
- var i = dotPos + precision - 1;
33299
- while (carry > 0 && i >= 0) {
33300
- // 跳过小数点
33301
- if (i === dotPos - 1) {
33302
- i -= 1;
33303
- continue;
33304
- }
33305
- var d = parseInt(digits[i], 10) + carry;
33306
- digits[i] = (d % 10).toString();
33307
- carry = Math.floor(d / 10);
33308
- i -= 1;
33309
- }
33310
-
33311
- // 处理最高位进位
33312
- var result = '';
33313
- if (carry > 0) result = '1';
33314
-
33315
- // 重建数字字符串
33316
- for (var j = 0; j < digits.length; j++) {
33317
- // 插入小数点
33318
- if (j === dotPos && precision > 0) result += '.';
33319
- // 只添加到所需精度
33320
- if (j < dotPos || j < dotPos + precision) {
33321
- result += digits[j];
33322
- }
33323
- }
33324
- return result;
33325
- }
33326
-
33327
- /**
33328
- * 格式化数字字符串到指定小数位
33329
- * @param {string} value 数字字符串
33330
- * @param {number} precision 小数位数
33331
- * @returns {string} 格式化后的字符串
33332
- * @example
33333
- * console.log(preciseString('111111111111111.888', 2)) // "111111111111111.89"
33334
- * console.log(preciseString('9.999', 2)) // "10.00"
33335
- */
33336
- var preciseString = function preciseString(value) {
33337
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
33338
- // 如果不是数字字符串,则返回原值
33339
- if (!/^-?\d+(\.\d+)?$/.test(value)) {
33340
- return value;
33341
- }
33342
-
33343
- // 如果不需要格式化精度,直接返回
33344
- if (precision < 0) return value;
33345
-
33346
- // 分离整数和小数部分
33347
- var parts = value.split('.');
33348
- var intPart = parts[0];
33349
- var decimalPart = parts[1] || '';
33350
-
33351
- // 截断或补零
33352
- if (decimalPart.length > precision) {
33353
- // 需要四舍五入
33354
- if (precision < decimalPart.length && parseInt(decimalPart[precision], 10) >= 5) {
33355
- // 手动实现字符串层面的四舍五入
33356
- return roundString("".concat(intPart, ".").concat(decimalPart), precision);
33357
- }
33358
- return intPart + (precision > 0 ? ".".concat(decimalPart.slice(0, precision)) : '');
33359
- }
33360
- return intPart + (precision > 0 ? ".".concat(decimalPart.padEnd(precision, '0')) : '');
33361
- };
33362
33181
  ;// CONCATENATED MODULE: ../base/src/spin/base.tsx
33363
33182
 
33364
33183
 
@@ -35838,33 +35657,12 @@ var Input = function Input(props) {
35838
35657
  addEnd = props.addEnd,
35839
35658
  hasSuffix = props.hasSuffix,
35840
35659
  rest = objectWithoutProperties_default()(props, simple_input_excluded);
35841
- var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
35842
- needTriggerEnter: false
35843
- }),
35844
- context = _useRef.current;
35845
35660
  var inputStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
35846
35661
  var config = useConfig();
35847
35662
  var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
35848
35663
  fieldId = _useContext.fieldId;
35849
35664
  var _useInput = use_input(objectSpread2_default()(objectSpread2_default()({}, rest), {}, {
35850
- onFocusedChange: onFocusedChange,
35851
- // 由于form的原生submit事件是在keydown中触发的,submit校验后触发scrollToError会导致当前焦点的input立即失焦,导致input的回车事件无法触发
35852
- // 所以这里在onKeyDown时机记录下needTriggerEnter标志,在onBlur时机判断是否需要触发onEnterPress
35853
- onKeyDown: function onKeyDown(e) {
35854
- var _props$onKeyDown;
35855
- if (e.key === 'Enter') {
35856
- context.needTriggerEnter = true;
35857
- }
35858
- (_props$onKeyDown = props.onKeyDown) === null || _props$onKeyDown === void 0 || _props$onKeyDown.call(props, e);
35859
- },
35860
- onBlur: function onBlur(e) {
35861
- var _props$onBlur;
35862
- if (context.needTriggerEnter) {
35863
- context.needTriggerEnter = false;
35864
- _onEnterPress === null || _onEnterPress === void 0 || _onEnterPress(e.target.value || '', e);
35865
- }
35866
- (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
35867
- }
35665
+ onFocusedChange: onFocusedChange
35868
35666
  })),
35869
35667
  getRootProps = _useInput.getRootProps,
35870
35668
  getClearProps = _useInput.getClearProps,
@@ -35880,10 +35678,6 @@ var Input = function Input(props) {
35880
35678
  });
35881
35679
  var onKeyUp = usePersistFn(function (e) {
35882
35680
  var _props$onKeyUp;
35883
- if (e.key === 'Enter') {
35884
- context.needTriggerEnter = false;
35885
- }
35886
- ;
35887
35681
  (_props$onKeyUp = props.onKeyUp) === null || _props$onKeyUp === void 0 || _props$onKeyUp.call(props, e);
35888
35682
  keyHandler(e);
35889
35683
  });
@@ -35926,7 +35720,6 @@ Input.displayName = 'SimpleInput';
35926
35720
 
35927
35721
 
35928
35722
 
35929
-
35930
35723
  function regLength(size) {
35931
35724
  return /\d+/.test(String(size)) && size > 0 ? "{0,".concat(size, "}") : '*';
35932
35725
  }
@@ -36010,7 +35803,7 @@ var useInputFormat = function useInputFormat(props) {
36010
35803
  if (numType === 'positive' && Number(value) <= 0) value = '';
36011
35804
  if (digits !== undefined && autoFix) {
36012
35805
  if (digits > 0) {
36013
- value = preciseString(value, digits);
35806
+ value = parseFloat(value).toFixed(digits);
36014
35807
  } else if (digits === 0) {
36015
35808
  value = parseInt(value, 10).toString();
36016
35809
  }
@@ -39414,18 +39207,14 @@ var useTree = function useTree(props) {
39414
39207
  var getFlatData = function getFlatData() {
39415
39208
  return context.dataFlat;
39416
39209
  };
39417
- var updateExpanded = usePersistFn(function (expanded, ignoreExpanded) {
39210
+ var updateExpanded = usePersistFn(function (expanded) {
39418
39211
  var tempExpandMap = new Set(expanded);
39419
39212
  if (!expanded) return;
39420
39213
  if (virtual) {
39421
39214
  expandedFlat(expanded);
39422
39215
  }
39423
- context.updateMap.forEach(function (call, id) {
39424
- if (ignoreExpanded) {
39425
- var nodeStatus = call('get', true);
39426
- if (nodeStatus && nodeStatus.hasTriggered) return;
39427
- }
39428
- call('expanded', tempExpandMap.has(id));
39216
+ context.updateMap.forEach(function (update, id) {
39217
+ update('expanded', tempExpandMap.has(id));
39429
39218
  });
39430
39219
  });
39431
39220
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -39437,17 +39226,16 @@ var useTree = function useTree(props) {
39437
39226
  }
39438
39227
  });
39439
39228
  onExpand(nextExpanded);
39440
- updateExpanded(nextExpanded, true);
39441
39229
  }
39442
- }, [context.dataMap, props.data]);
39230
+ }, [context.dataMap]);
39443
39231
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
39444
39232
  if (props.datum) return;
39445
39233
  if (!dataUpdate) return;
39446
39234
  setData(data);
39447
39235
  var nextExpanded = props.expanded || props.defaultExpanded || [];
39448
- if (!defaultExpandAll && !shallowEqual(nextExpanded, expanded)) {
39236
+ if (!shallowEqual(nextExpanded, expanded)) {
39449
39237
  onExpand(nextExpanded);
39450
- updateExpanded(nextExpanded, true);
39238
+ updateExpanded(nextExpanded);
39451
39239
  }
39452
39240
  updateInnerCheckStatus();
39453
39241
  }, [props.data]);
@@ -40074,20 +39862,22 @@ var CascaderNode = function CascaderNode(props) {
40074
39862
  shouldFinal = props.shouldFinal,
40075
39863
  onChange = props.onChange,
40076
39864
  onPathChange = props.onPathChange,
40077
- mode = props.mode;
39865
+ mode = props.mode,
39866
+ activeLeaf = props.activeLeaf,
39867
+ setActiveLeaf = props.setActiveLeaf;
40078
39868
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
40079
39869
  _useState2 = slicedToArray_default()(_useState, 2),
40080
39870
  loading = _useState2[0],
40081
39871
  setLoading = _useState2[1];
39872
+ // const [activeState, setActiveState] = useState(false);
40082
39873
  var checkboxRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
40083
- var hasHandleSelectRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
40084
39874
  var isDisabled = datum.isDisabled(id);
40085
39875
  var children = data[childrenKey];
40086
39876
  var hasChildren = children && children.length > 0;
40087
39877
  var uncertainChildren = loader && !loading && children === undefined;
40088
39878
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
40089
39879
  var commonStyles = jssStyle === null || jssStyle === void 0 || (_jssStyle$common = jssStyle.common) === null || _jssStyle$common === void 0 ? void 0 : _jssStyle$common.call(jssStyle);
40090
- var rootClass = classnames_default()(styles.option, active && styles.activeOption, isDisabled && mode !== 4 && styles.optionDisabled);
39880
+ var rootClass = classnames_default()(styles.option, (active || activeLeaf === id) && styles.activeOption, isDisabled && mode !== 4 && styles.optionDisabled);
40091
39881
  var handlePathChange = function handlePathChange() {
40092
39882
  onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
40093
39883
  };
@@ -40111,6 +39901,9 @@ var CascaderNode = function CascaderNode(props) {
40111
39901
  if (getParent(e.target, checkboxRef.current)) return;
40112
39902
  var checked = datum.getChecked(id);
40113
39903
  handleChange(null, !checked);
39904
+ if (setActiveLeaf) {
39905
+ setActiveLeaf(id);
39906
+ }
40114
39907
  };
40115
39908
  var isHoverAble = expandTrigger === 'hover' || expandTrigger === 'hover-only';
40116
39909
  var isRealLeafNode = !hasChildren && !uncertainChildren;
@@ -40121,17 +39914,10 @@ var CascaderNode = function CascaderNode(props) {
40121
39914
  }
40122
39915
  if (isHoverAble) {
40123
39916
  events.onMouseEnter = handlePathChange;
40124
- if (multiple) {
40125
- events.onClick = handleSelect;
40126
- hasHandleSelectRef.current = true;
40127
- }
39917
+ if (multiple) events.onClick = handleSelect;
40128
39918
  } else if (isRealLeafNode && multiple) {
40129
39919
  // 非hover模式下: 末级节点支持整个节点区域点击选中checkbox
40130
- events.onClick = function (e) {
40131
- handleClick(e);
40132
- handleSelect(e);
40133
- };
40134
- hasHandleSelectRef.current = true;
39920
+ events.onClick = handleSelect;
40135
39921
  }
40136
39922
  return events;
40137
39923
  };
@@ -40187,7 +39973,7 @@ var CascaderNode = function CascaderNode(props) {
40187
39973
  className: styles.optionCheckbox,
40188
39974
  checked: datum.getChecked(id),
40189
39975
  disabled: isDisabled,
40190
- onChange: hasHandleSelectRef.current ? undefined : handleChange
39976
+ onChange: events.onClick === handleSelect ? undefined : handleChange
40191
39977
  }), renderContent(), renderIcon()]
40192
39978
  })
40193
39979
  }));
@@ -40200,6 +39986,7 @@ var CascaderNode = function CascaderNode(props) {
40200
39986
 
40201
39987
 
40202
39988
 
39989
+
40203
39990
  var list_devUseWarning = devUseWarning;
40204
39991
  var CascaderList = function CascaderList(props) {
40205
39992
  var _jssStyle$cascader;
@@ -40256,11 +40043,18 @@ var CascaderList = function CascaderList(props) {
40256
40043
  children: "noData"
40257
40044
  });
40258
40045
  };
40046
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(),
40047
+ _useState2 = slicedToArray_default()(_useState, 2),
40048
+ activeLeaf = _useState2[0],
40049
+ setActiveLeaf = _useState2[1];
40050
+ var needSetActiveLeaf = (multiple || mode !== undefined) && props.id === undefined;
40259
40051
  var renderItem = function renderItem(item, index) {
40260
40052
  var id = getKey(item, index);
40261
40053
  return /*#__PURE__*/(0,jsx_runtime.jsx)(node, {
40262
40054
  jssStyle: jssStyle,
40263
40055
  active: props.id === id,
40056
+ activeLeaf: activeLeaf,
40057
+ setActiveLeaf: needSetActiveLeaf ? setActiveLeaf : undefined,
40264
40058
  id: id,
40265
40059
  data: item,
40266
40060
  datum: datum,
@@ -40671,7 +40465,7 @@ var Result = function Result(props) {
40671
40465
  var _props$onBlur, _inputRef$current$upd, _inputRef$current;
40672
40466
  e.stopPropagation();
40673
40467
  if (e.relatedTarget === context.inputRefs[1 - info.index]) return;
40674
- (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, info.index);
40468
+ (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
40675
40469
  if (inputRef.current) (_inputRef$current$upd = (_inputRef$current = inputRef.current).updateValue) === null || _inputRef$current$upd === void 0 || _inputRef$current$upd.call(_inputRef$current);
40676
40470
  context.clickIndex = 0;
40677
40471
  },
@@ -41110,25 +40904,44 @@ function getResetMore(onFilter, container, doms) {
41110
40904
  var hideMargin = parsePxToNumber(hideElStyle.marginLeft) + parsePxToNumber(hideElStyle.marginRight);
41111
40905
  var num = 0;
41112
40906
  var sumWidth = 0;
41113
- for (var i = 0; i < doms.length; i++) {
41114
- var _item2 = doms[i];
41115
- var itemStyle = getComputedStyle(_item2);
41116
- var itemWidth = _item2.offsetWidth + parsePxToNumber(itemStyle.marginLeft) + parsePxToNumber(itemStyle.marginRight);
41117
- sumWidth += itemWidth;
41118
- var moreWidth = 0;
41119
- var resetNum = items.length - 1 - i;
41120
- if (resetNum > 0) {
41121
- var reset = "+".concat(resetNum);
41122
- hideEl.childNodes[0].innerText = reset;
41123
- moreWidth = hideEl.offsetWidth + hideMargin;
41124
- }
41125
- if (sumWidth > contentWidth - moreWidth) {
41126
- num = i;
41127
- break;
41128
- }
40907
+ var itemWidthArr = items.map(function (item) {
40908
+ var itemStyle = getComputedStyle(item);
40909
+ var itemLen = item.offsetWidth + parsePxToNumber(itemStyle.marginLeft) + parsePxToNumber(itemStyle.marginRight);
40910
+ sumWidth += itemLen;
40911
+ return itemLen;
40912
+ });
40913
+ if (sumWidth <= contentWidth) {
41129
40914
  num = -1;
40915
+ } else {
40916
+ var len = 0;
40917
+ for (var i = 0; i < itemWidthArr.length; i++) {
40918
+ var itemLen = itemWidthArr[i];
40919
+ // number length
40920
+ var resetNum = items.length - 1 - i;
40921
+ var moreWidth = void 0;
40922
+ if (resetNum <= 0) {
40923
+ moreWidth = 0;
40924
+ } else {
40925
+ var reset = "+".concat(resetNum);
40926
+ hideEl.childNodes[0].innerText = reset;
40927
+ // (+num) width
40928
+ moreWidth = hideEl.offsetWidth + hideMargin;
40929
+ }
40930
+ len += itemLen;
40931
+ if (len > contentWidth - moreWidth) {
40932
+ break;
40933
+ }
40934
+ num += 1;
40935
+ if (i === items.length - 1) {
40936
+ // not show more
40937
+ num = -1;
40938
+ }
40939
+ }
40940
+ }
40941
+ // at least show one
40942
+ if (num === 0 && itemWidthArr[0]) {
40943
+ num = 1;
41130
40944
  }
41131
- ;
41132
40945
  return num;
41133
40946
  }
41134
40947
  var More = function More(props) {
@@ -41150,7 +40963,16 @@ var More = function More(props) {
41150
40963
  var shouldShowMore = showNum < 0 || showNum >= data.length;
41151
40964
  var before = [];
41152
40965
  var after = [];
41153
- var afterLength = 0;
40966
+ var itemsLength = 0;
40967
+ var tagStyle = shouldShowMore ? {
40968
+ position: 'absolute',
40969
+ zIndex: -100,
40970
+ userSelect: 'none',
40971
+ msUserSelect: 'none',
40972
+ contain: 'layout',
40973
+ opacity: 0,
40974
+ pointerEvents: 'none'
40975
+ } : {};
41154
40976
  if (!shouldShowMore) {
41155
40977
  before = new Array(showNum).fill(undefined).map(function (_item, index) {
41156
40978
  return data[index];
@@ -41158,9 +40980,9 @@ var More = function More(props) {
41158
40980
  after = new Array(data.length - showNum).fill(undefined).map(function (_item, index) {
41159
40981
  return data[showNum + index];
41160
40982
  });
41161
- afterLength = after.length;
40983
+ itemsLength = after.length;
41162
40984
  }
41163
- if (shouldShowMore) {
40985
+ if (showNum < 0 || showNum >= data.length) {
41164
40986
  return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
41165
40987
  children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, {
41166
40988
  className: styles.tag,
@@ -41187,9 +41009,10 @@ var More = function More(props) {
41187
41009
  className: styles.tag,
41188
41010
  jssStyle: jssStyle,
41189
41011
  size: size,
41012
+ style: tagStyle,
41190
41013
  mode: visible ? 'fill' : 'bright',
41191
41014
  color: visible ? 'info' : 'default',
41192
- children: shouldShowMore ? '+' : "+".concat(afterLength)
41015
+ children: shouldShowMore ? '+' : "+".concat(itemsLength)
41193
41016
  }, 'more'), compressed !== 'hide-popover' && /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
41194
41017
  jssStyle: jssStyle,
41195
41018
  className: compressedClassName,
@@ -41287,16 +41110,12 @@ var result_Result = function Result(props) {
41287
41110
  setShouldResetMore = _useState4[1];
41288
41111
  var render = useRender();
41289
41112
  var resultRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
41290
- var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
41291
- prevMore: more,
41292
- maxMore: 0
41293
- }),
41294
- context = _useRef.current;
41113
+ var prevMore = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(more);
41295
41114
  var removeLock = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
41296
41115
  var showInput = allowOnFilter;
41297
41116
  var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
41298
41117
  var styles = props.classes;
41299
- var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, compressedBound && compressedBound > 0 && styles.compressedBoundWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
41118
+ var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
41300
41119
  var renderResultContent = function renderResultContent(data, index, nodes) {
41301
41120
  if (checkUnMatched(data)) {
41302
41121
  var _data = data;
@@ -41494,6 +41313,7 @@ var result_Result = function Result(props) {
41494
41313
  data: result,
41495
41314
  datas: renderMultipleResult.datas,
41496
41315
  size: size,
41316
+ more: moreNumber,
41497
41317
  compressed: compressed,
41498
41318
  renderCompressed: renderCompressed,
41499
41319
  compressedClassName: compressedClassName,
@@ -41523,27 +41343,15 @@ var result_Result = function Result(props) {
41523
41343
  }
41524
41344
  return result;
41525
41345
  };
41526
- var handleResetMore = function handleResetMore(valueLength) {
41346
+ var handleResetMore = function handleResetMore() {
41527
41347
  if (!compressed) return;
41528
41348
  if (isCompressedBound()) return;
41529
41349
  if (removeLock.current) {
41530
41350
  removeLock.current = false;
41531
41351
  return;
41532
41352
  }
41533
-
41534
- // why requestIdleCallback: 当选项数量远超容器承载能力时,延迟昂贵的DOM计算,在1000+选项时,同步的重新计算会导致INP超过1000ms
41535
- var hasExistingCompression = context.prevMore > 0;
41536
- var hasValidEstimate = context.maxMore > 0;
41537
- var exceedsCapacity = valueLength && valueLength > context.maxMore;
41538
- if (hasExistingCompression && hasValidEstimate && exceedsCapacity && typeof requestIdleCallback !== 'undefined') {
41539
- requestIdleCallback(function () {
41540
- setMore(-1);
41541
- setShouldResetMore(true);
41542
- });
41543
- } else {
41544
- setMore(-1);
41545
- setShouldResetMore(true);
41546
- }
41353
+ setMore(-1);
41354
+ setShouldResetMore(true);
41547
41355
  };
41548
41356
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41549
41357
  if (!focus && mounted.current) {
@@ -41598,7 +41406,7 @@ var result_Result = function Result(props) {
41598
41406
  }
41599
41407
  }, [focus, multiple]);
41600
41408
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
41601
- handleResetMore((valueProp === null || valueProp === void 0 ? void 0 : valueProp.length) || 0);
41409
+ handleResetMore();
41602
41410
  }, [valueProp, data]);
41603
41411
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41604
41412
  // datum.getDataByValues(value); 需要等待 useTree useEffect 执行完毕 才能获取到
@@ -41609,7 +41417,7 @@ var result_Result = function Result(props) {
41609
41417
  var tagClassName = ".".concat(styles.tag.split(' ')[0]);
41610
41418
  if (shouldResetMore && result_isArray(value) && (value || []).length) {
41611
41419
  var newMore = getResetMore(showInput, resultRef.current, resultRef.current.querySelectorAll(tagClassName));
41612
- context.prevMore = newMore;
41420
+ prevMore.current = newMore;
41613
41421
  setMore(newMore);
41614
41422
  setShouldResetMore(false);
41615
41423
  } else {
@@ -41623,7 +41431,6 @@ var result_Result = function Result(props) {
41623
41431
  if (!resultRef.current) return;
41624
41432
  if (!compressed) return;
41625
41433
  if (isCompressedBound()) return;
41626
- context.maxMore = Math.floor(resultRef.current.clientWidth / 20);
41627
41434
  var cancelObserver = addResizeObserver(resultRef.current, handleResetMore, {
41628
41435
  direction: 'x'
41629
41436
  });
@@ -44791,18 +44598,8 @@ function isValid(date) {
44791
44598
  if (!(date instanceof Date)) return false;
44792
44599
  return dayjs_min_default()(date).isValid();
44793
44600
  }
44794
-
44795
- /**
44796
- * @param date 日期字符串
44797
- * @param fmt 日期格式
44798
- * @param isLoose 是否为宽松模式
44799
- * @returns 是否为有效日期
44800
- */
44801
- function isValidString(date, fmt, isLoose) {
44601
+ function isValidString(date, fmt) {
44802
44602
  if (!date) return false;
44803
- if (isLoose) {
44804
- return dayjs_min_default()(date).isValid();
44805
- }
44806
44603
  return dayjs_min_default()(date, fmt, true).isValid();
44807
44604
  }
44808
44605
  function util_parse(d, fmt, options) {
@@ -45269,7 +45066,6 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
45269
45066
  return getFormatValueArr(dateArr, props.formatResult);
45270
45067
  } else if (typeof props.formatResult === 'function') {
45271
45068
  return dateArr.map(function (item) {
45272
- if (!item) return '';
45273
45069
  return props.formatResult(item);
45274
45070
  });
45275
45071
  } else {
@@ -45291,15 +45087,8 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
45291
45087
  }
45292
45088
  var formatValue = getFormatValueArr(dateArr);
45293
45089
  var v = range ? formatValue : formatValue[0];
45294
- if (Array.isArray(value) && value.length && Array.isArray(v) && v.length) {
45295
- // 针对 range 的情况,['2025-01-01',''] ['2025-01-01',undefined] 无法通过 shallowEqual 出来,这边需要放行
45296
- if (!shallowEqualExceptFalsely(v[0], value[0]) || !shallowEqualExceptFalsely(v[1], value[1])) {
45297
- onChange === null || onChange === void 0 || onChange(v);
45298
- }
45299
- } else {
45300
- if (!shallow_equal(v, value)) {
45301
- onChange === null || onChange === void 0 || onChange(v);
45302
- }
45090
+ if (!shallow_equal(v, value)) {
45091
+ onChange === null || onChange === void 0 || onChange(v);
45303
45092
  }
45304
45093
  };
45305
45094
  var getDateArr = function getDateArr() {
@@ -45372,9 +45161,9 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
45372
45161
  }
45373
45162
  (_props$onClear = props.onClear) === null || _props$onClear === void 0 || _props$onClear.call(props);
45374
45163
  });
45375
- var handleInputChange = usePersistFn(function (str, index, isFromBlur) {
45164
+ var handleInputChange = usePersistFn(function (str, index) {
45376
45165
  // 比较 日期字符串是否符合format格式, 如果符合返回 true 否则返回 false
45377
- var isValid = util.isValidString(str, format, isFromBlur);
45166
+ var isValid = util.isValidString(str, format);
45378
45167
  if (!isValid) return;
45379
45168
  var date = util.toDateWithFormat(str, format, undefined, options);
45380
45169
  setInputArr(function (prev) {
@@ -45398,11 +45187,6 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
45398
45187
  return arr;
45399
45188
  });
45400
45189
  });
45401
-
45402
- // 失焦时,需要宽松模式校验,eg: 2025-06-16 18:00 和 2025-06-16 18 都可以校验通过
45403
- var handleInputBlur = usePersistFn(function (str, index) {
45404
- handleInputChange(str, index, true);
45405
- });
45406
45190
  var handleClearInputArr = usePersistFn(function (index) {
45407
45191
  if (index !== undefined) {
45408
45192
  setInputArr(function (prev) {
@@ -45446,7 +45230,6 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
45446
45230
  handleClear: handleClear,
45447
45231
  handleClearInputArr: handleClearInputArr,
45448
45232
  handleInputChange: handleInputChange,
45449
- handleInputBlur: handleInputBlur,
45450
45233
  registerModeDisabled: registerModeDisabled,
45451
45234
  setCurrentArrWithParams: setCurrentArrWithParams,
45452
45235
  isDisabledDate: isDisabledDate
@@ -45485,16 +45268,14 @@ var useDate = function useDate(props) {
45485
45268
  cachedDays: []
45486
45269
  }),
45487
45270
  context = _useRef.current;
45488
- var current = props.current === undefined || !props.current ? currentState : props.current;
45271
+ var current = props.current === undefined ? currentState : props.current;
45489
45272
  var setCurrent = function setCurrent(date) {
45490
45273
  var _props$onCurrentChang2;
45491
45274
  if (props.current !== undefined) {
45492
45275
  var _props$onCurrentChang;
45493
45276
  (_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
45494
45277
  } else {
45495
- if (date) {
45496
- setCurrentState(date);
45497
- }
45278
+ setCurrentState(date);
45498
45279
  }
45499
45280
  (_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
45500
45281
  };
@@ -45569,15 +45350,9 @@ var useDate = function useDate(props) {
45569
45350
  var _props$onChange;
45570
45351
  if (isDisabled(date)) return;
45571
45352
  var newDate = getDateWithTime(date);
45572
- var index = position === 'start' ? 0 : 1;
45573
- if (props.allowSingle && props.rangeDate && Array.isArray(props.rangeDate) && props.rangeDate[index] && util.clearHMS(newDate, options).getTime() === util.clearHMS(props.rangeDate[index], options).getTime()) {
45574
- newDate = '';
45575
- }
45576
- props === null || props === void 0 || props.onClearInputArr(index);
45353
+ props === null || props === void 0 || props.onClearInputArr(position === 'start' ? 0 : 1);
45577
45354
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, newDate, noClose);
45578
- if (newDate) {
45579
- setCurrent(newDate);
45580
- }
45355
+ setCurrent(newDate);
45581
45356
  };
45582
45357
  var getTimeStr = function getTimeStr() {
45583
45358
  var format = props.format,
@@ -46108,8 +45883,7 @@ var Time = function Time(props) {
46108
45883
 
46109
45884
  var Day = function Day(props) {
46110
45885
  var _jssStyle$datePicker;
46111
- var jssStyle = props.jssStyle,
46112
- allowSingle = props.allowSingle;
45886
+ var jssStyle = props.jssStyle;
46113
45887
  var _useConfig = useConfig(),
46114
45888
  locale = _useConfig.locale,
46115
45889
  direction = _useConfig.direction;
@@ -46128,7 +45902,6 @@ var Day = function Day(props) {
46128
45902
  value: props.value,
46129
45903
  range: props.range,
46130
45904
  onChange: onChange,
46131
- allowSingle: allowSingle,
46132
45905
  onClearInputArr: props.onClearInputArr,
46133
45906
  position: props.position,
46134
45907
  min: props.min,
@@ -47155,7 +46928,7 @@ var useRangePick = function useRangePick(props) {
47155
46928
  setDateArr(function (arr) {
47156
46929
  var newArr = toConsumableArray_default()(arr);
47157
46930
  newArr[index] = date;
47158
- if (date && range && index === 0 && newArr[1]) {
46931
+ if (range && index === 0 && newArr[1]) {
47159
46932
  if (typeof range === 'number') {
47160
46933
  var rangeMax = util.addSeconds(date, range, options);
47161
46934
  if (rangeMax.getTime() < newArr[1].getTime()) {
@@ -47184,7 +46957,7 @@ var useRangePick = function useRangePick(props) {
47184
46957
  var newArr = toConsumableArray_default()(arr);
47185
46958
  newArr[index] = date;
47186
46959
  var modeCache = context.modeCache;
47187
- if (date && modeCache[0] === modeCache[1]) {
46960
+ if (modeCache[0] === modeCache[1]) {
47188
46961
  var mode = modeCache[0];
47189
46962
  if (range && index === 0 && newArr[1]) {
47190
46963
  if (mode === 'year') {
@@ -47429,7 +47202,6 @@ var Picker = function Picker(props) {
47429
47202
  format: props.format,
47430
47203
  disabled: position === 'end' ? func.endDisabled : func.startDisabled,
47431
47204
  rangeDate: dateArr,
47432
- allowSingle: props.allowSingle,
47433
47205
  min: position === 'end' ? endMin : startMin,
47434
47206
  staticMin: position === 'end' ? endMin : staticStartMin,
47435
47207
  max: position === 'end' ? endMax : startMax,
@@ -47712,14 +47484,11 @@ var DatePicker = function DatePicker(props0) {
47712
47484
  setFocused(true);
47713
47485
  (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props, e);
47714
47486
  });
47715
- var handleBlur = usePersistFn(function (e, index) {
47487
+ var handleBlur = usePersistFn(function (e) {
47716
47488
  var _props$onBlur;
47717
47489
  setFocused(false);
47718
- (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
47490
+ (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
47719
47491
  if (props.needConfirm) return;
47720
- if (props.inputable && !props.quickSelect && index !== undefined) {
47721
- func.handleInputBlur(e.target.value, index);
47722
- }
47723
47492
 
47724
47493
  // 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
47725
47494
  if (inputArr.some(function (d) {
@@ -47838,7 +47607,6 @@ var DatePicker = function DatePicker(props0) {
47838
47607
  type: type,
47839
47608
  options: options,
47840
47609
  disabled: disabled,
47841
- allowSingle: props.allowSingle,
47842
47610
  jssStyle: jssStyle,
47843
47611
  closePop: handleClose,
47844
47612
  defaultTime: props.defaultTime,
@@ -48440,11 +48208,7 @@ var Modal = function Modal(props) {
48440
48208
  isMask: false,
48441
48209
  mouseDownTarget: null,
48442
48210
  mouseUpTarget: null,
48443
- content: null,
48444
- originDocumentStyle: {
48445
- overflow: '',
48446
- paddingRight: ''
48447
- }
48211
+ content: null
48448
48212
  }),
48449
48213
  context = _useRef.current;
48450
48214
  var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.visible || props.autoShow),
@@ -48544,33 +48308,18 @@ var Modal = function Modal(props) {
48544
48308
  setAnimation(true);
48545
48309
  }
48546
48310
  }, [props.visible]);
48547
-
48548
- // 设置 document.body.style.overflow 和 document.body.style.paddingRight,并记录原始值到 context 中
48549
- var setDocumentOverflow = usePersistFn(function () {
48550
- var doc = document.body.parentNode;
48551
- if (context.isMask) {
48552
- context.originDocumentStyle.overflow = doc.style.overflow;
48553
- context.originDocumentStyle.paddingRight = doc.style.paddingRight;
48554
- }
48555
- doc.style.overflow = 'hidden';
48556
- if (!doc.style.paddingRight) {
48557
- doc.style.paddingRight = "".concat(window.innerWidth - docSize.width, "px");
48558
- }
48559
- });
48560
-
48561
- // 还原 document.body.style.overflow 和 document.body.style.paddingRight
48562
- var resetDocumentOverflow = usePersistFn(function () {
48563
- var doc = document.body.parentNode;
48564
- doc.style.overflow = context.originDocumentStyle.overflow;
48565
- doc.style.paddingRight = context.originDocumentStyle.paddingRight;
48566
- });
48567
48311
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48568
48312
  if (!props.hideMask) {
48313
+ var doc = document.body.parentNode;
48569
48314
  if (visible) {
48570
- setDocumentOverflow();
48315
+ doc.style.overflow = 'hidden';
48316
+ if (!doc.style.paddingRight) {
48317
+ doc.style.paddingRight = "".concat(window.innerWidth - docSize.width, "px");
48318
+ }
48571
48319
  } else {
48572
48320
  if (!context.isMask) return;
48573
- resetDocumentOverflow();
48321
+ doc.style.paddingRight = '';
48322
+ doc.style.overflow = '';
48574
48323
  }
48575
48324
  }
48576
48325
  }, [visible]);
@@ -48584,15 +48333,20 @@ var Modal = function Modal(props) {
48584
48333
  // unmount
48585
48334
  return function () {
48586
48335
  var _props$shouldDestroy2;
48587
- if (context.isMask) {
48588
- resetDocumentOverflow();
48589
- }
48590
- ;
48591
48336
  (_props$shouldDestroy2 = props.shouldDestroy) === null || _props$shouldDestroy2 === void 0 || _props$shouldDestroy2.call(props, true);
48337
+ // if (props.autoShow) {
48338
+ // props.onClose?.();
48339
+ // }
48592
48340
  if (context.isMask) {
48593
48341
  context.isMask = false;
48594
48342
  hasMask = false;
48595
48343
  }
48344
+ {
48345
+ if (!context.isMask) return;
48346
+ var doc = document.body.parentNode;
48347
+ doc.style.paddingRight = '';
48348
+ doc.style.overflow = '';
48349
+ }
48596
48350
  };
48597
48351
  }, []);
48598
48352
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
@@ -49041,9 +48795,7 @@ var Item_Item = /*#__PURE__*/function (_React$PureComponent) {
49041
48795
  contentPropsClassName = _ref2$className === void 0 ? '' : _ref2$className,
49042
48796
  contentPropsOnClick = _ref2.onClick,
49043
48797
  otherContentProps = objectWithoutProperties_default()(_ref2, Item_excluded2);
49044
- var className = classnames_default()(
49045
- // 如果content是Tooltip,则不传递className(就是dropdown-item的className)
49046
- content.type.displayName !== 'ShineoutTooltip' ? propsClassName : '', contentPropsClassName);
48798
+ var className = classnames_default()(propsClassName, contentPropsClassName);
49047
48799
  return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(content, Object.assign(otherProps, otherContentProps, {
49048
48800
  className: className,
49049
48801
  onClick: function onClick(e) {
@@ -50336,7 +50088,6 @@ function use_previous_usePrevious(value) {
50336
50088
 
50337
50089
 
50338
50090
  var globalKey = '__global__&&@@';
50339
- var SUBMIT_TIMEOUT = 10;
50340
50091
 
50341
50092
 
50342
50093
  var emptyObj = {};
@@ -50542,7 +50293,7 @@ var useForm = function useForm(props) {
50542
50293
  docScroll.top -= scrollToError;
50543
50294
  }
50544
50295
  }
50545
- }, SUBMIT_TIMEOUT + 10);
50296
+ });
50546
50297
  };
50547
50298
  var onChange = use_persist_fn(function (change) {
50548
50299
  var _props$onChange;
@@ -50743,7 +50494,7 @@ var useForm = function useForm(props) {
50743
50494
  var _other$onSubmit;
50744
50495
  submit();
50745
50496
  other === null || other === void 0 || (_other$onSubmit = other.onSubmit) === null || _other$onSubmit === void 0 || _other$onSubmit.call(other, e);
50746
- }, SUBMIT_TIMEOUT);
50497
+ }, 10);
50747
50498
  };
50748
50499
  };
50749
50500
  var validateFieldset = function validateFieldset(name, config) {
@@ -50834,9 +50585,6 @@ var useForm = function useForm(props) {
50834
50585
  context.names.delete(n);
50835
50586
  delete context.defaultValues[n];
50836
50587
  }
50837
- if (context.errors[n]) {
50838
- delete context.errors[n];
50839
- }
50840
50588
  var finalReserveAble = (_props$reserveAble = props.reserveAble) !== null && _props$reserveAble !== void 0 ? _props$reserveAble : reserveAble;
50841
50589
  if (!finalReserveAble && !context.removeLock) {
50842
50590
  addRemove(n);
@@ -50971,14 +50719,13 @@ var useForm = function useForm(props) {
50971
50719
  /* harmony default export */ var use_form = (useForm);
50972
50720
  ;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form-context.ts
50973
50721
 
50974
-
50975
50722
  var FormContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
50976
50723
  function useFormRef() {
50977
- var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState({}),
50978
- _React$useState2 = slicedToArray_default()(_React$useState, 2),
50979
- formRef = _React$useState2[0],
50980
- setFormRef = _React$useState2[1];
50981
- return [formRef, setFormRef];
50724
+ var ref = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({});
50725
+ var setFormRef = function setFormRef(formRef) {
50726
+ ref.current = formRef;
50727
+ };
50728
+ return [ref.current, setFormRef];
50982
50729
  }
50983
50730
  function useFormInstance() {
50984
50731
  var formCtx = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useContext(FormContext);
@@ -51209,7 +50956,9 @@ var Tooltip = function Tooltip(props) {
51209
50956
  _props$type = props.type,
51210
50957
  type = _props$type === void 0 ? 'default' : _props$type,
51211
50958
  _props$position = props.position,
51212
- popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
50959
+ popsitionProps = _props$position === void 0 ? 'auto' : _props$position,
50960
+ _props$popupGap = props.popupGap,
50961
+ popupGap = _props$popupGap === void 0 ? 0 : _props$popupGap;
51213
50962
  var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
51214
50963
  var config = useConfig();
51215
50964
  var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
@@ -51298,7 +51047,7 @@ var Tooltip = function Tooltip(props) {
51298
51047
  absolute: true,
51299
51048
  position: position,
51300
51049
  fixedWidth: false,
51301
- popupGap: 0,
51050
+ popupGap: popupGap,
51302
51051
  zIndex: zIndex,
51303
51052
  adjust: popsitionProps === 'auto',
51304
51053
  updateKey: updateKey,
@@ -51417,7 +51166,7 @@ var FormItem = function FormItem(props) {
51417
51166
  });
51418
51167
  };
51419
51168
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
51420
- className: classnames_default()(className, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelTop, labelAlign === 'top'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalMiddle, labelAlign !== 'top' && labelVerticalAlign === 'middle'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalBottom, labelAlign !== 'top' && labelVerticalAlign === 'bottom'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperInline, inline), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperKeepHeight, keepErrorHeight), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperRequired, required), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperHideRequired, required === false), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperTip, showError || tip))
51169
+ className: classnames_default()(className, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelTop, labelAlign === 'top'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalMiddle, labelAlign !== 'top' && labelVerticalAlign === 'middle'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalBottom, labelAlign !== 'top' && labelVerticalAlign === 'bottom'), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperInline, inline), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperKeepHeight, keepErrorHeight), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperRequired, required), formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperTip, showError || tip))
51421
51170
  }, attributes), {}, {
51422
51171
  style: style,
51423
51172
  children: [label !== undefined ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -54475,7 +54224,6 @@ var NodeContent = function NodeContent(props) {
54475
54224
  onToggle = props.onToggle,
54476
54225
  onDragOver = props.onDragOver,
54477
54226
  onNodeClick = props.onNodeClick,
54478
- onTriggered = props.onTriggered,
54479
54227
  actionOnClick = props.actionOnClick;
54480
54228
  var forceUpdate = useRender();
54481
54229
  var _useTreeContext = useTreeContext(),
@@ -54505,7 +54253,6 @@ var NodeContent = function NodeContent(props) {
54505
54253
  };
54506
54254
  var handleNodeExpand = function handleNodeExpand() {
54507
54255
  onToggle === null || onToggle === void 0 || onToggle(id);
54508
- onTriggered === null || onTriggered === void 0 || onTriggered();
54509
54256
  if (data[childrenKey] !== undefined) return;
54510
54257
  if (loader) {
54511
54258
  setFetching(true);
@@ -54694,18 +54441,6 @@ var useTreeNode = function useTreeNode(props) {
54694
54441
  _useState6 = slicedToArray_default()(_useState5, 2),
54695
54442
  fetching = _useState6[0],
54696
54443
  setFetching = _useState6[1];
54697
- var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
54698
- _useState8 = slicedToArray_default()(_useState7, 2),
54699
- hasTriggered = _useState8[0],
54700
- setHasTriggered = _useState8[1];
54701
- var get = function get() {
54702
- return {
54703
- hasTriggered: hasTriggered,
54704
- active: active,
54705
- expanded: expanded,
54706
- fetching: fetching
54707
- };
54708
- };
54709
54444
  var update = use_persist_fn(function (key, value) {
54710
54445
  switch (key) {
54711
54446
  case 'active':
@@ -54721,14 +54456,9 @@ var useTreeNode = function useTreeNode(props) {
54721
54456
  setFetching(value);
54722
54457
  }
54723
54458
  break;
54724
- case 'get':
54725
- return get();
54726
54459
  }
54727
54460
  });
54728
54461
  var handleToggle = function handleToggle() {};
54729
- var handleTriggered = function handleTriggered() {
54730
- setHasTriggered(true);
54731
- };
54732
54462
  var isLeaf = function isLeaf() {
54733
54463
  var children = data[childrenKey];
54734
54464
  if (children && children.length > 0) return false;
@@ -54752,8 +54482,7 @@ var useTreeNode = function useTreeNode(props) {
54752
54482
  isLeaf: isLeaf,
54753
54483
  setFetching: setFetching,
54754
54484
  setExpanded: setExpanded,
54755
- onToggle: handleToggle,
54756
- onTriggered: handleTriggered
54485
+ onToggle: handleToggle
54757
54486
  };
54758
54487
  };
54759
54488
  /* harmony default export */ var use_tree_node = (useTreeNode);
@@ -54844,8 +54573,7 @@ var Node = function Node(props) {
54844
54573
  fetching = _useTreeNode.fetching,
54845
54574
  setFetching = _useTreeNode.setFetching,
54846
54575
  expanded = _useTreeNode.expanded,
54847
- setExpanded = _useTreeNode.setExpanded,
54848
- onTriggered = _useTreeNode.onTriggered;
54576
+ setExpanded = _useTreeNode.setExpanded;
54849
54577
  var children = data[childrenKey];
54850
54578
  var hasChildren = children && children.length > 0;
54851
54579
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
@@ -55031,7 +54759,6 @@ var Node = function Node(props) {
55031
54759
  onChange: onChange,
55032
54760
  onFetch: handleFetch,
55033
54761
  onNodeClick: onNodeClick,
55034
- onTriggered: onTriggered,
55035
54762
  onDragOver: handleDragOver,
55036
54763
  onToggle: handleToggle,
55037
54764
  actionOnClick: actionOnClick
@@ -55197,19 +54924,7 @@ var VirtualNode = function VirtualNode(props) {
55197
54924
  });
55198
54925
  if (onToggle) onToggle(id, nextExpanded);
55199
54926
  };
55200
- var getIndent = function getIndent() {
55201
- if (size === "large") {
55202
- if (line && level === 1) {
55203
- return 16;
55204
- }
55205
- return 32;
55206
- }
55207
- if (line && level === 1) {
55208
- return 8;
55209
- }
55210
- return 24;
55211
- };
55212
- var indent = getIndent();
54927
+ var indent = size === "large" ? 32 : 24;
55213
54928
  var $indents;
55214
54929
  if (line) {
55215
54930
  $indents = Array.from({
@@ -55445,11 +55160,6 @@ var SIZE_MAP = {
55445
55160
  'default': 36,
55446
55161
  'large': 42
55447
55162
  };
55448
- var PADDING_Y_MAP = {
55449
- 'small': 3,
55450
- 'default': 0,
55451
- 'large': 0
55452
- };
55453
55163
  var TreeVirtual = function TreeVirtual(props) {
55454
55164
  var jssStyle = props.jssStyle,
55455
55165
  height = props.height,
@@ -55528,8 +55238,7 @@ var TreeVirtual = function TreeVirtual(props) {
55528
55238
  keepScrollHeight: true,
55529
55239
  dynamicVirtual: true,
55530
55240
  lineHeight: lineHeight,
55531
- renderItem: renderItem,
55532
- paddingY: PADDING_Y_MAP[datum.size || 'default']
55241
+ renderItem: renderItem
55533
55242
  });
55534
55243
  };
55535
55244
  /* harmony default export */ var tree_virtual = (TreeVirtual);
@@ -57510,8 +57219,7 @@ var usePagination = function usePagination(props) {
57510
57219
  return objectSpread2_default()({}, mergedEventHandlers);
57511
57220
  };
57512
57221
  return {
57513
- // current,
57514
- current: currentProp !== undefined ? currentProp : current,
57222
+ current: current,
57515
57223
  pageSize: pageSize,
57516
57224
  total: total,
57517
57225
  onChange: handleChange,
@@ -63955,8 +63663,19 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
63955
63663
 
63956
63664
 
63957
63665
 
63666
+
63958
63667
  function Td(props) {
63959
- var _props$style, _props$style2;
63668
+ var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(),
63669
+ _React$useState2 = slicedToArray_default()(_React$useState, 2),
63670
+ style = _React$useState2[0],
63671
+ setStyle = _React$useState2[1];
63672
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
63673
+ if (!props.style) return;
63674
+ if (shallowEqual(props.style, style)) {
63675
+ return;
63676
+ }
63677
+ setStyle(props.style);
63678
+ }, [props.style]);
63960
63679
  var col = props.col,
63961
63680
  colSpan = props.colSpan,
63962
63681
  rowSpan = props.rowSpan,
@@ -63976,13 +63695,13 @@ function Td(props) {
63976
63695
  onMouseEnter: onMouseEnter,
63977
63696
  onMouseLeave: onMouseLeave,
63978
63697
  className: className,
63979
- style: props.style,
63698
+ style: style,
63980
63699
  dir: direction,
63981
63700
  "data-role": role,
63982
63701
  onClick: onClick,
63983
63702
  children: content
63984
63703
  }, col.key);
63985
- }, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], props.virtual === 'lazy' ? function (prev, next) {
63704
+ }, [data, className, style, col.type, col.treeColumnsName], props.virtual === 'lazy' ? function (prev, next) {
63986
63705
  if (col.type || col.treeColumnsName) {
63987
63706
  return true;
63988
63707
  }
@@ -64885,10 +64604,6 @@ var emptyRef = {
64885
64604
  return null;
64886
64605
  };
64887
64606
  var $empty = renderEmpty();
64888
- var tableStyle = {
64889
- width: width,
64890
- borderSpacing: 0
64891
- };
64892
64607
  var renderTable = function renderTable() {
64893
64608
  var _props$summary, _sticky$top, _props$data2;
64894
64609
  var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
@@ -65058,7 +64773,9 @@ var emptyRef = {
65058
64773
  role: theadIdRef.current
65059
64774
  })), {}, {
65060
64775
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65061
- style: tableStyle,
64776
+ style: {
64777
+ width: width
64778
+ },
65062
64779
  ref: theadRef,
65063
64780
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
65064
64781
  })
@@ -65087,9 +64804,10 @@ var emptyRef = {
65087
64804
  tableRef: tableRef,
65088
64805
  setFakeVirtual: setFakeVirtual,
65089
64806
  children: [!props.hideHeader && !props.sticky && $headTable, !!((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65090
- style: objectSpread2_default()(objectSpread2_default()({}, tableStyle), {}, {
64807
+ style: {
64808
+ width: width,
65091
64809
  transform: virtualInfo.translateStyle
65092
- }),
64810
+ },
65093
64811
  ref: tbodyRef,
65094
64812
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
65095
64813
  currentIndex: virtualInfo.startIndex,
@@ -65100,7 +64818,9 @@ var emptyRef = {
65100
64818
  }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
65101
64819
  className: footWrapperClass,
65102
64820
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65103
- style: tableStyle,
64821
+ style: {
64822
+ width: width
64823
+ },
65104
64824
  ref: tfootRef,
65105
64825
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
65106
64826
  })
@@ -65114,7 +64834,9 @@ var emptyRef = {
65114
64834
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
65115
64835
  onScroll: handleBodyScroll,
65116
64836
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65117
- style: tableStyle,
64837
+ style: {
64838
+ width: width
64839
+ },
65118
64840
  ref: tbodyRef,
65119
64841
  children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), bodyCommonProps.data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(TbodyEmpty, {
65120
64842
  children: renderEmpty()
@@ -65203,7 +64925,9 @@ var emptyRef = {
65203
64925
  }, props.style),
65204
64926
  dir: config.direction,
65205
64927
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
65206
- style: tableStyle,
64928
+ style: {
64929
+ width: width
64930
+ },
65207
64931
  children: props.children
65208
64932
  })
65209
64933
  });
@@ -67274,9 +66998,6 @@ var useTreeSelect = function useTreeSelect(props) {
67274
66998
 
67275
66999
 
67276
67000
 
67277
- var defaultProps = {
67278
- data: []
67279
- };
67280
67001
  var TreeSelect = function TreeSelect(props0) {
67281
67002
  var _jssStyle$treeSelect;
67282
67003
  var props = use_with_form_config(props0);
@@ -67293,7 +67014,7 @@ var TreeSelect = function TreeSelect(props0) {
67293
67014
  valueProp = props.value,
67294
67015
  defaultValue = props.defaultValue,
67295
67016
  _props$data = props.data,
67296
- data = _props$data === void 0 ? defaultProps.data : _props$data,
67017
+ data = _props$data === void 0 ? [] : _props$data,
67297
67018
  multiple = props.multiple,
67298
67019
  _props$mode = props.mode,
67299
67020
  mode = _props$mode === void 0 ? 1 : _props$mode,
@@ -67837,25 +67558,13 @@ var TreeSelect = function TreeSelect(props0) {
67837
67558
  var style = {
67838
67559
  maxHeight: height
67839
67560
  };
67840
- var rootStyle = {
67841
- padding: '0 4px'
67842
- };
67843
- if (!virtual) {
67844
- if (size === 'small') {
67845
- rootStyle = {
67846
- padding: '3px 4px'
67847
- };
67848
- } else if (size === 'large') {
67849
- rootStyle = {
67850
- padding: '0 5px'
67851
- };
67852
- }
67853
- }
67854
67561
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
67855
67562
  className: classnames_default()(styles.tree, styles.treeWrapper),
67856
67563
  style: style,
67857
67564
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_tree_tree, objectSpread2_default()(objectSpread2_default()({
67858
- rootStyle: rootStyle,
67565
+ rootStyle: {
67566
+ padding: '0 4px'
67567
+ },
67859
67568
  jssStyle: jssStyle,
67860
67569
  renderItem: renderItem
67861
67570
  }, treeProps), {}, {
@@ -69154,6 +68863,7 @@ var UploadButton = function UploadButton(props) {
69154
68863
  canDelete: undefined,
69155
68864
  showUploadList: false,
69156
68865
  customResult: undefined,
68866
+ drop: false,
69157
68867
  multiple: false,
69158
68868
  leftHandler: false,
69159
68869
  onPreview: undefined,
@@ -71659,7 +71369,7 @@ var upload_interface = __webpack_require__(8821);
71659
71369
 
71660
71370
 
71661
71371
  /* harmony default export */ var src_0 = ({
71662
- version: '3.7.5'
71372
+ version: '3.8.0-beta.1'
71663
71373
  });
71664
71374
  }();
71665
71375
  /******/ return __webpack_exports__;