shineout 3.5.0-beta.9 → 3.5.0

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
@@ -6807,6 +6807,11 @@ var treeArrow = ['M18.2209 9.72141L12.6344 15.2952C12.2441 15.6847 11.6121 15.68
6807
6807
  var treePlus = ['M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM12 7C12.5128 7 12.9355 7.38604 12.9933 7.88338L13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13H13V16C13 16.5523 12.5523 17 12 17C11.4872 17 11.0645 16.614 11.0067 16.1166L11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11H11V8C11 7.44772 11.4477 7 12 7Z'];
6808
6808
  var treeMinus = ['M22 4.5C22 3.11929 20.8807 2 19.5 2H4.5C3.11929 2 2 3.11929 2 4.5V19.5C2 20.8807 3.11929 22 4.5 22H19.5C20.8807 22 22 20.8807 22 19.5V4.5ZM4.5 4H19.5C19.7761 4 20 4.22386 20 4.5V19.5C20 19.7761 19.7761 20 19.5 20H4.5C4.22386 20 4 19.7761 4 19.5V4.5C4 4.22386 4.22386 4 4.5 4ZM8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z'];
6809
6809
  var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
6810
+ var pcHelpCircleOutline = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6811
+ fillRule: "evenodd",
6812
+ clipRule: "evenodd",
6813
+ d: "M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 5.92487 5.92682 1 12.002 1ZM12.002 3C7.03139 3 3.00195 7.02944 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02944 16.9725 3 12.002 3ZM12.002 16.0263C12.7225 16.0263 13.3066 16.6105 13.3066 17.331C13.3066 18.0516 12.7225 18.6357 12.002 18.6357C11.2814 18.6357 10.6973 18.0516 10.6973 17.331C10.6973 16.6105 11.2814 16.0263 12.002 16.0263ZM12.002 5.36428C14.0358 5.36428 15.6895 7.02546 15.6895 9.06758C15.6895 9.99304 15.2656 10.622 14.1552 11.7338C14.1184 11.7707 14.1184 11.7707 14.0815 11.8076C13.2372 12.65 12.9395 13.0376 12.9395 13.3995V14.5621C12.9395 15.0797 12.5195 15.5003 12.002 15.5003C11.4844 15.5003 11.0644 15.0803 11.0644 14.5628V13.4002C11.0644 12.3785 11.5209 11.715 12.7559 10.4811C12.783 10.454 12.783 10.454 12.81 10.4269L12.8599 10.3769L12.9277 10.3087C12.9406 10.2956 12.9562 10.2798 12.9769 10.2589C13.5549 9.67191 13.8144 9.31374 13.8144 9.06758C13.8144 8.05926 13.0006 7.23928 12.002 7.23928C10.9828 7.23928 10.1895 8.02064 10.1895 9.02083C10.1895 9.53842 9.76954 9.95831 9.25195 9.95831C8.73437 9.95831 8.31444 9.53839 8.31444 9.02083C8.31444 7.00396 9.96896 5.36428 12.002 5.36428Z"
6814
+ }, 0)];
6810
6815
  var pcInfoCircleFill = ['M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8ZM12 19C12.5523 19 13 18.5523 13 18V10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V18C11 18.5523 11.4477 19 12 19Z'];
6811
6816
  var search = ['M11 2C15.9706 2 20 6.02944 20 11C20 13.1248 19.2637 15.0776 18.0323 16.6172L21.1213 19.7071C21.5118 20.0976 21.5118 20.7308 21.1213 21.1213C20.7308 21.5118 20.0976 21.5118 19.7071 21.1213L16.6172 18.0323C15.0776 19.2637 13.1248 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2ZM11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4Z'];
