shineout 3.5.3 → 3.5.4-beta.10

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
@@ -12030,7 +12030,7 @@ var handleStyle = function handleStyle(style) {
12030
12030
  };
12031
12031
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12032
12032
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12033
- /* harmony default export */ var version = ('3.5.3');
12033
+ /* harmony default export */ var version = ('3.5.4-beta.10');
12034
12034
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12035
12035
 
12036
12036
 
@@ -21544,12 +21544,50 @@ var normalize_token = {
21544
21544
  };
21545
21545
  var lineHeightComputed = '20px';
21546
21546
  var lineHeightComputed2 = '10px';
21547
- var normalize_css = "*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\n\narticle,\naside,\ndialog,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block;\n}\n\nbody {\n margin: 0;\n color: ".concat(normalize_token.color, ";\n font-family: ").concat(normalize_token.fontFamily, ";\n font-size: ").concat(normalize_token.fontSize, ";\n line-height: ").concat(normalize_token.lineHeight, ";\n}\n\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\nh1 {\n margin: 0.67em 0;\n font-size: 2em;\n}\n\nfigcaption,\nfigure,\nmain {\n display: block;\n}\n\nfigure {\n margin: 1em 40px;\n}\n\nhr {\n overflow: visible;\n height: 0;\n box-sizing: content-box;\n}\n\npre {\n font-family: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 1em;\n}\n\na {\n background-color: transparent;\n color: ").concat(normalize_token.linkColor, ";\n cursor: pointer;\n outline: none;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n -webkit-text-decoration-skip: objects;\n transition: color 0.3s;\n}\n\na:active,\na:hover {\n color: ").concat(normalize_token.linkColor, ";\n outline: 0;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n}\na[disabled] {\n color: ").concat(normalize_token.linkDisabledColor, ";\n cursor: not-allowed;\n pointer-events: none;\n}\n\nabbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\nb,\nstrong {\n font-weight: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\ndfn {\n font-style: italic;\n}\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\naudio,\nvideo {\n display: inline-block;\n}\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\nimg {\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\nbutton:-moz-focusring,\n[type='button']:-moz-focusring,\n[type='reset']:-moz-focusring,\n[type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\nlegend {\n display: table;\n max-width: 100%;\n box-sizing: border-box;\n padding: 0;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n display: inline-block;\n vertical-align: baseline;\n}\n\ntextarea {\n overflow: auto;\n}\n\n[type='checkbox'],\n[type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n\n\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n\n\ndetails,\nmenu {\n display: block;\n}\n\n\nsummary {\n display: list-item;\n}\n\n\ncanvas {\n display: inline-block;\n}\n\n\ntemplate {\n display: none;\n}\n\n\n[hidden] {\n display: none;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n color: ").concat(normalize_token.headingsColor, ";\n font-family: ").concat(normalize_token.headingsFontFamily, ";\n font-weight: ").concat(normalize_token.headingsFontWeight, ";\n line-height: ").concat(normalize_token.headingsLineHeight, ";\n}\nh1 small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small,\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n color: ").concat(normalize_token.headingsSmallColor, ";\n font-weight: normal;\n line-height: 1;\n}\n\n\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: ").concat(lineHeightComputed, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nhi small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small {\n font-size: 65%;\n}\n\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: ").concat(lineHeightComputed2, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n font-size: 75%;\n}\n\np {\n margin: 0 0 ").concat(lineHeightComputed2, ";\n}");
21547
+ var normalizeStyle = "*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\n\narticle,\naside,\ndialog,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block;\n}\n\nbody {\n margin: 0;\n color: ".concat(normalize_token.color, ";\n font-family: ").concat(normalize_token.fontFamily, ";\n font-size: ").concat(normalize_token.fontSize, ";\n line-height: ").concat(normalize_token.lineHeight, ";\n}\n\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\nh1 {\n margin: 0.67em 0;\n font-size: 2em;\n}\n\nfigcaption,\nfigure,\nmain {\n display: block;\n}\n\nfigure {\n margin: 1em 40px;\n}\n\nhr {\n overflow: visible;\n height: 0;\n box-sizing: content-box;\n}\n\npre {\n font-family: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 1em;\n}\n\na {\n background-color: transparent;\n color: ").concat(normalize_token.linkColor, ";\n cursor: pointer;\n outline: none;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n -webkit-text-decoration-skip: objects;\n transition: color 0.3s;\n}\n\na:active,\na:hover {\n color: ").concat(normalize_token.linkColor, ";\n outline: 0;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n}\na[disabled] {\n color: ").concat(normalize_token.linkDisabledColor, ";\n cursor: not-allowed;\n pointer-events: none;\n}\n\nabbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\nb,\nstrong {\n font-weight: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\ndfn {\n font-style: italic;\n}\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\naudio,\nvideo {\n display: inline-block;\n}\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\nimg {\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\nbutton:-moz-focusring,\n[type='button']:-moz-focusring,\n[type='reset']:-moz-focusring,\n[type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\nlegend {\n display: table;\n max-width: 100%;\n box-sizing: border-box;\n padding: 0;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n display: inline-block;\n vertical-align: baseline;\n}\n\ntextarea {\n overflow: auto;\n}\n\n[type='checkbox'],\n[type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n\n\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n\n\ndetails,\nmenu {\n display: block;\n}\n\n\nsummary {\n display: list-item;\n}\n\n\ncanvas {\n display: inline-block;\n}\n\n\ntemplate {\n display: none;\n}\n\n\n[hidden] {\n display: none;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n color: ").concat(normalize_token.headingsColor, ";\n font-family: ").concat(normalize_token.headingsFontFamily, ";\n font-weight: ").concat(normalize_token.headingsFontWeight, ";\n line-height: ").concat(normalize_token.headingsLineHeight, ";\n}\nh1 small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small,\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n color: ").concat(normalize_token.headingsSmallColor, ";\n font-weight: normal;\n line-height: 1;\n}\n\n\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: ").concat(lineHeightComputed, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nhi small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small {\n font-size: 65%;\n}\n\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: ").concat(lineHeightComputed2, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n font-size: 75%;\n}\n\np {\n margin: 0 0 ").concat(lineHeightComputed2, ";\n}");
21548
+ function appendNormalizeStyle(styleString, id) {
21549
+ var style = document.createElement('style');
21550
+ style.id = id;
21551
+ style.innerHTML = styleString;
21552
+ document.head.appendChild(style);
21553
+ }
21554
+ var uniqueStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
21548
21555
  if (typeof window !== 'undefined') {
21549
- var normalize_link = document.createElement('style');
21550
- normalize_link.innerHTML = normalize_css;
21551
- document.head.appendChild(normalize_link);
21556
+ appendNormalizeStyle(normalizeStyle, uniqueStyleId);
21552
21557
  }
