shineout 3.6.1-beta.6 → 3.6.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/cjs/index.js CHANGED
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.1-beta.6'
517
+ version: '3.6.1'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
12139
12139
  };
12140
12140
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12141
12141
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12142
- /* harmony default export */ var version = ('3.6.1-beta.6');
12142
+ /* harmony default export */ var version = ('3.6.1');
12143
12143
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12144
12144
 
12145
12145
 
@@ -15111,7 +15111,7 @@ var treeTokens = {
15111
15111
  treeContentHoverBackgroundColor: 'Neutral-fill-2',
15112
15112
  treeContentHoverFontColor: 'Neutral-text-5',
15113
15113
  treeContentActiveBackgroundColor: 'Brand-1',
15114
- treeContentActiveFontColor: 'Brand-4',
15114
+ treeContentActiveFontColor: 'Brand-6',
15115
15115
  treeContentActiveBorderRadius: 'Radius-2',
15116
15116
  treeContentDisabledBackgroundColor: 'Transprent',
15117
15117
  treeContentDisabledFontColor: 'Neutral-text-5',
@@ -27320,10 +27320,10 @@ var arrowHeight = 8;
27320
27320
  var tooltip_animation = {
27321
27321
  '@keyframes fadeIn': {
27322
27322
  '0%': {
27323
- opacity: '0'
27323
+ opacity: 0
27324
27324
  },
27325
27325
  '100%': {
27326
- opacity: '1'
27326
+ opacity: 1
27327
27327
  }
27328
27328
  },
27329
27329
  '@keyframes moveRight': {
@@ -27336,26 +27336,32 @@ var tooltip_animation = {
27336
27336
  },
27337
27337
  '@keyframes moveLeft': {
27338
27338
  '0%': {
27339
- marginLeft: '0'
27339
+ opacity: 0,
27340
+ marginRight: '0'
27340
27341
  },
27341
27342
  '100%': {
27342
- marginLeft: '-9px'
27343
+ opacity: 1,
27344
+ marginRight: '10px'
27343
27345
  }
27344
27346
  },
27345
27347
  '@keyframes moveTop': {
27346
27348
  '0%': {
27349
+ opacity: 0,
27347
27350
  marginTop: '0'
27348
27351
  },
27349
27352
  '100%': {
27350
- marginTop: '-9px'
27353
+ opacity: 1,
27354
+ marginTop: -10
27351
27355
  }
27352
27356
  },
27353
27357
  '@keyframes moveBottom': {
27354
27358
  '0%': {
27359
+ opacity: 0,
27355
27360
  marginTop: '0'
27356
27361
  },
27357
27362
  '100%': {
27358
- marginTop: '9px'
27363
+ opacity: 1,
27364
+ marginTop: 10
27359
27365
  }
27360
27366
  }
27361
27367
  };
@@ -27380,10 +27386,10 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({
27380
27386
  boxSizing: 'border-box',
27381
27387
  '--tooltip-background-color': src.tooltipLightBackgroundColor,
27382
27388
  '&[data-soui-position^="top"] $arrow': {
27383
- transform: 'translateY(calc(100% - 1px)) rotate(-180deg)'
27389
+ transform: 'translate(0, -1px) rotate(-180deg)'
27384
27390
  },
27385
27391
  '&[data-soui-position^="bottom"] $arrow': {
27386
- transform: 'translateY(calc(-100% + 1px)) rotate(0deg)'
27392
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
27387
27393
  }
27388
27394
  },
27389
27395
  '&[data-soui-type^="primary"]': {
@@ -27407,45 +27413,109 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({
27407
27413
  '--tooltip-background-color': src.tooltipDangerBackgroundColor
27408
27414
  },
27409
27415
  '&[data-soui-position^="bottom"]': {
27410
- marginTop: arrowGap - 2,
27416
+ marginTop: arrowGap - 2
27417
+ },
27418
+ '&[data-soui-position="bottom"]': {
27411
27419
  '& $arrow': {
27412
- transform: 'translateY(calc(-100% + 1px)) rotate(0deg)'
27420
+ left: '50%',
27421
+ transform: 'translate(-50%, calc(-100% + 1px)) rotate(0deg)'
27422
+ }
27423
+ },
27424
+ '&[data-soui-position="bottom-left"]': {
27425
+ '& $arrow': {
27426
+ left: 8,
27427
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
27428
+ }
27429
+ },
27430
+ '&[data-soui-position="bottom-right"]': {
27431
+ '& $arrow': {
27432
+ right: 8,
27433
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
27413
27434
  }
27414
27435
  },
27415
27436
  '&[data-soui-position^="top"]': {
27416
27437
  marginTop: (arrowGap - 2) * -1,
27417
27438
  '& $arrow': {
27418
- transform: 'translateY(calc(100% + 1px)) rotate(-180deg)'
27439
+ top: '100%'
27440
+ }
27441
+ },
27442
+ '&[data-soui-position="top"]': {
27443
+ '& $arrow': {
27444
+ left: '50%',
27445
+ transform: 'translate(-50%, -1px) rotate(-180deg)'
27446
+ }
27447
+ },
27448
+ '&[data-soui-position="top-left"]': {
27449
+ '& $arrow': {
27450
+ left: 8,
27451
+ transform: 'translate(0, -1px) rotate(-180deg)'
27452
+ }
27453
+ },
27454
+ '&[data-soui-position="top-right"]': {
27455
+ '& $arrow': {
27456
+ right: 8,
27457
+ transform: 'translate(0, -1px) rotate(-180deg)'
27419
27458
  }
27420
27459
  },
27421
27460
  '&[data-soui-position^="left"]': {
27422
27461
  '&[dir=ltr]': {
27423
- marginRight: arrowGap - 2,
27424
- '& $arrow': {
27425
- transform: 'translateX(11px) rotate(90deg)'
27426
- }
27462
+ marginRight: arrowGap - 2
27427
27463
  },
27428
27464
  '&[dir=rtl]': {
27429
- 'margin-right': arrowGap - 2,
27430
- '& $arrow': {
27431
- left: 0,
27432
- transform: 'translateX(11px) rotate(90deg)'
27433
- }
27465
+ 'margin-right': arrowGap - 2
27466
+ }
27467
+ },
27468
+ '&[data-soui-position="left"]': {
27469
+ '& $arrow': {
27470
+ right: 0,
27471
+ top: '50%',
27472
+ transform: 'translate(11px, -50%) rotate(90deg)',
27473
+ transformOrigin: 'center center'
27474
+ }
27475
+ },
27476
+ '&[data-soui-position="left-top"]': {
27477
+ '& $arrow': {
27478
+ right: 0,
27479
+ top: 8,
27480
+ transform: 'translate(11px, 0) rotate(90deg)',
27481
+ transformOrigin: 'center center'
27482
+ }
27483
+ },
27484
+ '&[data-soui-position="left-bottom"]': {
27485
+ '& $arrow': {
27486
+ right: 0,
27487
+ bottom: 8,
27488
+ transform: 'translate(11px, 0) rotate(90deg)',
27489
+ transformOrigin: 'center center'
27434
27490
  }
27435
27491
  },
27436
27492
  '&[data-soui-position^="right"]': {
27437
27493
  '&[dir=ltr]': {
27438
- marginLeft: arrowGap - 2,
27439
- '& $arrow': {
27440
- transform: 'translateX(-11px) rotate(-90deg)'
27441
- }
27494
+ marginLeft: arrowGap - 2
27442
27495
  },
27443
27496
  '&[dir=rtl]': {
27444
- marginRight: arrowGap - 2,
27445
- '& $arrow': {
27446
- left: 0,
27447
- transform: 'translateX(-11px) rotate(-90deg)'
27448
- }
27497
+ marginRight: arrowGap - 2
27498
+ }
27499
+ },
27500
+ '&[data-soui-position="right"]': {
27501
+ '& $arrow': {
27502
+ top: '50%',
27503
+ left: 0,
27504
+ transform: 'translate(-11px, -50%) rotate(-90deg)'
27505
+ }
27506
+ },
27507
+ '&[data-soui-position="right-top"]': {
27508
+ '& $arrow': {
27509
+ top: 8,
27510
+ left: 0,
27511
+ transform: 'translate(-11px, 0) rotate(-90deg)'
27512
+ }
27513
+ },
27514
+ '&[data-soui-position="right-bottom"]': {
27515
+ '& $arrow': {
27516
+ bottom: 8,
27517
+ left: 0,
27518
+ transform: 'translate(-11px, 0) rotate(-90deg)'
27449
27519
  }
27450
27520
  }
27451
27521
  },
@@ -29605,7 +29675,6 @@ var usePopup = function usePopup(props) {
29605
29675
  removeChild = _useContext.removeChild;
29606
29676
  var targetRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
29607
29677
  var popupRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
29608
- var arrowRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
29609
29678
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
29610
29679
  bindChild(popupRef);
29611
29680
  return function () {
@@ -29774,7 +29843,6 @@ var usePopup = function usePopup(props) {
29774
29843
  position: position,
29775
29844
  targetRef: targetRef,
29776
29845
  popupRef: popupRef,
29777
- arrowRef: arrowRef,
29778
29846
  getTargetProps: getTargetProps,
29779
29847
  openPop: openPop,
29780
29848
  closePop: closePop,
@@ -29956,14 +30024,6 @@ function getClosestScrollContainer(element) {
29956
30024
  return null;
29957
30025
  }
29958
30026
 
29959
- // 检查元素是否可滚动
29960
- var isScrollable = function isScrollable(el) {
29961
- var style = window.getComputedStyle(el);
29962
- var overflowX = style.overflowX;
29963
- var overflowY = style.overflowY;
29964
- return (overflowX === 'auto' || overflowX === 'scroll' || overflowY === 'auto' || overflowY === 'scroll') && (el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth);
29965
- };
29966
-
29967
30027
  // 如果元素本身是可滚动的,直接返回
29968
30028
  if (isScrollable(element)) {
29969
30029
  return element;
@@ -30105,15 +30165,19 @@ var useCheckElementPosition = function useCheckElementPosition(elementRef) {
30105
30165
  if (scrollContainerRect) {
30106
30166
  newPosition = {
30107
30167
  top: rect.top - scrollContainerRect.top,
30108
- left: rect.left - scrollContainerRect.left
30168
+ left: rect.left - scrollContainerRect.left,
30169
+ width: rect.width,
30170
+ height: rect.height
30109
30171
  };
30110
30172
  } else {
30111
30173
  newPosition = {
30112
30174
  top: rect.top,
30113
- left: rect.left
30175
+ left: rect.left,
30176
+ width: rect.width,
30177
+ height: rect.height
30114
30178
  };
30115
30179
  }
30116
- if (newPosition.top !== lastPosition.current.top || newPosition.left !== lastPosition.current.left) {
30180
+ if (newPosition.top !== lastPosition.current.top || newPosition.left !== lastPosition.current.left || newPosition.width !== lastPosition.current.width || newPosition.height !== lastPosition.current.height) {
30117
30181
  setPosition(newPosition);
30118
30182
  lastPosition.current = newPosition;
30119
30183
  }
@@ -30339,10 +30403,6 @@ var usePositionStyle = function usePositionStyle(config) {
30339
30403
  _useState2 = slicedToArray_default()(_useState, 2),
30340
30404
  style = _useState2[0],
30341
30405
  setStyle = _useState2[1];
30342
- var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
30343
- _useState4 = slicedToArray_default()(_useState3, 2),
30344
- arrayStyle = _useState4[0],
30345
- setArrayStyle = _useState4[1];
30346
30406
  var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
30347
30407
  containerRect: {
30348
30408
  left: 0,
@@ -30427,7 +30487,6 @@ var usePositionStyle = function usePositionStyle(config) {
30427
30487
  position: 'absolute',
30428
30488
  zIndex: zIndex
30429
30489
  };
30430
- var arrayStyle = {};
30431
30490
  if (fixedWidth) {
30432
30491
  var widthKey = fixedWidth === 'min' ? 'minWidth' : 'width';
30433
30492
  style[widthKey] = rect.width;
@@ -30454,7 +30513,6 @@ var usePositionStyle = function usePositionStyle(config) {
30454
30513
  if (h === 'left') {
30455
30514
  style.left = rect.left - containerRect.left + containerScroll.left - (offset ? offset[0] : 0);
30456
30515
  style.transform = '';
30457
- arrayStyle.left = "8px";
30458
30516
  if (adjust) {
30459
30517
  overRight = rect.left + context.popUpWidth - bodyRect.right + containerScrollBarWidth;
30460
30518
  if (style.left < 0 && targetRect) {
@@ -30465,7 +30523,6 @@ var usePositionStyle = function usePositionStyle(config) {
30465
30523
  style.right = containerRect.right - rect.right + containerScrollBarWidth - containerScroll.left - (offset ? offset[0] : 0);
30466
30524
  style.left = 'auto';
30467
30525
  style.transform = '';
30468
- arrayStyle.right = "8px";
30469
30526
  if (adjust) {
30470
30527
  overLeft = bodyRect.left - (rect.right - context.popUpWidth);
30471
30528
  if (style.right < 0 && targetRect) {
@@ -30481,9 +30538,6 @@ var usePositionStyle = function usePositionStyle(config) {
30481
30538
  overRight = rect.left + rect.width / 2 + context.popUpWidth / 2 - bodyRect.width + containerScrollBarWidth;
30482
30539
  overLeft = bodyRect.left - (rect.left + rect.width / 2 - context.popUpWidth / 2);
30483
30540
  }
30484
- if (targetRect) {
30485
- arrayStyle.left = "".concat(targetRect.width / 2 - 5.9, "px");
30486
- }
30487
30541
  }
30488
30542
  if (adjust) {
30489
30543
  // 调节左右溢出
@@ -30492,26 +30546,16 @@ var usePositionStyle = function usePositionStyle(config) {
30492
30546
  style.left -= overRight;
30493
30547
  // 扣除触发器距离页面右侧的距离,以保证从右侧弹出的窗口最右边对齐触发器最右边
30494
30548
  style.left -= toRightDistance;
30495
- if (targetRect) {
30496
- arrayStyle.left = "".concat((targetRect === null || targetRect === void 0 ? void 0 : targetRect.width) - context.parentRect.width / 2 - 5.9, "px");
30497
- }
30498
30549
  }
30499
30550
  if (overLeft > 0) {
30500
30551
  style.left += overLeft;
30501
- arrayStyle.left = "".concat(rect.width / 2 - 5.9, "px");
30502
30552
  }
30503
30553
  }
30504
30554
  if (v === 'bottom') {
30505
30555
  style.top = rect.bottom - containerRect.top + containerScroll.top + popupGap;
30506
- if (targetRect) {
30507
- arrayStyle.top = "".concat(0, "px");
30508
- }
30509
30556
  } else {
30510
30557
  style.top = rect.top - containerRect.top + containerScroll.top - popupGap;
30511
30558
  style.transform += 'translateY(-100%)';
30512
- if (targetRect) {
30513
- arrayStyle.top = "".concat(targetRect.height - 5.9 - 4, "px");
30514
- }
30515
30559
  }
30516
30560
  } else if (horizontalPosition.includes(targetPosition)) {
30517
30561
  var _targetPosition$split3 = targetPosition.split('-'),
@@ -30521,35 +30565,25 @@ var usePositionStyle = function usePositionStyle(config) {
30521
30565
  if (_v === 'top') {
30522
30566
  style.top = rect.top - containerRect.top + containerScroll.top - (offset ? offset[1] : 0);
30523
30567
  style.transform = '';
30524
- arrayStyle.top = "8px";
30525
30568
  } else if (_v === 'bottom') {
30526
30569
  style.top = rect.bottom - containerRect.top + containerScroll.top + (offset ? offset[1] : 0);
30527
- arrayStyle.bottom = "8px";
30528
30570
  style.transform = 'translateY(-100%)';
30529
30571
  } else {
30530
30572
  // 居中对齐
30531
30573
  style.top = rect.top - containerRect.top + containerScroll.top + rect.height / 2;
30532
- if (targetRect) {
30533
- arrayStyle.top = "".concat(targetRect.height / 2 - 5.9 / 2, "px");
30534
- }
30535
30574
  style.transform = 'translateY(-50%)';
30536
30575
  }
30537
30576
  if (_h === 'right') {
30538
30577
  style.left = rect.right - containerRect.left + containerScroll.left + popupGap;
30539
- arrayStyle.left = '0px';
30540
- arrayStyle.right = 'auto';
30541
30578
  } else {
30542
30579
  style.right = containerRect.right - rect.left;
30543
- arrayStyle.right = '0px';
30544
- arrayStyle.left = 'auto';
30545
30580
  }
30546
30581
  } else if (position === 'cover') {
30547
30582
  style.top = rect.top - containerRect.top + containerScroll.top;
30548
30583
  style.left = rect.left - containerRect.left + containerScroll.left;
30549
30584
  }
30550
30585
  return {
30551
- style: style,
30552
- arrayStyle: arrayStyle
30586
+ style: style
30553
30587
  };
30554
30588
  };
30555
30589
  var getAbsoluteStyle = function getAbsoluteStyle(position) {
@@ -30569,8 +30603,7 @@ var usePositionStyle = function usePositionStyle(config) {
30569
30603
  }
30570
30604
  }
30571
30605
  var _getAbsolutePositionS = getAbsolutePositionStyle(rect, position),
30572
- style = _getAbsolutePositionS.style,
30573
- arrayStyle = _getAbsolutePositionS.arrayStyle;
30606
+ style = _getAbsolutePositionS.style;
30574
30607
  var currentCSSZoom = getCurrentCSSZoom();
30575
30608
  if (currentCSSZoom && currentCSSZoom !== 1) {
30576
30609
  if (style.left && typeof style.left === 'number') {
@@ -30587,13 +30620,11 @@ var usePositionStyle = function usePositionStyle(config) {
30587
30620
  }
30588
30621
  }
30589
30622
  return {
30590
- style: style,
30591
- arrayStyle: arrayStyle
30623
+ style: style
30592
30624
  };
30593
30625
  };
30594
30626
  var getStyle = function getStyle() {
30595
30627
  var newStyle = {};
30596
- var newArrayStyle = {};
30597
30628
  var _ref2 = config || {},
30598
30629
  position = _ref2.position,
30599
30630
  absolute = _ref2.absolute;
@@ -30617,10 +30648,8 @@ var usePositionStyle = function usePositionStyle(config) {
30617
30648
  });
30618
30649
  } else {
30619
30650
  var _ref3 = getAbsoluteStyle(realPosition),
30620
- nextStyle = _ref3.style,
30621
- nextArrayStyle = _ref3.arrayStyle;
30651
+ nextStyle = _ref3.style;
30622
30652
  newStyle = nextStyle;
30623
- newArrayStyle = nextArrayStyle;
30624
30653
  }
30625
30654
  // for animation
30626
30655
  if (realPosition.indexOf('top') === 0) {
@@ -30629,17 +30658,14 @@ var usePositionStyle = function usePositionStyle(config) {
30629
30658
  newStyle.transformOrigin = 'center top';
30630
30659
  }
30631
30660
  return {
30632
- newStyle: newStyle,
30633
- newArrayStyle: newArrayStyle
30661
+ newStyle: newStyle
30634
30662
  };
30635
30663
  };
30636
30664
  var updateStyle = use_persist_fn(function () {
30637
30665
  var _getStyle = getStyle(),
30638
- newStyle = _getStyle.newStyle,
30639
- newArrayStyle = _getStyle.newArrayStyle;
30666
+ newStyle = _getStyle.newStyle;
30640
30667
  if (newStyle && !shallow_equal(style, newStyle)) {
30641
30668
  setStyle(newStyle);
30642
- setArrayStyle(newArrayStyle || {});
30643
30669
  }
30644
30670
 
30645
30671
  // 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
@@ -30647,8 +30673,7 @@ var usePositionStyle = function usePositionStyle(config) {
30647
30673
  });
30648
30674
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition]);
30649
30675
  return {
30650
- style: style,
30651
- arrayStyle: arrayStyle
30676
+ style: style
30652
30677
  };
30653
30678
  };
30654
30679
  /* harmony default export */ var use_position_style = ((/* unused pure expression or super */ null && (usePositionStyle)));
@@ -31298,7 +31323,6 @@ var AbsoluteList = function AbsoluteList(props) {
31298
31323
  _props$zIndex = props.zIndex,
31299
31324
  zIndex = _props$zIndex === void 0 ? 1051 : _props$zIndex,
31300
31325
  focus = props.focus,
31301
- arrowRef = props.arrowRef,
31302
31326
  popupElRef = props.popupElRef,
31303
31327
  updateKey = props.updateKey,
31304
31328
  popupGap = props.popupGap,
@@ -31348,19 +31372,10 @@ var AbsoluteList = function AbsoluteList(props) {
31348
31372
  adjust: adjust,
31349
31373
  offset: offset
31350
31374
  }),
31351
- style = _usePositionStyle.style,
31352
- arrayStyle = _usePositionStyle.arrayStyle;
31375
+ style = _usePositionStyle.style;
31353
31376
  var childStyle = children.props.style;
31354
31377
  var newStyle = objectSpread2_default()(objectSpread2_default()({}, style), childStyle);
31355
31378
  if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(children) === false) return null;
31356
- if (arrowRef && arrayStyle && Object.keys(arrayStyle).length > 0) {
31357
- Object.keys(arrayStyle).forEach(function (key) {
31358
- if (arrowRef.current) {
31359
- // @ts-ignore
31360
- arrowRef.current.style[key] = arrayStyle[key];
31361
- }
31362
- });
31363
- }
31364
31379
  var styledChild = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
31365
31380
  style: newStyle
31366
31381
  });
@@ -33485,7 +33500,7 @@ var Card = function Card(props) {
33485
33500
  collapsed: realCollapsed,
33486
33501
  collapsible: collapsible,
33487
33502
  onCollapse: handleCollapsed,
33488
- handleDragMouseDown: moveInfo.handleMouseDown
33503
+ handleDragMouseDown: props.moveable ? moveInfo.handleMouseDown : undefined
33489
33504
  };
33490
33505
  }, [realCollapsed, collapsible]);
33491
33506
  var alwaysShowShadow = props.shadow && props.shadow !== 'hover';
@@ -35911,7 +35926,6 @@ var Item = function Item(props) {
35911
35926
  });
35912
35927
  var renderChildren = function renderChildren(content) {
35913
35928
  if (!props.placeholder) return content;
35914
- if (!container) return content;
35915
35929
  return /*#__PURE__*/(0,jsx_runtime.jsx)(lazyload, {
35916
35930
  container: container,
35917
35931
  placeholder: props.placeholder,
@@ -50010,7 +50024,7 @@ var UseFormItem = function UseFormItem() {
50010
50024
  var tooltip_devUseWarning = devUseWarning;
50011
50025
  var defaultDelay = 0;
50012
50026
  var Tooltip = function Tooltip(props) {
50013
- var _jssStyle$tooltip, _config$tooltip$persi, _config$tooltip;
50027
+ var _jssStyle$tooltip, _config$tooltip;
50014
50028
  var _props$trigger = props.trigger,
50015
50029
  trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
50016
50030
  priorityDirection = props.priorityDirection,
@@ -50030,7 +50044,7 @@ var Tooltip = function Tooltip(props) {
50030
50044
  popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
50031
50045
  var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
50032
50046
  var config = useConfig();
50033
- var persistent = (_config$tooltip$persi = (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent) !== null && _config$tooltip$persi !== void 0 ? _config$tooltip$persi : persistentProp;
50047
+ var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
50034
50048
  var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
50035
50049
  var delay = props.delay || props.mouseEnterDelay || defaultDelay;
50036
50050
  var _usePopup = use_popup({
@@ -50046,7 +50060,6 @@ var Tooltip = function Tooltip(props) {
50046
50060
  getTargetProps = _usePopup.getTargetProps,
50047
50061
  targetRef = _usePopup.targetRef,
50048
50062
  popupRef = _usePopup.popupRef,
50049
- arrowRef = _usePopup.arrowRef,
50050
50063
  closePop = _usePopup.closePop;
50051
50064
  var events = getTargetProps();
50052
50065
  var bindEvents = function bindEvents() {
@@ -50107,7 +50120,6 @@ var Tooltip = function Tooltip(props) {
50107
50120
  popupGap: 0,
50108
50121
  zIndex: zIndex,
50109
50122
  adjust: popsitionProps === 'auto',
50110
- arrowRef: arrowRef,
50111
50123
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
50112
50124
  className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.rootClass, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen)),
50113
50125
  style: {
@@ -50121,7 +50133,6 @@ var Tooltip = function Tooltip(props) {
50121
50133
  onMouseLeave: events.onMouseLeave,
50122
50134
  dir: config.direction,
50123
50135
  children: [showArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
50124
- ref: arrowRef,
50125
50136
  className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
50126
50137
  }, getDataAttribute({
50127
50138
  role: 'arrow'
@@ -52316,7 +52327,7 @@ var useNumberFormat = function useNumberFormat(props) {
52316
52327
  var onInnerChange = use_persist_fn(function (val) {
52317
52328
  setInternalInputValue(getStringValue(val));
52318
52329
  if (typeof val === 'string') {
52319
- if (val.endsWith('.')) return;
52330
+ if (val.endsWith('.') || val.includes('.') && val.endsWith('0')) return;
52320
52331
  var num = parseFloat(val);
52321
52332
  if (val === '') {
52322
52333
  // 如果允许空值,则返回 null,否则返回 undefined
@@ -69685,7 +69696,7 @@ var upload_interface = __webpack_require__(8821);
69685
69696
 
69686
69697
 
69687
69698
  /* harmony default export */ var src_0 = ({
69688
- version: '3.6.1-beta.6'
69699
+ version: '3.6.1'
69689
69700
  });
69690
69701
  }();
69691
69702
  /******/ return __webpack_exports__;