6812
6817
  var icons_link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.66545 19.2222 1.61512 16.8053 3.02446 15.2347L3.17546 15.0754L12.6109 3.70711C14.7588 1.55923 18.2412 1.55923 20.3891 3.70711C22.4773 5.79532 22.5353 9.14496 20.5631 11.3032L20.3891 11.4853L12.3679 21.4393C11.9773 21.8299 11.3442 21.8299 10.9536 21.4394C10.5932 21.0789 10.5654 20.5116 10.8705 20.1193L10.9536 20.0251L18.9749 10.0711C20.3417 8.70423 20.3417 6.48814 18.9749 5.12132C17.6569 3.8033 15.5492 3.75623 14.1747 4.9801L14.0251 5.12132L4.58968 16.4896C3.80864 17.2706 3.80864 18.537 4.58966 19.318C5.32963 20.058 6.5051 20.0969 7.29088 19.4348L7.41809 19.318L16.8535 7.94978C17.0488 7.7545 17.0488 7.43787 16.8536 7.24262C16.68 7.06904 16.4106 7.04975 16.2157 7.18476L16.1464 7.24261L8.12521 17.1967C7.73468 17.5873 7.10152 17.5873 6.71099 17.1967C6.35051 16.8362 6.32277 16.269 6.6278 15.8767L6.71099 15.7825L14.7322 5.8284C15.7085 4.85208 17.2915 4.85208 18.2678 5.82843C19.2016 6.7623 19.2422 8.25112 18.3896 9.23328L18.2678 9.36397L8.83231 20.7322Z'];
@@ -6831,6 +6836,7 @@ var Icons = {
6831
6836
  ArrowDown: icon(arrowDown),
6832
6837
  PcArrowFillDown: icon(caretFill),
6833
6838
  PcHelpCircleFill: icon(pcHelpCircleFill),
6839
+ PcHelpCircleOutline: icon(pcHelpCircleOutline),
6834
6840
  PcInfoCircleFill: icon(pcInfoCircleFill),
6835
6841
  PcCloseCircleFill: icon(danger),
6836
6842
  PcWarningCircleFill: icon(pcAttentionCircleFill),
@@ -6870,6 +6876,9 @@ var config = {
6870
6876
  Error: icons.PcWarningCircleFill,
6871
6877
  Confirm: icons.PcHelpCircleFill
6872
6878
  },
6879
+ form: {
6880
+ Tooltip: icons.PcHelpCircleOutline
6881
+ },
6873
6882
  breadcrumb: {
6874
6883
  DropdownArrow: icons.ArrowDown
6875
6884
  },
@@ -11993,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
11993
12002
  };
11994
12003
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11995
12004
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11996
- /* harmony default export */ var version = ('3.5.0-beta.9');
12005
+ /* harmony default export */ var version = ('3.5.0');
11997
12006
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11998
12007
 
11999
12008
 
@@ -13541,6 +13550,9 @@ var emptyTokens = {
13541
13550
  var formTokens = {
13542
13551
  formItemFontSize: 'Font-14',
13543
13552
  formItemFontColor: 'Neutral-text-5',
13553
+ formItemTooltipIconColor: 'Neutral-text-4',
13554
+ formItemTooltipIconFontSize: 'Font-14',
13555
+ formItemTooltipIconMarginXStart: 'Spacing-4',
13544
13556
  formItemMarginYEnd: 'Spacing-12',
13545
13557
  formItemMarginXEnd: 'Spacing-16',
13546
13558
  formItemLabelWidth: '140px',
@@ -18918,6 +18930,18 @@ var formItemStyle = {
18918
18930
  display: 'inline-block'
18919
18931
  }
18920
18932
  },
18933
+ labelTooltip: {
18934
+ display: 'inline-block',
18935
+ verticalAlign: 'middle',
18936
+ cursor: 'help',
18937
+ color: src.formItemTooltipIconColor,
18938
+ width: src.formItemTooltipIconFontSize,
18939
+ fontSize: src.formItemTooltipIconFontSize,
18940
+ marginLeft: src.formItemTooltipIconMarginXStart,
18941
+ '& svg': {
18942
+ width: '100%'
18943
+ }
18944
+ },
18921
18945
  labelLeft: {
18922
18946
  textAlign: 'start'
18923
18947
  },
@@ -31802,9 +31826,12 @@ var spin_Spin = function Spin() {
31802
31826
  tipProps = props.tip,
31803
31827
  tipClassName = props.tipClassName,
31804
31828
  colorProps = props.color,
31805
- modeProps = props.mode;
31829
+ modeProps = props.mode,
31830
+ _props$ignoreConfig = props.ignoreConfig,
31831
+ ignoreConfig = _props$ignoreConfig === void 0 ? false : _props$ignoreConfig;
31806
31832
  var config = useConfig();
31807
31833
  var getSpinName = function getSpinName() {
31834
+ if (ignoreConfig) return props.name;
31808
31835
  var spin = config.spin;
31809
31836
  if (!spin) return;
31810
31837
  if (typeof spin === 'string') {
@@ -31817,18 +31844,21 @@ var spin_Spin = function Spin() {
31817
31844
  return;
31818
31845
  };
31819
31846
  var getSpinTip = function getSpinTip() {
31847
+ if (ignoreConfig) return props.tip;
31820
31848
  var spin = config.spin;
31821
31849
  if (!spin || typeof_default()(spin) !== 'object') return;
31822
31850
  var tip = spin.tip;
31823
31851
  return tip;
31824
31852
  };
31825
31853
  var getSpinColor = function getSpinColor() {
31854
+ if (ignoreConfig) return props.color;
31826
31855
  var spin = config.spin;
31827
31856
  if (!spin || typeof_default()(spin) !== 'object') return;
31828
31857
  var color = spin.color;
31829
31858
  return color;
31830
31859
  };
31831
31860
  var getSpinMode = function getSpinMode() {
31861
+ if (ignoreConfig) return props.mode;
31832
31862
  var spin = config.spin;
31833
31863
  if (!spin || typeof_default()(spin) !== 'object') return;
31834
31864
  var mode = spin.mode;
@@ -31974,7 +32004,8 @@ var Button = function Button(props) {
31974
32004
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
31975
32005
  size: getSpinSize(),
31976
32006
  jssStyle: jssStyle,
31977
- name: "ring"
32007
+ name: "ring",
32008
+ ignoreConfig: true
31978
32009
  })
31979
32010
  });
31980
32011
  if (renderLoading) {
@@ -37496,7 +37527,9 @@ var CascaderNode = function CascaderNode(props) {
37496
37527
  },
37497
37528
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
37498
37529
  jssStyle: jssStyle,
37499
- size: 10
37530
+ size: 10,
37531
+ name: "ring",
37532
+ ignoreConfig: true
37500
37533
  })
37501
37534
  });