21558
+ var scopeNormalizeStyle = function scopeNormalizeStyle() {
21559
+ var csScopePrefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#app';
21560
+ var styleElement = document.getElementById(uniqueStyleId);
21561
+ // 移除styleElement
21562
+
21563
+ var styleSheet = styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet;
21564
+ var cssRules = styleSheet === null || styleSheet === void 0 ? void 0 : styleSheet.cssRules;
21565
+ // 遍历cssRules,给每一个selectorText添加前缀
21566
+ if (cssRules) {
21567
+ for (var i = 0; i < cssRules.length; i++) {
21568
+ var rule = cssRules[i];
21569
+ if (rule instanceof CSSStyleRule) {
21570
+ // 如果选择器包含了body或html,则替换,不是加前缀
21571
+ if (rule.selectorText.includes('body')) {
21572
+ rule.selectorText = rule.selectorText.replace('body', csScopePrefix);
21573
+ } else if (rule.selectorText.includes('html')) {
21574
+ rule.selectorText = rule.selectorText.replace('html', csScopePrefix);
21575
+ } else {
21576
+ var selectors = rule.selectorText.split(',');
21577
+ var newSelectors = selectors.map(function (selector) {
21578
+ return "".concat(csScopePrefix, " ").concat(selector);
21579
+ });
21580
+ rule.selectorText = newSelectors.join(',');
21581
+ }
21582
+ }
21583
+ }
21584
+ }
21585
+ var scopedStyleString = cssRules ? Array.from(cssRules).map(function (rule) {
21586
+ return rule.cssText;
21587
+ }).join('') : '';
21588
+ document.head.removeChild(styleElement);
21589
+ appendNormalizeStyle(scopedStyleString, uniqueStyleId);
21590
+ };
21553
21591
  token_setter({
21554
21592
  onlyExtra: true,
21555
21593
  tokenName: 'shineout-extra',
@@ -23889,20 +23927,20 @@ var stepsStyle = {
23889
23927
  transition: 'color ease 0.3s'
23890
23928
  },
23891
23929
  '&$arrow': {
23892
- '& $step': {
23930
+ '& $step:not($disabled)': {
23893
23931
  cursor: 'pointer'
23894
23932
  }
23895
23933
  },
23896
23934
  '&$default': {
23897
- '& $step:not($process)': {
23935
+ '& $step:not($process):not($disabled)': {
23898
23936
  cursor: 'pointer'
23899
23937
  },
23900
- '& $step$wait:hover': {
23938
+ '& $step$wait:not($disabled):hover': {
23901
23939
  '& $title,$description': {
23902
23940
  color: src.stepsWaitHoverFontColor
23903
23941
  }
23904
23942
  },
23905
- '& $step$finish:hover': {
23943
+ '& $step$finish:not($disabled):hover': {
23906
23944
  '& $title,$description': {
23907
23945
  color: src.stepsFinishHoverFontColor
23908
23946
  }
@@ -24144,7 +24182,14 @@ var stepsStyle = {
24144
24182
  marginRight: 0
24145
24183
  }
24146
24184
  },
24147
- disabled: {},
24185
+ disabled: {
24186
+ '&$step': {
24187
+ cursor: 'not-allowed'
24188
+ },
24189
+ '& $icon:not($process)': {
24190
+ cursor: 'not-allowed'
24191
+ }
24192
+ },
24148
24193
  horizontalLabel: {
24149
24194
  '&$step': {
24150
24195
  overflow: 'hidden'
@@ -38131,6 +38176,7 @@ var Result = function Result(props) {
38131
38176
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_Input, {
38132
38177
  onRef: function onRef(el) {
38133
38178
  _onRef.current.inputRef = el;
38179
+ _onRef.current.inputRefs[info.index] = el;
38134
38180
  context.inputRefs[info.index] = el;
38135
38181
  },
38136
38182
  disabled: dis && info.inputable,
@@ -42532,13 +42578,17 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42532
42578
  _useState8 = slicedToArray_default()(_useState7, 2),
42533
42579
  targetArr = _useState8[0],
42534
42580
  setTargetArr = _useState8[1];
42535
- var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
42581
+ var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
42582
+ _useState10 = slicedToArray_default()(_useState9, 2),
42583
+ inputArr = _useState10[0],
42584
+ setInputArr = _useState10[1];
42585
+ var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
42536
42586
  type: undefined,
42537
42587
  quick: undefined
42538
42588
  }),
42539
- _useState10 = slicedToArray_default()(_useState9, 2),
42540
- params = _useState10[0],
42541
- setParams = _useState10[1];
42589
+ _useState12 = slicedToArray_default()(_useState11, 2),
42590
+ params = _useState12[0],
42591
+ setParams = _useState12[1];
42542
42592
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
42543
42593
  cachedDateArr: convertValueToDateArr(value, format, options),
42544
42594
  modeDisabledStart: {},
@@ -42546,14 +42596,14 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42546
42596
  }),
42547
42597
  context = _useRef.current;
42548
42598
  // 当edit 为true时,stateDate 否则返回 props date
42549
- var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(context.cachedDateArr),
42550
- _useState12 = slicedToArray_default()(_useState11, 2),
42551
- stateDate = _useState12[0],
42552
- setStateDate = _useState12[1];
42553
- var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
42599
+ var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(context.cachedDateArr),
42554
42600
  _useState14 = slicedToArray_default()(_useState13, 2),
42555
- edit = _useState14[0],
42556
- setEdit = _useState14[1];
42601
+ stateDate = _useState14[0],
42602
+ setStateDate = _useState14[1];
42603
+ var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
42604
+ _useState16 = slicedToArray_default()(_useState15, 2),
42605
+ edit = _useState16[0],
42606
+ setEdit = _useState16[1];
42557
42607
 
42558
42608
  // 收集所有的disabled
42559
42609
  var registerModeDisabled = usePersistFn(function (position, mode, fn) {
@@ -42571,6 +42621,39 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42571
42621
  quick: quick
42572
42622
  });
42573
42623
  });
42624
+ var isDisabledInputDate = function isDisabledInputDate(rangeData) {
42625
+ var start = rangeData[0];
42626
+ var end = rangeData[1];
42627
+ var isDis = false;
42628
+ if (disabled && typeof disabled === 'function') {
42629
+ if (start && disabled(start)) isDis = true;
42630
+ if (end && disabled(end)) isDis = true;
42631
+ if (isDis) return isDis;
42632
+ }
42633
+ if (start && end) {
42634
+ if (util.compareAsc(start, end) > 0) {
42635
+ isDis = true;
42636
+ return isDis;
42637
+ }
42638
+ }
42639
+ if (range && typeof range === 'number') {
42640
+ if (start) {
42641
+ if (!end) return isDis;
42642
+ var rangeDate = util.addSeconds(start, range, options);
42643
+ if (util.compareAsc(end, rangeDate) > 0) {
42644
+ isDis = true;
42645
+ }
42646
+ }
42647
+ if (end) {
42648
+ if (!start) return isDis;
42649
+ var _rangeDate = util.addSeconds(end, -range, options);
42650
+ if (util.compareAsc(start, _rangeDate) < 0) {
42651
+ isDis = true;
42652
+ }
42653
+ }
42654
+ }
42655
+ return isDis;
42656
+ };
42574
42657
  var isDisabledDate = usePersistFn(function (date, position, triggerType) {
42575
42658
  var mode = getTypeMode(type);
42576
42659
  var disabled = position === 'end' ? context.modeDisabledEnd[mode] : context.modeDisabledStart[mode];
@@ -42627,6 +42710,19 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42627
42710
  var finishEdit = function finishEdit() {
42628
42711
  setEdit(false);
42629
42712
  var formatValue = getFormatValueArr(stateDate);
42713
+ if (inputArr.length && inputArr.some(function (i) {
42714
+ return i;
42715
+ })) {
42716
+ var inputValue = stateDate.map(function (item, index) {
42717
+ if (inputArr[index]) return inputArr[index];
42718
+ return item;
42719
+ });
42720
+ var isDis = isDisabledInputDate(inputValue);
42721
+ if (!isDis) {
42722
+ formatValue = getFormatValueArr(inputValue);
42723
+ }
42724
+ }
42725
+ // const formatValue = getFormatValueArr(stateDate);
42630
42726
  var v = range ? formatValue : formatValue[0];
42631
42727
  if (range && (!stateDate[0] || !stateDate[1]) && !props.allowSingle) {
42632
42728
  return;
@@ -42641,6 +42737,7 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42641
42737
  if (!clearable) return;
42642
42738
  e === null || e === void 0 || e.stopPropagation();
42643
42739
  if (disabledStatus === 'all') return;
42740
+ setInputArr([]);
42644
42741
  if (edit) {
42645
42742
  if (range) {
42646
42743
  if (disabledStatus === 'left') setStateDate(function (arr) {
@@ -42676,6 +42773,12 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42676
42773
  var isValid = util.isValidString(str, format);
42677
42774
  if (!isValid) return;
42678
42775
  var date = util.toDateWithFormat(str, format, undefined, options);
42776
+ setInputArr(function (prev) {
42777
+ var arr = toConsumableArray_default()(prev);
42778
+ arr[index] = date;
42779
+ return arr;
42780
+ });
42781
+
42679
42782
  // 此次校验是由输入触发的
42680
42783
  if (date && isDisabledDate(date, index === 1 ? 'end' : 'start', 'input')) {
42681
42784
  return;
@@ -42691,6 +42794,17 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42691
42794
  return arr;
42692
42795
  });
42693
42796
  });
42797
+ var handleClearInputArr = usePersistFn(function (index) {
42798
+ if (index !== undefined) {
42799
+ setInputArr(function (prev) {
42800
+ var arr = toConsumableArray_default()(prev);
42801
+ arr[index] = undefined;
42802
+ return arr;
42803
+ });
42804
+ return;
42805
+ }
42806
+ setInputArr([]);
42807
+ });
42694
42808
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
42695
42809
  handlePropsValueChange(value);
42696
42810
  }, [value]);
@@ -42721,12 +42835,14 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42721
42835
  setCurrentArr: setCurrentArr,
42722
42836
  setTargetArr: setTargetArr,
42723
42837
  handleClear: handleClear,
42838
+ handleClearInputArr: handleClearInputArr,
42724
42839
  handleInputChange: handleInputChange,
42725
42840
  registerModeDisabled: registerModeDisabled,
42726
42841
  setCurrentArrWithParams: setCurrentArrWithParams,
42727
42842
  isDisabledDate: isDisabledDate
42728
42843
  });
42729
42844
  return {
42845
+ inputArr: inputArr,
42730
42846
  resultArr: resultArr,
42731
42847
  targetResultArr: targetResultArr,
42732
42848
  dateArr: dateArr,
@@ -42748,6 +42864,7 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
42748
42864
 
42749
42865
  var useDate = function useDate(props) {
42750
42866
  var options = props.options,
42867
+ position = props.position,
42751
42868
  type = props.type;
42752
42869
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultCurrent || new Date()),
42753
42870
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -42840,6 +42957,7 @@ var useDate = function useDate(props) {
42840
42957
  var _props$onChange;
42841
42958
  if (isDisabled(date)) return;
42842
42959
  var newDate = getDateWithTime(date);
42960
+ props === null || props === void 0 || props.onClearInputArr(position === 'start' ? 0 : 1);
42843
42961
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, newDate, noClose);
42844
42962
  setCurrent(newDate);
42845
42963
  };
@@ -43389,7 +43507,10 @@ var Day = function Day(props) {
43389
43507
  current: props.current,
43390
43508
  onCurrentChange: setCurrent,
43391
43509
  value: props.value,
43510
+ range: props.range,
43392
43511
  onChange: onChange,
43512
+ onClearInputArr: props.onClearInputArr,
43513
+ position: props.position,
43393
43514
  min: props.min,
43394
43515
  max: props.max,
43395
43516
  type: props.type,
@@ -44332,6 +44453,7 @@ var Quick = function Quick(props) {
44332
44453
  var jssStyle = props.jssStyle,
44333
44454
  quickSelect = props.quickSelect,
44334
44455
  format = props.format,
44456
+ onClearInputArr = props.onClearInputArr,
44335
44457
  options = props.options,
44336
44458
  children = props.children,
44337
44459
  type = props.type,
@@ -44355,6 +44477,7 @@ var Quick = function Quick(props) {
44355
44477
  });
44356
44478
  props.setDateArr(dateArr);
44357
44479
  props.setCurrentArr(dateArr, 'quick', item);
44480
+ onClearInputArr();
44358
44481
  if (immediate && closePop) {
44359
44482
  closePop();
44360
44483
  }
@@ -44639,6 +44762,7 @@ var Picker = function Picker(props) {
44639
44762
  type: props.type,
44640
44763
  defaultTime: props.defaultTime,
44641
44764
  range: props.range,
44765
+ inputArr: props.inputArr,
44642
44766
  dateArr: props.dateArr,
44643
44767
  setDateArr: props.setDateArr,
44644
44768
  currentArr: props.currentArr,
@@ -44682,6 +44806,7 @@ var Picker = function Picker(props) {
44682
44806
  setMode: position === 'end' ? func.setModeEnd : func.setModeStart,
44683
44807
  onChange: position === 'end' ? func.setDateEnd : func.setDateStart,
44684
44808
  setCurrent: position === 'end' ? func.setCurrentEnd : func.setCurrentStart,
44809
+ onClearInputArr: props.onClearInputArr,
44685
44810
  type: props.type,
44686
44811
  format: props.format,
44687
44812
  disabled: position === 'end' ? func.endDisabled : func.startDisabled,
@@ -44759,6 +44884,7 @@ var Picker = function Picker(props) {
44759
44884
  jssStyle: jssStyle,
44760
44885
  dateArr: dateArr,
44761
44886
  type: type,
44887
+ onClearInputArr: props.onClearInputArr,
44762
44888
  setDateArr: props.setDateArr,
44763
44889
  setCurrentArr: props.setCurrentArr,
44764
44890
  format: props.format,
@@ -44845,7 +44971,8 @@ var DatePicker = function DatePicker(props0) {
44845
44971
  oldDateArr = _React$useState8[0],
44846
44972
  setOldDateArr = _React$useState8[1];
44847
44973
  var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
44848
- inputRef: null
44974
+ inputRef: null,
44975
+ inputRefs: []
44849
44976
  });
44850
44977
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
44851
44978
  var isRTL = direction === 'rtl';
@@ -44889,6 +45016,7 @@ var DatePicker = function DatePicker(props0) {
44889
45016
  formatResult: props.formatResult,
44890
45017
  onPickerChange: props.onPickerChange
44891
45018
  }),
45019
+ inputArr = _useDatePickerFormat.inputArr,
44892
45020
  resultArr = _useDatePickerFormat.resultArr,
44893
45021
  targetResultArr = _useDatePickerFormat.targetResultArr,
44894
45022
  dateArr = _useDatePickerFormat.dateArr,
@@ -44959,13 +45087,14 @@ var DatePicker = function DatePicker(props0) {
44959
45087
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
44960
45088
  });
44961
45089
  var handleClose = function handleClose(isFromConfirm) {
44962
- var _inputRef$current$inp;
44963
45090
  setIsCloseFromConfirm(isFromConfirm || false);
44964
45091
  closePop();
44965
45092
  if (isFromConfirm) {
44966
45093
  func.finishEdit();
44967
45094
  }
44968
- (_inputRef$current$inp = inputRef.current.inputRef) === null || _inputRef$current$inp === void 0 || _inputRef$current$inp.blur();
45095
+ inputRef.current.inputRefs.forEach(function (el) {
45096
+ el === null || el === void 0 || el.blur();
45097
+ });
44969
45098
  };
44970
45099
  var handleResultClick = usePersistFn(function () {
44971
45100
  if (disabledStatus === 'all') return;
@@ -45055,7 +45184,9 @@ var DatePicker = function DatePicker(props0) {
45055
45184
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(picker, {
45056
45185
  setTargetArr: func.setTargetArr,
45057
45186
  dateArr: dateArr,
45187
+ inputArr: inputArr,
45058
45188
  setDateArr: func.setDateArr,
45189
+ onClearInputArr: func.handleClearInputArr,
45059
45190
  currentArr: currentArr,
45060
45191
  range: range,
45061
45192
  setCurrentArr: func.setCurrentArrWithParams,
@@ -48036,19 +48167,21 @@ function useFormRef() {
48036
48167
  };
48037
48168
  return [ref.current, setFormRef];
48038
48169
  }
48039
- function useFromInstance() {
48170
+ function useFormInstance() {
48040
48171
  var formCtx = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useContext(FormContext);
48041
48172
  return formCtx;
48042
48173
  }
48043
48174
  ;// CONCATENATED MODULE: ../base/src/form/form.tsx
48044
48175
 
48045
48176
 
48177
+
48046
48178
  var form_excluded = ["jssStyle", "className", "style", "children", "formRef"];
48047
48179
 
48048
48180
 
48049
48181
 
48050
48182
 
48051
48183
 
48184
+
48052
48185
  var Form = function Form(props) {
48053
48186
  var _jssStyle$form;
48054
48187
  var jssStyle = props.jssStyle,
@@ -48089,6 +48222,16 @@ var Form = function Form(props) {
48089
48222
  type: 'withValue'
48090
48223
  });
48091
48224
  });
48225
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
48226
+ _useState2 = slicedToArray_default()(_useState, 2),
48227
+ renderKey = _useState2[0],
48228
+ setRenderKey = _useState2[1];
48229
+ var handleOuterSet = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (vals) {
48230
+ formFunc.setValue(vals);
48231
+ setRenderKey(function (prev) {
48232
+ return prev + 1;
48233
+ });
48234
+ }, [formFunc]);
48092
48235
  var formRefObj = useLatestObj({
48093
48236
  clearValidate: formFunc.clearValidate,
48094
48237
  getValue: formFunc.getValue,
@@ -48098,7 +48241,7 @@ var Form = function Form(props) {
48098
48241
  validateFields: validateFields,
48099
48242
  validateFieldsWithValue: validateFieldsWithValue,
48100
48243
  validateFieldsWithError: formFunc.validateFields,
48101
- set: formFunc.setValue,
48244
+ set: handleOuterSet,
48102
48245
  scrollToField: formFunc.scrollToField
48103
48246
  });
48104
48247
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().useEffect(function () {
@@ -48132,17 +48275,32 @@ var Form = function Form(props) {
48132
48275
  handleFormModalInfo();
48133
48276
  }, [props.disabled, props.pending]);
48134
48277
  var rootClass = classnames_default()([formClasses === null || formClasses === void 0 ? void 0 : formClasses.rootClass, formClasses === null || formClasses === void 0 ? void 0 : formClasses.wrapper, className, props.inline && (formClasses === null || formClasses === void 0 ? void 0 : formClasses.wrapperInline)]);
48135
- return /*#__PURE__*/(0,jsx_runtime.jsx)("form", objectSpread2_default()(objectSpread2_default()({}, getFormProps({
48278
+ var formProps = getFormProps({
48136
48279
  className: rootClass,
48137
48280
  style: style
48281
+ });
48282
+ var formElRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
48283
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48284
+ if (formElRef.current instanceof HTMLFormElement) {
48285
+ formElRef.current.addEventListener('submit', formProps.onSubmit);
48286
+ }
48287
+ return function () {
48288
+ if (formElRef.current instanceof HTMLFormElement) {
48289
+ formElRef.current.removeEventListener('submit', formProps.onSubmit);
48290
+ }
48291
+ };
48292
+ }, [formProps.onSubmit]);
48293
+ return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)("form", objectSpread2_default()(objectSpread2_default()({}, removeProps(formProps, {
48294
+ onSubmit: true
48138
48295
  })), {}, {
48139
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, objectSpread2_default()(objectSpread2_default()({}, ProviderProps), {}, {
48140
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormContext.Provider, {
48141
- value: formRefObj,
48142
- children: children
48143
- })
48144
- }))
48145
- }));
48296
+ ref: formElRef,
48297
+ key: renderKey
48298
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, objectSpread2_default()(objectSpread2_default()({}, ProviderProps), {}, {
48299
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormContext.Provider, {
48300
+ value: formRefObj,
48301
+ children: children
48302
+ })
48303
+ })));
48146
48304
  };
48147
48305
  /* harmony default export */ var base_src_form_form = (Form);
48148
48306
  ;// CONCATENATED MODULE: ./src/form/form.tsx
@@ -48574,8 +48732,7 @@ var FormFieldSet = function FormFieldSet(props) {
48574
48732
  });
48575
48733
  }
48576
48734
  valueArr.forEach(function (v, i) {
48577
- var _context$ids$i;
48578
- if (context.lastValues[i] !== v) {
48735
+ if (context.lastValues.length !== valueArr.length) {
48579
48736
  context.ids[i] = generateUUID();
48580
48737
  }
48581
48738
  result.push( /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
@@ -48624,7 +48781,7 @@ var FormFieldSet = function FormFieldSet(props) {
48624
48781
  formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
48625
48782
  }
48626
48783
  })
48627
- }, (_context$ids$i = context.ids[i]) !== null && _context$ids$i !== void 0 ? _context$ids$i : i));
48784
+ }, context.ids[i]));
48628
48785
  });