37502
37535
  }
@@ -38578,6 +38611,14 @@ var result_Result = function Result(props) {
38578
38611
  var empty = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
38579
38612
  return isEmptyResult();
38580
38613
  }, [props.value]);
38614
+ var basePlaceholder = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
38615
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
38616
+ className: classnames_default()(styles.placeholder, styles.ellipsis),
38617
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
38618
+ children: placeholder
38619
+ })
38620
+ });
38621
+ }, [placeholder]);
38581
38622
  var isCompressedBound = function isCompressedBound() {
38582
38623
  return compressedBound && result_isNumber(compressedBound) && compressedBound >= 1;
38583
38624
  };
@@ -38595,7 +38636,9 @@ var result_Result = function Result(props) {
38595
38636
  if (!multiple && valueProp && valueProp !== 0) {
38596
38637
  var _result = getDataByValues(value);
38597
38638
  _placeholder = renderResultContent(_result[0]);
38598
- if (_placeholder === undefined) _placeholder = placeholder;
38639
+ if (_placeholder === undefined) {
38640
+ return basePlaceholder;
38641
+ }
38599
38642
  }
38600
38643
  return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
38601
38644
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_input, {
@@ -38680,12 +38723,7 @@ var result_Result = function Result(props) {
38680
38723
  return renderInput();
38681
38724
  }
38682
38725
  if (!placeholder) return renderNbsp();
38683
- return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
38684
- className: classnames_default()(styles.placeholder, styles.ellipsis),
38685
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
38686
- children: placeholder
38687
- })
38688
- });
38726
+ return basePlaceholder;
38689
38727
  };
38690
38728
  var renderSingleResult = function renderSingleResult() {
38691
38729
  if (isEmptyResult()) return renderNbsp();
@@ -38721,7 +38759,7 @@ var result_Result = function Result(props) {
38721
38759
  results: result,
38722
38760
  datas: datas
38723
38761
  };
38724
- }, [props.value]);
38762
+ }, [props.value, props.data]);
38725
38763
  var result = renderMultipleResult.results;
38726
38764
  var moreNumber = getCompressedBound();
38727
38765
  var renderMultipleResultMore = /*#__PURE__*/(0,jsx_runtime.jsx)(result_more, {
@@ -47722,9 +47760,120 @@ var UseFormItem = function UseFormItem() {
47722
47760
  };
47723
47761
  };
47724
47762
  /* harmony default export */ var use_form_item = (UseFormItem);
47763
+ ;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
47764
+
47765
+
47766
+
47767
+
47768
+
47769
+
47770
+
47771
+
47772
+
47773
+ var defaultDelay = 0;
47774
+ var Tooltip = function Tooltip(props) {
47775
+ var _jssStyle$tooltip;
47776
+ var _props$trigger = props.trigger,
47777
+ trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
47778
+ priorityDirection = props.priorityDirection,
47779
+ children = props.children,
47780
+ tip = props.tip,
47781
+ disabledChild = props.disabledChild,
47782
+ jssStyle = props.jssStyle,
47783
+ className = props.className,
47784
+ style = props.style,
47785
+ zIndex = props.zIndex,
47786
+ _props$type = props.type,
47787
+ type = _props$type === void 0 ? 'default' : _props$type,
47788
+ _props$position = props.position,
47789
+ popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
47790
+ var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
47791
+ var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
47792
+ var config = useConfig();
47793
+ var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
47794
+ var delay = props.delay || props.mouseEnterDelay || defaultDelay;
47795
+ var _usePopup = use_popup({
47796
+ position: popsitionProps,
47797
+ trigger: trigger,
47798
+ autoMode: 'popover',
47799
+ priorityDirection: priorityDirection,
47800
+ mouseEnterDelay: delay,
47801
+ targetEvents: disabledChild ? {} : childrenProps
47802
+ }),
47803
+ open = _usePopup.open,
47804
+ position = _usePopup.position,
47805
+ getTargetProps = _usePopup.getTargetProps,
47806
+ targetRef = _usePopup.targetRef,
47807
+ popupRef = _usePopup.popupRef,
47808
+ arrowRef = _usePopup.arrowRef;
47809
+ if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
47810
+ console.error(new Error('Tooltip children expect a single ReactElement.'));
47811
+ return null;
47812
+ }
47813
+ if (!tip) return children;
47814
+ var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
47815
+ className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
47816
+ style: {
47817
+ cursor: 'not-allowed'
47818
+ },
47819
+ children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
47820
+ style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
47821
+ pointerEvents: 'none'
47822
+ })
47823
+ })
47824
+ }) : children;
47825
+ var events = getTargetProps();
47826
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
47827
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
47828
+ ref: function ref(el) {
47829
+ if (!el) return;
47830
+ var targetEl = el.nextElementSibling;
47831
+ if (!targetEl) return;
47832
+ if (targetRef.current === targetEl) return;
47833
+ targetRef.current = targetEl;
47834
+ }
47835
+ }, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
47836
+ focus: open,
47837
+ parentElRef: targetRef,
47838
+ popupElRef: popupRef,
47839
+ arrowRef: arrowRef,
47840
+ absolute: true,
47841
+ adjust: popsitionProps === 'auto',
47842
+ position: position,
47843
+ fixedWidth: false,
47844
+ popupGap: 0
47845
+ // arrowStyleRef={arrowStyleRef}
47846
+ ,
47847
+ zIndex: zIndex,
47848
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
47849
+ className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
47850
+ }, getDataAttribute({
47851
+ type: type,
47852
+ position: position
47853
+ })), {}, {
47854
+ ref: popupRef,
47855
+ onMouseLeave: events.onMouseLeave,
47856
+ dir: config.direction,
47857
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
47858
+ ref: arrowRef,
47859
+ style: arrowStyleRef.current,
47860
+ className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
47861
+ }, getDataAttribute({
47862
+ role: 'arrow'
47863
+ }))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
47864
+ style: style,
47865
+ className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
47866
+ children: tip
47867
+ })]
47868
+ }))
47869
+ })]
47870
+ });
47871
+ };
47872
+ /* harmony default export */ var src_tooltip_tooltip = (Tooltip);
47725
47873
  ;// CONCATENATED MODULE: ../base/src/form/form-item.tsx
47726
47874
 
47727
47875
 
47876
+
47728
47877
  var form_item_excluded = ["children", "jssStyle", "className", "style", "label", "tip", "required"];
47729
47878
 
47730
47879
 
@@ -47732,6 +47881,10 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
47732
47881
 
47733
47882
 
47734
47883
 