48629
48786
 
48630
48787
  // 更新 lastValues
@@ -48691,6 +48848,11 @@ var FormButton = function FormButton(props) {
48691
48848
  if (formFunc && props.htmlType === 'button') {
48692
48849
  formFunc.submit();
48693
48850
  }
48851
+ if (formFunc && props.htmlType === 'reset') {
48852
+ // 阻止默认的form reset,改用formFunc.reset。处理嵌套form的reset问题。
48853
+ e.preventDefault();
48854
+ formFunc.reset();
48855
+ }
48694
48856
  if (props.onClick) {
48695
48857
  props.onClick(e);
48696
48858
  }
@@ -48763,7 +48925,7 @@ FormComp.Submit = form_Submit;
48763
48925
  FormComp.Reset = form_Reset;
48764
48926
  FormComp.Flow = form_FormFlow;
48765
48927
  FormComp.useForm = useFormRef;
48766
- FormComp.useFromInstance = useFromInstance;
48928
+ FormComp.useFormInstance = useFormInstance;
48767
48929
  /* harmony default export */ var src_form_0 = (FormComp);
48768
48930
  ;// CONCATENATED MODULE: ../base/src/gap/support.ts
48769
48931
  function support_flexGapSupport() {
@@ -50041,7 +50203,7 @@ var Image = function Image(props) {
50041
50203
  var renderDivInnerEl = function renderDivInnerEl(src) {
50042
50204
  var imageDivProps = getImageDivProps({
50043
50205
  style: {
50044
- backgroundImage: "url(".concat(src, ")")
50206
+ backgroundImage: "url(\"".concat(src, "\")")
50045
50207
  }
50046
50208
  });
50047
50209
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()({
@@ -57161,6 +57323,7 @@ var Step = function Step(props) {
57161
57323
  var labelPlacement = getLabelPlacement();
57162
57324
  var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, disabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
57163
57325
  var handleChange = function handleChange(e) {
57326
+ if (disabled) return;
57164
57327
  onClick === null || onClick === void 0 || onClick(e, index, id);
57165
57328
  onChange === null || onChange === void 0 || onChange(index);
57166
57329
  };
@@ -57544,7 +57707,7 @@ var Sticky = function Sticky(props) {
57544
57707
  cancelFixedObserver();
57545
57708
  context.fixedObserver = new IntersectionObserver(handleFixedInter, {
57546
57709
  root: null,
57547
- rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
57710
+ rootMargin: "".concat(-(top || 0), "px 0px ").concat(-(bottom || 0), "px 0px"),
57548
57711
  threshold: 1.0
57549
57712
  });
57550
57713
  };
@@ -57580,7 +57743,7 @@ var Sticky = function Sticky(props) {
57580
57743
  if (window.IntersectionObserver) {
57581
57744
  var observer = new IntersectionObserver(handleTargetPosition, {
57582
57745
  root: context.target,
57583
- rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
57746
+ rootMargin: "".concat(-(top || 0), "px 0px ").concat(-(bottom || 0), "px 0px"),
57584
57747
  threshold: 1.0
57585
57748
  });
57586
57749
  context.targetObserver = observer;
@@ -57598,7 +57761,7 @@ var Sticky = function Sticky(props) {
57598
57761
  cancelParentObserver();
57599
57762
  context.parentObserver = new IntersectionObserver(handleParentVisible, {
57600
57763
  root: context.target,
57601
- rootMargin: "-".concat(top || 0, "px 0px -").concat(bottom || 0, "px 0px"),
57764
+ rootMargin: "".concat(-(top || 0), "px 0px ").concat(-(bottom || 0), "px 0px"),
57602
57765
  threshold: 0
57603
57766
  });
57604
57767
  context.parentObserver.observe(props.parent);
@@ -58472,6 +58635,7 @@ var useTableSort = function useTableSort(props) {
58472
58635
 
58473
58636
 
58474
58637
 
58638
+
58475
58639
  var getExpandData = function getExpandData(_treeData, keys, keygen, treeColumnsName) {
58476
58640
  var expandKeys = keys;
58477
58641
  var expandSet = new Set(expandKeys);
@@ -58572,6 +58736,9 @@ var useTableTree = function useTableTree(props) {
58572
58736
  var newExpandKeys = expandKeysState.filter(function (key) {
58573
58737
  return !unmatchExpandKeys.includes(key);
58574
58738
  });
58739
+ if (shallowEqual(newExpandKeys, expandKeysState)) {
58740
+ return;
58741
+ }
58575
58742
  setExpandKeysState(newExpandKeys);
58576
58743
  }, [unmatchExpandKeys, expandKeysState]);
58577
58744
  return {
@@ -58606,7 +58773,6 @@ function getMaxRowSpanLength(input) {
58606
58773
  }
58607
58774
  return Math.max.apply(Math, toConsumableArray_default()(Array.from(map.values())));
58608
58775
  }
58609
- var MAX_ROW_SPAN = 200;
58610
58776
  var useTableVirtual = function useTableVirtual(props) {
58611
58777
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
58612
58778
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -58639,7 +58805,7 @@ var useTableVirtual = function useTableVirtual(props) {
58639
58805
  var totalLength = props.data.length;
58640
58806
  var _loop = function _loop(i) {
58641
58807
  var startIndex = i;
58642
- var rowSpanInfo = rowSpanColumns.map(function (col) {
58808
+ var _rowSpanInfo = rowSpanColumns.map(function (col) {
58643
58809
  var rowSpan = col.rowSpan;
58644
58810
  function getRowSpanCount(index, _count) {
58645
58811
  var count = _count;
@@ -58655,7 +58821,7 @@ var useTableVirtual = function useTableVirtual(props) {
58655
58821
  var count = getRowSpanCount(i, 1);
58656
58822
  return [startIndex, startIndex + count - 1];
58657
58823
  });
58658
- _rowSpanInfos.push(rowSpanInfo);
58824
+ _rowSpanInfos.push(_rowSpanInfo);
58659
58825
  };
58660
58826
  for (var i = 0; i < totalLength; i++) {
58661
58827
  _loop(i);
@@ -58681,10 +58847,12 @@ var useTableVirtual = function useTableVirtual(props) {
58681
58847
  });
58682
58848
  return Math.min.apply(Math, toConsumableArray_default()(startIndexs));
58683
58849
  });
58684
- var maxRowSpan = getMaxRowSpanLength(resultArr);
58685
- return maxRowSpan > 1 ? {
58850
+
58851
+ // 根据data计算出实际需要的最大合并行数
58852
+ var _maxRowSpan = getMaxRowSpanLength(resultArr);
58853
+ return _maxRowSpan > 1 ? {
58686
58854
  rowSpanIndexArray: resultArr,
58687
- maxRowSpan: maxRowSpan
58855
+ maxRowSpan: _maxRowSpan
58688
58856
  } : null;
58689
58857
  }, [props.data, props.columns]);
58690
58858
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
@@ -58741,32 +58909,32 @@ var useTableVirtual = function useTableVirtual(props) {
58741
58909
  }
58742
58910
  });
58743
58911
  var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop) {
58912
+ var _props$scrollRef$curr;
58744
58913
  if (props.disabled) return;
58745
58914
  var sum = 0;
58746
58915
  var currentIndex = 0;
58747
58916
  var top = 0;
58748
58917
  var maxIndex = Math.max(props.data.length - rowsInView, 0);
58749
- var maxRowSpanLenth = 0;
58750
- if (rowSpanInfo) {
58751
- maxRowSpanLenth = Math.min(rowSpanInfo.rowSpanIndexArray.length,
58752
- // 根据data计算出实际需要的最大合并行数(rowSpanInfo.maxRowSpan),当rowSpanInfo.maxRowSpan大于外部传的rowsInView时,使用rowSpanInfo.maxRowSpan
58753
- Math.max(rowSpanInfo.maxRowSpan, props.rowsInView > MAX_ROW_SPAN ? props.rowsInView : props.rowsInView || MAX_ROW_SPAN));
58754
- }
58918
+ var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
58755
58919
  for (var i = 0; i <= maxIndex; i++) {
58756
58920
  context.rowSpanRows = 0;
58757
- sum += context.cachedHeight[i] || props.rowHeight;
58758
- var rowSpanHeight = 0;
58921
+ var currentRowHeight = context.cachedHeight[i] || props.rowHeight;
58922
+ sum += currentRowHeight;
58923
+ var rowSpanHeight = currentRowHeight;
58759
58924
  if (rowSpanInfo) {
58760
58925
  var siblingsIndexs = [];
58761
- for (var k = i; k < maxRowSpanLenth + i; k++) {
58926
+ for (var k = i; k < rowSpanInfo.maxRowSpan + i; k++) {
58762
58927
  if (rowSpanInfo.rowSpanIndexArray[k] <= i && k > i) {
58763
58928
  siblingsIndexs.push(k);
58764
58929
  }
58765
58930
  }
58766
58931
  for (var j = 0; j < siblingsIndexs.length; j++) {
58767
- var index = siblingsIndexs[j];
58768
- context.rowSpanRows += 1;
58769
- rowSpanHeight += context.cachedHeight[index] || props.rowHeight;
58932
+ // 在当前滚动容器滚动一屏上方销毁tr,不在可见区域内销毁重建,避免引起可见的单元格(合并的)内容闪烁
58933
+ if (rowSpanHeight < scrollContainerHeight) {
58934
+ var index = siblingsIndexs[j];
58935
+ context.rowSpanRows += 1;
58936
+ rowSpanHeight += context.cachedHeight[index] || props.rowHeight;
58937
+ }
58770
58938
  }
58771
58939
  }
58772
58940
  if (scrollTop < sum + rowSpanHeight || i === maxIndex) {
@@ -59974,23 +60142,30 @@ var Tr = function Tr(props) {
59974
60142
  var col = cols[i];
59975
60143
  if (data[i]) {
59976
60144
  var last = cols[i + (data[i].colSpan || 1) - 1] || {};
60145
+ var isRowSpanTd = data[i].rowSpan > 1;
60146
+ var $tdContent = renderContent(col, data[i].data);
59977
60147
  var td = /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
59978
60148
  colSpan: data[i].colSpan,
59979
60149
  rowSpan: data[i].rowSpan,
59980
- onMouseEnter: props.hover && hasSiblingRowSpan || data[i].rowSpan > 1 ? function () {
60150
+ onMouseEnter: props.hover && hasSiblingRowSpan || isRowSpanTd ? function () {
59981
60151
  props.handleCellHover(props.rowIndex, data[i].rowSpan);
59982
60152
  } : undefined,
59983
- onMouseLeave: props.hover && hasSiblingRowSpan || data[i].rowSpan > 1 ? function () {
60153
+ onMouseLeave: props.hover && hasSiblingRowSpan || isRowSpanTd ? function () {
59984
60154
  props.handleCellHover(-1, 0);
59985
60155
  } : undefined,
59986
- className: classnames_default()(col.className, col.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), col.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), col.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), (col.lastFixed || col.firstFixed || last.lastFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), lastRowIndex === i && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), props.hoverIndex.has(props.rowIndex) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellHover), data[i].rowSpan > 1 && props.isCellHover(props.rowIndex, data[i].rowSpan) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellHover)),
60156
+ className: classnames_default()(col.className, col.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), col.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), col.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), (col.lastFixed || col.firstFixed || last.lastFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), lastRowIndex === i && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), props.hoverIndex.has(props.rowIndex) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellHover), isRowSpanTd && props.isCellHover(props.rowIndex, data[i].rowSpan) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellHover)),
59987
60157
  style: getTdStyle(col, data[i].colSpan),
59988
60158
  dir: config.direction,
59989
60159
  "data-role": col.type === 'checkbox' ? 'checkbox' : undefined,
59990
60160
  onClick: props.onCellClick ? function () {
59991
60161
  return handleCellClick(data[i].data, i);
59992
60162
  } : undefined,
59993
- children: renderContent(col, data[i].data)
60163
+ children: isRowSpanTd ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60164
+ style: {
60165
+ height: 0
60166
+ },
60167
+ children: $tdContent
60168
+ }) : $tdContent
59994
60169
  }, col.key);
59995
60170
  tds.push(td);
59996
60171
  if (data[i].colSpan) skip = data[i].colSpan - 1;
@@ -66970,7 +67145,7 @@ var upload_interface = __webpack_require__(8821);
66970
67145
 
66971
67146
 
66972
67147
  /* harmony default export */ var src_0 = ({
66973
- version: '3.5.3'
67148
+ version: '3.5.4-beta.10'
66974
67149
  });
66975
67150
  }();
66976
67151
  /******/ return __webpack_exports__;