47884
+
47885
+
47886
+
47887
+
47735
47888
  /* harmony default export */ var form_form_item = (function (props) {
47736
47889
  var _jssStyle$formItem;
47737
47890
  var children = props.children,
@@ -47756,6 +47909,36 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
47756
47909
  labelVerticalAlign = _labelConfig$rest.labelVerticalAlign,
47757
47910
  inline = _labelConfig$rest.inline,
47758
47911
  keepErrorHeight = _labelConfig$rest.keepErrorHeight;
47912
+ var renderLabel = function renderLabel() {
47913
+ if (label === undefined || label === null) return null;
47914
+ var $tooltip;
47915
+ if (typeof_default()(label) === 'object' && 'tooltip' in label && label.tooltip) {
47916
+ var _label$tooltip;
47917
+ var tooltipProps = objectSpread2_default()({
47918
+ jssStyle: {
47919
+ tooltip: useTooltipStyle
47920
+ }
47921
+ }, typeof_default()(label.tooltip) === 'object' && 'tip' in label.tooltip ? objectSpread2_default()(objectSpread2_default()({}, label.tooltip), {}, {
47922
+ tip: label.tooltip.tip,
47923
+ position: ((_label$tooltip = label.tooltip) === null || _label$tooltip === void 0 ? void 0 : _label$tooltip.position) || 'top'
47924
+ }) : {
47925
+ tip: label.tooltip,
47926
+ position: 'top'
47927
+ });
47928
+ $tooltip = /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, objectSpread2_default()(objectSpread2_default()({}, tooltipProps), {}, {
47929
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
47930
+ className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.labelTooltip,
47931
+ children: tooltipProps.icon || icons_config.form.Tooltip
47932
+ })
47933
+ }));
47934
+ }
47935
+ if (typeof_default()(label) === 'object' && 'tooltip' in label) {
47936
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
47937
+ children: [label.content, $tooltip]
47938
+ });
47939
+ }
47940
+ return label;
47941
+ };
47759
47942
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
47760
47943
  className: classnames_default()(className, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapper, labelAlign === 'top' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelTop), labelAlign !== 'top' && labelVerticalAlign === 'middle' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalMiddle), labelAlign !== 'top' && labelVerticalAlign === 'bottom' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalBottom), inline && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperInline), keepErrorHeight && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperKeepHeight), required && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperRequired), (showError || tip) && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperTip))
47761
47944
  }, attributes), {}, {
@@ -47765,7 +47948,7 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
47765
47948
  style: labelAlign !== 'top' || inline ? {
47766
47949
  width: labelWidth
47767
47950
  } : undefined,
47768
- children: label
47951
+ children: renderLabel()
47769
47952
  }) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
47770
47953
  className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.control
47771
47954
  }, getDataAttribute({
@@ -49385,7 +49568,9 @@ var Image = function Image(props) {
49385
49568
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
49386
49569
  jssStyle: jssStyle,
49387
49570
  color: "#B3B7C1",
49388
- size: 16
49571
+ size: 16,
49572
+ name: "ring",
49573
+ ignoreConfig: true
49389
49574
  })
49390
49575
  });
49391
49576
  };
@@ -50763,7 +50948,9 @@ var NodeContent = function NodeContent(props) {
50763
50948
  dir: config.direction,
50764
50949
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
50765
50950
  size: 12,
50766
- jssStyle: jssStyle
50951
+ jssStyle: jssStyle,
50952
+ ignoreConfig: true,
50953
+ name: "ring"
50767
50954
  })
50768
50955
  });
50769
50956
  };
@@ -57709,35 +57896,47 @@ var useTableSort = function useTableSort(props) {
57709
57896
 
57710
57897
 
57711
57898
 
57712
- var getExpandData = function getExpandData(data, keys, keygen, treeColumnsName) {
57899
+ var getExpandData = function getExpandData(_treeData, keys, keygen, treeColumnsName) {
57713
57900
  var expandKeys = keys;
57714
57901
  var expandSet = new Set(expandKeys);
57715
- var expandLevel = new Map();
57902
+ var unmatchExpandKeys = [];
57903
+ var treeExpandLevel = new Map();
57716
57904
  if (expandSet.size === 0 || !treeColumnsName) {
57717
- return [data, expandLevel];
57905
+ return {
57906
+ treeData: _treeData,
57907
+ treeExpandLevel: treeExpandLevel,
57908
+ unmatchExpandKeys: unmatchExpandKeys
57909
+ };
57718
57910
  }
57719
- var newData = toConsumableArray_default()(data || []);
57911
+ var treeData = toConsumableArray_default()(_treeData || []);
57720
57912
  var _loop = function _loop() {
57721
57913
  if (expandSet.size === 0) return 1; // break
57722
- var item = newData[i];
57914
+ var item = treeData[i];
57723
57915
  var key = getKey(keygen, item, i);
57724
- var parentLevel = expandLevel.get(key) || 0;
57916
+ var parentLevel = treeExpandLevel.get(key) || 0;
57725
57917
  var children = is_isObject(item) && item[treeColumnsName];
57726
- if (expandSet.has(key) && children) {
57727
- children.forEach(function (child) {
57728
- expandLevel.set(getKey(keygen, child), parentLevel + 1);
57729
- });
57730
- newData.splice.apply(newData, [i + 1, 0].concat(toConsumableArray_default()(children)));
57731
- expandSet.delete(key);
57918
+ if (expandSet.has(key)) {
57919
+ if (children && children.length > 0) {
57920
+ children.forEach(function (child) {
57921
+ treeExpandLevel.set(getKey(keygen, child), parentLevel + 1);
57922
+ });
57923
+ treeData.splice.apply(treeData, [i + 1, 0].concat(toConsumableArray_default()(children)));
57924
+ expandSet.delete(key);
57925
+ } else {
57926
+ unmatchExpandKeys.push(key);
57927
+ }
57732
57928
  }
57733
57929
  };
57734
- for (var i = 0; i < newData.length; i++) {
57930
+ for (var i = 0; i < treeData.length; i++) {
57735
57931
  if (_loop()) break;
57736
57932
  }
57737
- return [newData, expandLevel];
57933
+ return {
57934
+ treeData: treeData,
57935
+ treeExpandLevel: treeExpandLevel,
57936
+ unmatchExpandKeys: unmatchExpandKeys
57937
+ };
57738
57938
  };
57739
57939
  var useTableTree = function useTableTree(props) {
57740
- var _props$data$filter;
57741
57940
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultTreeExpandKeys || []),
57742
57941
  _useState2 = slicedToArray_default()(_useState, 2),
57743
57942
  expandKeysState = _useState2[0],
@@ -57778,13 +57977,27 @@ var useTableTree = function useTableTree(props) {
57778
57977
  var _useMemo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
57779
57978
  return getExpandData(props.data, expandKeys, props.keygen, props.treeColumnsName);
57780
57979
  }, [props.data, expandKeys, props.treeColumnsName]),
57781
- _useMemo2 = slicedToArray_default()(_useMemo, 2),
57782
- treeData = _useMemo2[0],
57783
- treeExpandLevel = _useMemo2[1];
57784
- var isEmptyTree = ((_props$data$filter = props.data.filter(function (item) {
57785
- var _item;
57786
- return (_item = item[props.treeColumnsName]) === null || _item === void 0 ? void 0 : _item.length;
57787
- })) === null || _props$data$filter === void 0 ? void 0 : _props$data$filter.length) === 0;
57980
+ treeData = _useMemo.treeData,
57981
+ treeExpandLevel = _useMemo.treeExpandLevel,
57982
+ unmatchExpandKeys = _useMemo.unmatchExpandKeys;
57983
+ var isEmptyTree = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
57984
+ var _props$data$filter;
57985
+ return ((_props$data$filter = props.data.filter(function (item) {
57986
+ var _item;
57987
+ return (_item = item[props.treeColumnsName]) === null || _item === void 0 ? void 0 : _item.length;
57988
+ })) === null || _props$data$filter === void 0 ? void 0 : _props$data$filter.length) === 0;
57989
+ }, [props.data, props.treeColumnsName]);
57990
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
57991
+ if (!unmatchExpandKeys.length || !expandKeysState.length) {
57992
+ return;
57993
+ }
57994
+
57995
+ // 检查treeData中的每一项,对比expandKeysState,如果expandKeysState有但是children是空的,则需要修正expandKeysState
57996
+ var newExpandKeys = expandKeysState.filter(function (key) {
57997
+ return !unmatchExpandKeys.includes(key);
57998
+ });
57999
+ setExpandKeysState(newExpandKeys);
58000
+ }, [unmatchExpandKeys, expandKeysState]);
57788
58001
  return {
57789
58002
  data: treeData,
57790
58003
  treeExpandLevel: treeExpandLevel,
@@ -58550,6 +58763,7 @@ var thead_toNum = toNum;
58550
58763
  };
58551
58764
  var isCustomRender = props.renderSorter && typeof props.renderSorter === 'function';
58552
58765
  var renderedSortDirections = (_ref = (_column$sortDirection = column.sortDirections) !== null && _column$sortDirection !== void 0 ? _column$sortDirection : props.sortDirections) !== null && _ref !== void 0 ? _ref : ['asc', 'desc'];
58766
+ var onlyOneDirection = renderedSortDirections.length === 1;
58553
58767
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
58554
58768
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterContainer,
58555
58769
  dir: config.direction,
@@ -58567,12 +58781,18 @@ var thead_toNum = toNum;
58567
58781
  onClick: function onClick() {
58568
58782
  handleChange(currentOrder === 'asc' ? null : 'asc');
58569
58783
  },
58784
+ style: onlyOneDirection ? {
58785
+ marginBottom: 0
58786
+ } : {},
58570
58787
  children: icons_config.table.SortUp
58571
58788
  }), renderedSortDirections.includes('desc') && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
58572
58789
  className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterDesc, currentOrder === 'desc' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sorterActive)),
58573
58790
  onClick: function onClick() {
58574
58791
  handleChange(currentOrder === 'desc' ? null : 'desc');
58575
58792
  },
58793
+ style: onlyOneDirection ? {
58794
+ marginTop: 0
58795
+ } : {},
58576
58796
  children: icons_config.table.SortDown
58577
58797
  })]
58578
58798
  })
@@ -58989,7 +59209,7 @@ var Tr = function Tr(props) {
58989
59209
  return regeneratorRuntime_default()().wrap(function _callee$(_context) {
58990
59210
  while (1) switch (_context.prev = _context.next) {
58991
59211
  case 0:
58992
- if (!(showLoader && props.loader)) {
59212
+ if (!(showLoader && props.loader && typeof props.loader === 'function')) {
58993
59213
  _context.next = 11;
58994
59214
  break;
58995
59215
  }
@@ -59045,7 +59265,9 @@ var Tr = function Tr(props) {
59045
59265
  if (isExpandLoading) {
59046
59266
  $expandIcon = /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
59047
59267
  size: 12,
59048
- jssStyle: props.jssStyle
59268
+ jssStyle: props.jssStyle,
59269
+ name: "ring",
59270
+ ignoreConfig: true
59049
59271
  });
59050
59272
  }
59051
59273
  var $expandIconWrapper;
@@ -60981,116 +61203,6 @@ var BaseTextarea = function BaseTextarea(props) {
60981
61203
 
60982
61204
  src_textarea_textarea_0.displayName = 'ShineoutTextarea';
60983
61205
  /* harmony default export */ var src_textarea_0 = (src_textarea_textarea_0);
60984
- ;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
60985
-
60986
-
60987
-
60988
-
60989
-
60990
-
60991
-
60992
-
60993
-
60994
- var defaultDelay = 0;
60995
- var Tooltip = function Tooltip(props) {
60996
- var _jssStyle$tooltip;
60997
- var _props$trigger = props.trigger,
60998
- trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
60999
- priorityDirection = props.priorityDirection,
61000
- children = props.children,
61001
- tip = props.tip,
61002
- disabledChild = props.disabledChild,
61003
- jssStyle = props.jssStyle,
61004
- className = props.className,
61005
- style = props.style,
61006
- zIndex = props.zIndex,
61007
- _props$type = props.type,
61008
- type = _props$type === void 0 ? 'default' : _props$type,
61009
- _props$position = props.position,
61010
- popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
61011
- var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
61012
- var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
61013
- var config = useConfig();
61014
- var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
61015
- var delay = props.delay || props.mouseEnterDelay || defaultDelay;
61016
- var _usePopup = use_popup({
61017
- position: popsitionProps,
61018
- trigger: trigger,
61019
- autoMode: 'popover',
61020
- priorityDirection: priorityDirection,
61021
- mouseEnterDelay: delay,
61022
- targetEvents: disabledChild ? {} : childrenProps
61023
- }),
61024
- open = _usePopup.open,
61025
- position = _usePopup.position,
61026
- getTargetProps = _usePopup.getTargetProps,
61027
- targetRef = _usePopup.targetRef,
61028
- popupRef = _usePopup.popupRef,
61029
- arrowRef = _usePopup.arrowRef;
61030
- if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
61031
- console.error(new Error('Tooltip children expect a single ReactElement.'));
61032
- return null;
61033
- }
61034
- if (!tip) return children;
61035
- var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
61036
- className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
61037
- style: {
61038
- cursor: 'not-allowed'
61039
- },
61040
- children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
61041
- style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
61042
- pointerEvents: 'none'
61043
- })
61044
- })
61045
- }) : children;
61046
- var events = getTargetProps();
61047
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
61048
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
61049
- ref: function ref(el) {
61050
- if (!el) return;
61051
- var targetEl = el.nextElementSibling;
61052
- if (!targetEl) return;
61053
- if (targetRef.current === targetEl) return;
61054
- targetRef.current = targetEl;
61055
- }
61056
- }, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
61057
- focus: open,
61058
- parentElRef: targetRef,
61059
- popupElRef: popupRef,
61060
- arrowRef: arrowRef,
61061
- absolute: true,
61062
- adjust: popsitionProps === 'auto',
61063
- position: position,
61064
- fixedWidth: false,
61065
- popupGap: 0
61066
- // arrowStyleRef={arrowStyleRef}
61067
- ,
61068
- zIndex: zIndex,
61069
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
61070
- className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
61071
- }, getDataAttribute({
61072
- type: type,
61073
- position: position
61074
- })), {}, {
61075
- ref: popupRef,
61076
- onMouseLeave: events.onMouseLeave,
61077
- dir: config.direction,
61078
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
61079
- ref: arrowRef,
61080
- style: arrowStyleRef.current,
61081
- className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
61082
- }, getDataAttribute({
61083
- role: 'arrow'
61084
- }))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
61085
- style: style,
61086
- className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
61087
- children: tip
61088
- })]
61089
- }))
61090
- })]
61091
- });
61092
- };
61093
- /* harmony default export */ var src_tooltip_tooltip = (Tooltip);
61094
61206
  ;// CONCATENATED MODULE: ./src/tooltip/tooltip.tsx
61095
61207
 
61096
61208
 
@@ -61517,7 +61629,7 @@ var TransferList = function TransferList(props) {
61517
61629
  var listClass = classnames_default()(styles.list, listClassName);
61518
61630
  var getLineHeight = function getLineHeight() {
61519
61631
  if (lineHeightProp) {
61520
- console.log('lineHeightProp', lineHeightProp);
61632
+ // console.log('lineHeightProp', lineHeightProp);
61521
61633
  return lineHeightProp;
61522
61634
  }
61523
61635
  if (size === 'small') {
@@ -61659,6 +61771,8 @@ var TransferList = function TransferList(props) {
61659
61771
  jssStyle: jssStyle,
61660
61772
  loading: loading,
61661
61773
  size: 24,
61774
+ name: "ring",
61775
+ ignoreConfig: true,
61662
61776
  children: [onFilter && renderFilter(), renderList(), renderFooter()]
61663
61777
  })]
61664
61778
  });
@@ -63282,7 +63396,8 @@ var upload_result_Result = function Result(props) {
63282
63396
  children: [status === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
63283
63397
  jssStyle: props.jssStyle,
63284
63398
  size: 10,
63285
- name: 'ring'
63399
+ name: 'ring',
63400
+ ignoreConfig: true
63286
63401
  }), status === 2 && icons_config.upload.Success, status === 3 && icons_config.upload.Warning]
63287
63402
  }), status === 1 && props.process !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
63288
63403
  children: [Math.min(99, Math.floor(props.process || 0)), "%"]
@@ -63335,6 +63450,7 @@ var upload_result_Result = function Result(props) {
63335
63450
  size: 'null',
63336
63451
  jssStyle: props.jssStyle,
63337
63452
  name: 'ring',
63453
+ ignoreConfig: true,
63338
63454
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultLoading
63339
63455
  }), (status === 2 || status === -1) && src && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63340
63456
  className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
@@ -63782,7 +63898,9 @@ var UploadButton = function UploadButton(props) {
63782
63898
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
63783
63899
  jssStyle: props.jssStyle,
63784
63900
  size: 10,
63785
- color: color
63901
+ color: color,
63902
+ ignoreConfig: true,
63903
+ name: "ring"
63786
63904
  })
63787
63905
  }), typeof loading === 'string' ? loading : placeholder]
63788
63906
  });
@@ -66176,7 +66294,7 @@ var upload_interface = __webpack_require__(8821);
66176
66294
 
66177
66295
 
66178
66296
  /* harmony default export */ var src_0 = ({
66179
- version: '3.5.0-beta.9'
66297
+ version: '3.5.0'
66180
66298
  });
66181
66299
  }();
66182
66300
  /******/ return __webpack_exports__;