shineout 3.7.0-beta.6 → 3.7.0-beta.8

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
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.7.0-beta.6');
12220
+ /* harmony default export */ var version = ('3.7.0-beta.8');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -25795,8 +25795,11 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
25795
25795
  borderTop: "1px solid ".concat(src.tableCellBorderColor)
25796
25796
  }
25797
25797
  },
25798
- headMirrorScroller: {
25799
- overflow: 'scroll hidden'
25798
+ mirrorScroller: {
25799
+ overflow: 'scroll hidden',
25800
+ '[data-soui-sticky="false"] &': {
25801
+ display: 'none'
25802
+ }
25800
25803
  },
25801
25804
  headWrapper: {
25802
25805
  flex: '0 0 auto',
@@ -28649,8 +28652,8 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28649
28652
  visibility: 'hidden'
28650
28653
  },
28651
28654
  moreWrapper: {
28652
- width: 248,
28653
- height: 72,
28655
+ maxWidth: 400,
28656
+ maxHeight: 160,
28654
28657
  overflow: 'auto',
28655
28658
  padding: "".concat(src.treeSelectMorePaddingY, " ").concat(src.treeSelectMorePaddingX)
28656
28659
  },
@@ -29976,19 +29979,6 @@ var usePopup = function usePopup(props) {
29976
29979
  };
29977
29980
  };
29978
29981
  /* harmony default export */ var use_popup = (usePopup);
29979
- ;// CONCATENATED MODULE: ../hooks/src/utils/attribute.ts
29980
- var getDataAttribute = function getDataAttribute(attrs) {
29981
- return Object.keys(attrs).reduce(function (acc, key) {
29982
- var ns = "data-soui-".concat(key);
29983
- if (attrs[key] !== undefined) {
29984
- acc[ns] = attrs[key];
29985
- }
29986
- return acc;
29987
- }, {});
29988
- };
29989
- var getDataAttributeName = function getDataAttributeName(name) {
29990
- return "data-soui-".concat(name);
29991
- };
29992
29982
  ;// CONCATENATED MODULE: ../hooks/src/utils/func.ts
29993
29983
  // 节流函数
29994
29984
  var throttle = function throttle(func, wait) {
@@ -30207,6 +30197,19 @@ var getFieldId = function getFieldId(name, formName) {
30207
30197
  if (!name) return undefined;
30208
30198
  return "".concat(formName ? "".concat(formName, "_") : '').concat(name);
30209
30199
  };
30200
+ ;// CONCATENATED MODULE: ../hooks/src/utils/attribute.ts
30201
+ var getDataAttribute = function getDataAttribute(attrs) {
30202
+ return Object.keys(attrs).reduce(function (acc, key) {
30203
+ var ns = "data-soui-".concat(key);
30204
+ if (attrs[key] !== undefined) {
30205
+ acc[ns] = attrs[key];
30206
+ }
30207
+ return acc;
30208
+ }, {});
30209
+ };
30210
+ var getDataAttributeName = function getDataAttributeName(name) {
30211
+ return "data-soui-".concat(name);
30212
+ };
30210
30213
  ;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/get-position-style.ts
30211
30214
 
30212
30215
  var ReverseDir = {
@@ -30648,13 +30651,6 @@ var usePositionStyle = function usePositionStyle(config) {
30648
30651
  style.right = containerRect.right - rect.right + containerScrollBarWidth - containerScroll.left - (offset ? offset[0] : 0);
30649
30652
  style.left = 'auto';
30650
30653
  style.transform = '';
30651
- if (adjust) {
30652
- overLeft = bodyRect.left - (rect.right - context.popUpWidth);
30653
- if (style.right < 0 && targetRect) {
30654
- style.left = bodyRect.width - targetRect.width;
30655
- style.right = 'auto';
30656
- }
30657
- }
30658
30654
  } else {
30659
30655
  // 居中对齐
30660
30656
  style.left = rect.left + rect.width / 2 - containerRect.left + containerScroll.left;
@@ -31526,6 +31522,7 @@ var AbsoluteList = function AbsoluteList(props) {
31526
31522
 
31527
31523
 
31528
31524
 
31525
+
31529
31526
  var emptyEvent = function emptyEvent(e) {
31530
31527
  return e.stopPropagation();
31531
31528
  };
@@ -31585,7 +31582,17 @@ var Popover = function Popover(props) {
31585
31582
  Provider = _usePopup.Provider,
31586
31583
  providerValue = _usePopup.providerValue;
31587
31584
  var events = getTargetProps();
31585
+ var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(0),
31586
+ _React$useState2 = slicedToArray_default()(_React$useState, 2),
31587
+ updateKey = _React$useState2[0],
31588
+ setUpdateKey = _React$useState2[1];
31589
+ var handleUpdateKey = function handleUpdateKey() {
31590
+ setUpdateKey(function (prev) {
31591
+ return (prev + 1) % 2;
31592
+ });
31593
+ };
31588
31594
  var bindEvents = function bindEvents() {
31595
+ var _window;
31589
31596
  var targetEl = targetRef.current;
31590
31597
  if (!targetEl) return;
31591
31598
  if (events.onMouseEnter) targetEl.addEventListener('mouseenter', events.onMouseEnter);
@@ -31595,8 +31602,14 @@ var Popover = function Popover(props) {
31595
31602
  if (trigger === 'hover' && props.clickToCancelDelay && props.mouseEnterDelay) {
31596
31603
  targetEl.addEventListener('click', closePop);
31597
31604
  }
31605
+ (_window = window) === null || _window === void 0 || _window.addEventListener('resize', handleUpdateKey);
31606
+ var scrollContainer = getClosestScrollContainer(targetEl);
31607
+ if (scrollContainer) {
31608
+ scrollContainer.addEventListener('scroll', handleUpdateKey);
31609
+ }
31598
31610
  };
31599
31611
  var unbindEvents = function unbindEvents() {
31612
+ var _window2;
31600
31613
  var targetEl = targetRef.current;
31601
31614
  if (!targetEl) return;
31602
31615
  var events = getTargetProps();
@@ -31604,6 +31617,11 @@ var Popover = function Popover(props) {
31604
31617
  if (events.onMouseLeave) targetEl.removeEventListener('mouseleave', events.onMouseLeave);
31605
31618
  if (events.onClick) targetEl.removeEventListener('click', events.onClick);
31606
31619
  targetEl.removeEventListener('click', closePop);
31620
+ (_window2 = window) === null || _window2 === void 0 || _window2.removeEventListener('resize', handleUpdateKey);
31621
+ var scrollContainer = getClosestScrollContainer(targetEl);
31622
+ if (scrollContainer) {
31623
+ scrollContainer.addEventListener('scroll', handleUpdateKey);
31624
+ }
31607
31625
  };
31608
31626
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
31609
31627
  bindEvents();
@@ -31665,6 +31683,7 @@ var Popover = function Popover(props) {
31665
31683
  adjust: props.adjust,
31666
31684
  lazy: props.lazy,
31667
31685
  offset: props.offset,
31686
+ updateKey: updateKey,
31668
31687
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
31669
31688
  className: classnames_default()(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.rootClass, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow)),
31670
31689
  style: containerStyle
@@ -41376,8 +41395,9 @@ var Cascader = function Cascader(props0) {
41376
41395
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41377
41396
  if (!value) return;
41378
41397
  datum.setValue(value);
41398
+ if (!open) return;
41379
41399
  updatePathByValue();
41380
- }, [value]);
41400
+ }, [value, open]);
41381
41401
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41382
41402
  if (filterText !== undefined) {
41383
41403
  updatePath();
@@ -41888,6 +41908,7 @@ var validate = function validate(value, formData, rules, p) {
41888
41908
 
41889
41909
 
41890
41910
 
41911
+
41891
41912
  var getValue = function getValue(name, formValue) {
41892
41913
  if (!name) return undefined;
41893
41914
  if (isArray(name)) {
@@ -41927,6 +41948,10 @@ function useFormControl(props) {
41927
41948
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
41928
41949
  errorState = _React$useState2[0],
41929
41950
  setErrorState = _React$useState2[1];
41951
+ var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
41952
+ mounted: false
41953
+ }),
41954
+ context = _React$useRef.current;
41930
41955
  var value;
41931
41956
  var error = errorState;
41932
41957
  var inForm = false;
@@ -42086,7 +42111,11 @@ function useFormControl(props) {
42086
42111
  } else {
42087
42112
  controlFunc.bind(name, defaultValue, validateField, update);
42088
42113
  }
42114
+ if (context.mounted) {
42115
+ devUseWarning.warn('Please avoid modifying the name property after the component has mounted, as this may result in unintended behavior or errors.');
42116
+ }
42089
42117
  }
42118
+ context.mounted = true;
42090
42119
  return function () {
42091
42120
  if (inForm && controlFunc) {
42092
42121
  if (isArray(name)) {
@@ -49783,8 +49812,10 @@ var useForm = function useForm(props) {
49783
49812
  context.updateMap[n] = new Set();
49784
49813
  }
49785
49814
  context.updateMap[n].add(updateFn);
49815
+ var shouldTriggerResetChange = context.removeArr.has(n);
49786
49816
  context.removeArr.delete(n);
49787
- if (df !== undefined && deepGet(context.value, n) === undefined) {
49817
+ var shouldTriggerDefaultChange = df !== undefined && deepGet(context.value, n) === undefined;
49818
+ if (shouldTriggerDefaultChange || shouldTriggerResetChange) {
49788
49819
  if (!context.mounted) context.defaultValues[n] = df;
49789
49820
  onChange(function (v) {
49790
49821
  deepSet(v, n, df, deepSetOptions);
@@ -50152,6 +50183,7 @@ var UseFormItem = function UseFormItem() {
50152
50183
 
50153
50184
 
50154
50185
 
50186
+
50155
50187
  var tooltip_devUseWarning = devUseWarning;
50156
50188
  var defaultDelay = 0;
50157
50189
  var Tooltip = function Tooltip(props) {
@@ -50193,14 +50225,30 @@ var Tooltip = function Tooltip(props) {
50193
50225
  popupRef = _usePopup.popupRef,
50194
50226
  closePop = _usePopup.closePop;
50195
50227
  var events = getTargetProps();
50228
+ var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(0),
50229
+ _React$useState2 = slicedToArray_default()(_React$useState, 2),
50230
+ updateKey = _React$useState2[0],
50231
+ setUpdateKey = _React$useState2[1];
50232
+ var handleUpdateKey = function handleUpdateKey() {
50233
+ setUpdateKey(function (prev) {
50234
+ return (prev + 1) % 2;
50235
+ });
50236
+ };
50196
50237
  var bindEvents = function bindEvents() {
50238
+ var _window;
50197
50239
  var targetEl = targetRef.current;
50198
50240
  if (!targetEl) return;
50199
50241
  if (events.onMouseEnter) targetEl.addEventListener('mouseenter', events.onMouseEnter);
50200
50242
  if (events.onMouseLeave) targetEl.addEventListener('mouseleave', events.onMouseLeave);
50201
50243
  if (events.onClick) targetEl.addEventListener('click', events.onClick);
50244
+ (_window = window) === null || _window === void 0 || _window.addEventListener('resize', handleUpdateKey);
50245
+ var scrollContainer = getClosestScrollContainer(targetEl);
50246
+ if (scrollContainer) {
50247
+ scrollContainer.addEventListener('scroll', handleUpdateKey);
50248
+ }
50202
50249
  };
50203
50250
  var unbindEvents = function unbindEvents() {
50251
+ var _window2;
50204
50252
  var targetEl = targetRef.current;
50205
50253
  if (!targetEl) return;
50206
50254
  var events = getTargetProps();
@@ -50208,6 +50256,11 @@ var Tooltip = function Tooltip(props) {
50208
50256
  if (events.onMouseLeave) targetEl.removeEventListener('mouseleave', events.onMouseLeave);
50209
50257
  if (events.onClick) targetEl.removeEventListener('click', events.onClick);
50210
50258
  targetEl.removeEventListener('click', closePop);
50259
+ (_window2 = window) === null || _window2 === void 0 || _window2.removeEventListener('resize', handleUpdateKey);
50260
+ var scrollContainer = getClosestScrollContainer(targetEl);
50261
+ if (scrollContainer) {
50262
+ scrollContainer.addEventListener('scroll', handleUpdateKey);
50263
+ }
50211
50264
  };
50212
50265
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
50213
50266
  if (!persistent) return;
@@ -50251,6 +50304,7 @@ var Tooltip = function Tooltip(props) {
50251
50304
  popupGap: 0,
50252
50305
  zIndex: zIndex,
50253
50306
  adjust: popsitionProps === 'auto',
50307
+ updateKey: updateKey,
50254
50308
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
50255
50309
  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)),
50256
50310
  style: {
@@ -54248,6 +54302,7 @@ var TreeVirtual = function TreeVirtual(props) {
54248
54302
  height = props.height,
54249
54303
  _props$lineHeight = props.lineHeight,
54250
54304
  lineHeight = _props$lineHeight === void 0 ? 36 : _props$lineHeight,
54305
+ rowsInView = props.rowsInView,
54251
54306
  line = props.line,
54252
54307
  mode = props.mode,
54253
54308
  contentClass = props.contentClass,
@@ -54309,7 +54364,7 @@ var TreeVirtual = function TreeVirtual(props) {
54309
54364
  return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
54310
54365
  data: datum.dataFlat,
54311
54366
  height: height,
54312
- rowsInView: 10,
54367
+ rowsInView: rowsInView,
54313
54368
  scrollerStyle: {
54314
54369
  height: '100%',
54315
54370
  width: '100%',
@@ -54329,7 +54384,7 @@ var TreeVirtual = function TreeVirtual(props) {
54329
54384
 
54330
54385
 
54331
54386
 
54332
- var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "actionOnClick", "tiledData"];
54387
+ var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "rowsInView", "actionOnClick", "tiledData"];
54333
54388
 
54334
54389
 
54335
54390
 
@@ -54391,6 +54446,8 @@ var Tree = function Tree(props) {
54391
54446
  onDragOver = props.onDragOver,
54392
54447
  onDragStart = props.onDragStart,
54393
54448
  propsDatum = props.datum,
54449
+ _props$rowsInView = props.rowsInView,
54450
+ rowsInView = _props$rowsInView === void 0 ? 20 : _props$rowsInView,
54394
54451
  actionOnClick = props.actionOnClick,
54395
54452
  tiledData = props.tiledData,
54396
54453
  rest = objectWithoutProperties_default()(props, tree_excluded);
@@ -54550,6 +54607,7 @@ var Tree = function Tree(props) {
54550
54607
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
54551
54608
  data: data,
54552
54609
  line: line,
54610
+ rowsInView: rowsInView,
54553
54611
  expanded: expanded,
54554
54612
  height: realHeight,
54555
54613
  childrenKey: props.childrenKey || 'children',
@@ -60097,12 +60155,15 @@ var Sticky = function Sticky(props) {
60097
60155
  pointerEvents: 'none'
60098
60156
  };
60099
60157
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
60100
- children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.createPortal)(StickyEl, context.div), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60158
+ children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.createPortal)(StickyEl, context.div), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
60101
60159
  className: props.className,
60102
60160
  style: objectSpread2_default()(objectSpread2_default()({}, props.style), show && parentVisible ? hideStyle : {}),
60103
- ref: handleElementRef,
60161
+ ref: handleElementRef
60162
+ }, getDataAttribute({
60163
+ sticky: show && parentVisible ? 'true' : 'false'
60164
+ })), {}, {
60104
60165
  children: children
60105
- })]
60166
+ }))]
60106
60167
  });
60107
60168
  };
60108
60169
  /* harmony default export */ var src_sticky_sticky = (Sticky);
@@ -60248,7 +60309,6 @@ var extractHeightValue = function extractHeightValue(num) {
60248
60309
  return undefined;
60249
60310
  };
60250
60311
  var scroll_table_Scroll = function Scroll(props) {
60251
- var _scrollRef$current, _scrollRef$current2;
60252
60312
  var containerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60253
60313
  var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60254
60314
  var wrapperRef = useForkRef(scrollRef, props.wrapperRef);
@@ -60279,10 +60339,7 @@ var scroll_table_Scroll = function Scroll(props) {
60279
60339
  flex: 1,
60280
60340
  minWidth: 0,
60281
60341
  minHeight: 0,
60282
- // 原生css sticky机制根据最近的父元素的overflow来决定是否sticky
60283
- // isHeaderSticky: 这种场景非内滚的时候,设置scroll元素的overflow为initial
60284
- // isEmptyContent: 这种场景,把scroll元素的overflow设置为hidden,把overflow: auto转交给下面的container元素
60285
- overflow: props.isEmptyContent ? 'hidden' : props.isHeaderSticky && (scrollRef === null || scrollRef === void 0 || (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.scrollHeight) === (scrollRef === null || scrollRef === void 0 || (_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 ? void 0 : _scrollRef$current2.clientHeight) ? 'initial' : 'auto',
60342
+ overflow: 'auto',
60286
60343
  width: '100%'
60287
60344
  };
60288
60345
  var containerStyle = {
@@ -60291,9 +60348,7 @@ var scroll_table_Scroll = function Scroll(props) {
60291
60348
  display: 'flex',
60292
60349
  position: 'sticky',
60293
60350
  flexDirection: 'column',
60294
- top: 0,
60295
- // isEmptyContent: overflow设置为auto是为了让empty元素可以sticky left:0 生效
60296
- overflow: props.isEmptyContent ? 'auto' : undefined
60351
+ top: 0
60297
60352
  };
60298
60353
 
60299
60354
  // 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
@@ -60352,30 +60407,34 @@ var scroll_table_Scroll = function Scroll(props) {
60352
60407
  scrollRef.current.scrollTop += scrollTop;
60353
60408
  }
60354
60409
  });
60355
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
60356
- role: 'scroll'
60357
- })), {}, {
60358
- style: scrollerStyle,
60359
- onScroll: handleScroll,
60360
- ref: wrapperRef,
60361
- onMouseDown: function onMouseDown() {
60362
- context.isMouseDown = true;
60363
- },
60364
- onMouseUp: function onMouseUp() {
60365
- context.isMouseDown = false;
60366
- },
60367
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
60368
- role: 'scroll-container'
60410
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60411
+ className: props.className,
60412
+ style: props.style,
60413
+ children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
60414
+ role: 'scroll'
60369
60415
  })), {}, {
60370
- style: containerStyle,
60371
- ref: containerRef,
60372
- onScroll: handleInnerScroll,
60373
- children: props.children
60374
- })), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60375
- style: placeStyle,
60376
- children: "\xA0"
60377
- })]
60378
- }));
60416
+ style: scrollerStyle,
60417
+ onScroll: handleScroll,
60418
+ ref: wrapperRef,
60419
+ onMouseDown: function onMouseDown() {
60420
+ context.isMouseDown = true;
60421
+ },
60422
+ onMouseUp: function onMouseUp() {
60423
+ context.isMouseDown = false;
60424
+ },
60425
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
60426
+ role: 'scroll-container'
60427
+ })), {}, {
60428
+ style: containerStyle,
60429
+ ref: containerRef,
60430
+ onScroll: handleInnerScroll,
60431
+ children: props.children
60432
+ })), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60433
+ style: placeStyle,
60434
+ children: "\xA0"
60435
+ })]
60436
+ }))
60437
+ });
60379
60438
  };
60380
60439
  /* harmony default export */ var scroll_table = (scroll_table_Scroll);
60381
60440
  ;// CONCATENATED MODULE: ../hooks/src/common/use-scrollbar-width/index.ts
@@ -61229,13 +61288,6 @@ var useTableVirtual = function useTableVirtual(props) {
61229
61288
  autoAddRows: 0
61230
61289
  }),
61231
61290
  context = _useRef.current;
61232
- var getTranslate = usePersistFn(function (left, top) {
61233
- var t = top === undefined ? innerTop + offsetY : top;
61234
- if (t < 0) {
61235
- t = 0;
61236
- }
61237
- return "translate3d(0, ".concat(0 - t, "px, 0)");
61238
- });
61239
61291
  var getContentHeight = function getContentHeight(index) {
61240
61292
  if (props.disabled) return 0;
61241
61293
  var sum = 0;
@@ -61335,7 +61387,7 @@ var useTableVirtual = function useTableVirtual(props) {
61335
61387
  };
61336
61388
  setHeight(sumHeight);
61337
61389
  });
61338
- var handleScroll = function handleScroll(info) {
61390
+ var handleScroll = usePersistFn(function (info) {
61339
61391
  var height = info.height,
61340
61392
  y = info.y,
61341
61393
  fromDrag = info.fromDrag;
@@ -61369,7 +61421,7 @@ var useTableVirtual = function useTableVirtual(props) {
61369
61421
  } else {
61370
61422
  updateIndexAndTopFromTop(scrollTop);
61371
61423
  }
61372
- };
61424
+ });
61373
61425
  var scrollToIndex = usePersistFn(function (index, callback) {
61374
61426
  if (props.disabled) return;
61375
61427
  if (props.scrollRef.current) {
@@ -61474,15 +61526,24 @@ var useTableVirtual = function useTableVirtual(props) {
61474
61526
  }
61475
61527
  }, [scrollHeight]);
61476
61528
  var finalRowsInView = rowsInView + context.rowSpanRows + context.autoAddRows;
61477
- var renderData = props.disabled ? props.data : toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
61529
+ var renderData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
61530
+ if (props.disabled) return props.data;
61531
+ return toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
61532
+ }, [props.data, startIndex, finalRowsInView]);
61533
+ var translateStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
61534
+ var t = innerTop + offsetY;
61535
+ if (t < 0) {
61536
+ t = 0;
61537
+ }
61538
+ return "translate3d(0, ".concat(0 - t, "px, 0)");
61539
+ }, [innerTop]);
61478
61540
  return {
61479
61541
  scrollHeight: scrollHeight,
61480
61542
  startIndex: startIndex,
61481
- innerTop: innerTop + offsetY,
61543
+ translateStyle: translateStyle,
61482
61544
  data: renderData,
61483
61545
  handleScroll: handleScroll,
61484
61546
  setRowHeight: setRowHeight,
61485
- getTranslate: getTranslate,
61486
61547
  scrollToIndex: scrollToIndex,
61487
61548
  scrollColumnByLeft: scrollColumnByLeft,
61488
61549
  scrollColumnIntoView: scrollColumnIntoView
@@ -62516,7 +62577,7 @@ var useTableRow = function useTableRow(props) {
62516
62577
  };
62517
62578
  };
62518
62579
  /* harmony default export */ var use_table_row = (useTableRow);
62519
- ;// CONCATENATED MODULE: ../hooks/src/common/use-memo/use-memo.ts
62580
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-component-memo/use-memo.ts
62520
62581
 
62521
62582
  function useMemo(getValue, condition, shouldUpdate) {
62522
62583
  var cacheRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef({});
@@ -62552,6 +62613,7 @@ function Td(props) {
62552
62613
  className = props.className,
62553
62614
  direction = props.direction,
62554
62615
  role = props.role,
62616
+ data = props.data,
62555
62617
  onClick = props.onClick,
62556
62618
  onMouseEnter = props.onMouseEnter,
62557
62619
  onMouseLeave = props.onMouseLeave,
@@ -62572,15 +62634,14 @@ function Td(props) {
62572
62634
  onClick: onClick,
62573
62635
  children: content
62574
62636
  }, col.key);
62575
- }, [].concat(toConsumableArray_default()(externalDependencies), [className, style, col.type, col.treeColumnsName
62576
- // onClick,
62577
- // onMouseEnter,
62578
- // onMouseLeave,
62579
- ]), updateFn ? function (prev, next) {
62637
+ }, [data, className, style, col.type, col.treeColumnsName].concat(toConsumableArray_default()(externalDependencies)), updateFn ? function (prev, next) {
62580
62638
  if (col.type || col.treeColumnsName) {
62581
62639
  return true;
62582
62640
  }
62583
62641
  return prev.some(function (_, index) {
62642
+ if (index === 0) {
62643
+ return updateFn(prev[index], next[index]);
62644
+ }
62584
62645
  return !shallowEqual(prev[index], next[index]);
62585
62646
  });
62586
62647
  } : undefined);
@@ -63162,6 +63223,7 @@ function TbodyEmpty(_ref) {
63162
63223
 
63163
63224
 
63164
63225
 
63226
+
63165
63227
  var table_excluded = ["data"];
63166
63228
 
63167
63229
 
@@ -63202,7 +63264,8 @@ var emptyRef = {
63202
63264
  var theadRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63203
63265
  var tfootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63204
63266
  var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63205
- var mirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63267
+ var headMirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63268
+ var bottomMirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63206
63269
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
63207
63270
  var browserScrollbarWidth = useScrollbarWidth();
63208
63271
  if (props.fixed) {
@@ -63375,14 +63438,23 @@ var emptyRef = {
63375
63438
  isRtl: isRtl,
63376
63439
  theadAndTfootHeight: context.theadAndTfootHeight
63377
63440
  });
63441
+ var syncHeaderScroll = usePersistFn(function (left) {
63442
+ var _theadRef$current2;
63443
+ if (props.hideHeader || !props.sticky) return;
63444
+ if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$current2 = theadRef.current) !== null && _theadRef$current2 !== void 0 && _theadRef$current2.parentElement)) return;
63445
+ theadRef.current.parentElement.scrollLeft = left;
63446
+ });
63378
63447
 
63379
63448
  // 简单表格的滚动事件
63380
63449
  var handleBodyScroll = usePersistFn(function (e) {
63381
63450
  var target = e.currentTarget;
63382
63451
  if (!target) return;
63383
63452
  layoutFunc.checkFloat();
63384
- if (mirrorScrollRef.current) {
63385
- mirrorScrollRef.current.scrollLeft = target.scrollLeft;
63453
+ if (headMirrorScrollRef.current) {
63454
+ headMirrorScrollRef.current.scrollLeft = target.scrollLeft;
63455
+ }
63456
+ if (bottomMirrorScrollRef.current) {
63457
+ bottomMirrorScrollRef.current.scrollLeft = target.scrollLeft;
63386
63458
  }
63387
63459
  if (props.onScroll && typeof props.onScroll === 'function') {
63388
63460
  var maxWidth = target.scrollWidth - target.clientWidth;
@@ -63391,18 +63463,23 @@ var emptyRef = {
63391
63463
  var y = Math.min(target.scrollTop / maxHeight, 1);
63392
63464
  props.onScroll(x, y, target.scrollLeft, target.scrollTop);
63393
63465
  }
63466
+ syncHeaderScroll(target.scrollLeft);
63394
63467
  });
63395
63468
 
63396
63469
  // 虚拟表格的滚动事件
63397
63470
  var handleVirtualScroll = usePersistFn(function (info) {
63398
63471
  virtualInfo.handleScroll(info);
63399
63472
  layoutFunc.checkFloat();
63400
- if (mirrorScrollRef.current) {
63401
- mirrorScrollRef.current.scrollLeft = info.scrollLeft;
63473
+ if (headMirrorScrollRef.current) {
63474
+ headMirrorScrollRef.current.scrollLeft = info.scrollLeft;
63475
+ }
63476
+ if (bottomMirrorScrollRef.current) {
63477
+ bottomMirrorScrollRef.current.scrollLeft = info.scrollLeft;
63402
63478
  }
63403
63479
  if (props.onScroll && typeof props.onScroll === 'function') {
63404
63480
  props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
63405
63481
  }
63482
+ syncHeaderScroll(info.scrollLeft);
63406
63483
  });
63407
63484
  var renderEmpty = function renderEmpty() {
63408
63485
  var _props$data2;
@@ -63516,7 +63593,7 @@ var emptyRef = {
63516
63593
  });
63517
63594
  return /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? scrollerStickyProps : {}), {}, {
63518
63595
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63519
- className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headMirrorScroller,
63596
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.mirrorScroller,
63520
63597
  style: {
63521
63598
  height: browserScrollbarWidth,
63522
63599
  width: mirrorScrollRefWidth
@@ -63527,7 +63604,7 @@ var emptyRef = {
63527
63604
  scrollRef.current.scrollLeft = target.scrollLeft;
63528
63605
  }
63529
63606
  },
63530
- ref: mirrorScrollRef,
63607
+ ref: headMirrorScrollRef,
63531
63608
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63532
63609
  style: {
63533
63610
  width: scrollRef === null || scrollRef === void 0 || (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 === void 0 ? void 0 : _scrollRef$current3.scrollWidth,
@@ -63537,33 +63614,84 @@ var emptyRef = {
63537
63614
  })
63538
63615
  }));
63539
63616
  };
63617
+ var renderBottomMirrorScroller = function renderBottomMirrorScroller() {
63618
+ var _scrollRef$current4, _scrollRef$current5, _scrollRef$current6;
63619
+ if (!props.showBottomScrollbar) return null;
63620
+ var scrollRefWidth = (scrollRef === null || scrollRef === void 0 || (_scrollRef$current4 = scrollRef.current) === null || _scrollRef$current4 === void 0 ? void 0 : _scrollRef$current4.clientWidth) || 0;
63621
+ var scrollRefScrollWidth = (scrollRef === null || scrollRef === void 0 || (_scrollRef$current5 = scrollRef.current) === null || _scrollRef$current5 === void 0 ? void 0 : _scrollRef$current5.scrollWidth) || 0;
63622
+ var mirrorScrollRefWidth = scrollRefWidth + scrollBarWidth;
63623
+ var showScroll = scrollRefScrollWidth > scrollRefWidth;
63624
+ // 开启了双滚,但是没有滚动条,不显示
63625
+ if (!scrollRefWidth || !mirrorScrollRefWidth || !showScroll) return null;
63626
+ var options = props.showBottomScrollbar === true ? {} : props.showBottomScrollbar;
63627
+ var scrollerStickyProps = {
63628
+ scrollContainer: options.scrollContainer || document.body,
63629
+ bottom: options.bottom || 0,
63630
+ zIndex: options.zIndex || defaultZIndex + 1,
63631
+ parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
63632
+ };
63633
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(src_sticky_sticky, objectSpread2_default()(objectSpread2_default()({}, scrollerStickyProps), {}, {
63634
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63635
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.mirrorScroller,
63636
+ style: {
63637
+ height: browserScrollbarWidth,
63638
+ width: mirrorScrollRefWidth,
63639
+ marginTop: -browserScrollbarWidth
63640
+ },
63641
+ onScroll: function onScroll(e) {
63642
+ var target = e.currentTarget;
63643
+ if (scrollRef !== null && scrollRef !== void 0 && scrollRef.current && scrollRef.current.scrollLeft !== target.scrollLeft) {
63644
+ scrollRef.current.scrollLeft = target.scrollLeft;
63645
+ }
63646
+ },
63647
+ ref: bottomMirrorScrollRef,
63648
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63649
+ style: {
63650
+ width: scrollRef === null || scrollRef === void 0 || (_scrollRef$current6 = scrollRef.current) === null || _scrollRef$current6 === void 0 ? void 0 : _scrollRef$current6.scrollWidth,
63651
+ height: 1
63652
+ }
63653
+ })
63654
+ })
63655
+ }));
63656
+ };
63657
+ var $headTable = /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63658
+ style: {
63659
+ width: width
63660
+ },
63661
+ ref: theadRef,
63662
+ children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
63663
+ });
63540
63664
  if (isRenderVirtualTable) {
63541
- var _props$data4, _props$data5;
63665
+ var _props$data4;
63542
63666
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
63543
- children: [renderHeadMirrorScroller(), /*#__PURE__*/(0,jsx_runtime.jsxs)(scroll_table, {
63667
+ children: [renderHeadMirrorScroller(), !props.hideHeader && props.sticky && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, stickyProps), {}, {
63668
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63669
+ className: headWrapperClass,
63670
+ style: {
63671
+ overflow: 'hidden'
63672
+ },
63673
+ children: $headTable
63674
+ })
63675
+ })), /*#__PURE__*/(0,jsx_runtime.jsxs)(scroll_table, {
63676
+ style: {
63677
+ display: 'flex',
63678
+ minWidth: 0,
63679
+ minHeight: 0,
63680
+ flex: 1
63681
+ },
63544
63682
  wrapperRef: scrollRef,
63545
63683
  scrollWidth: width || 1,
63546
63684
  scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
63547
63685
  onScroll: handleVirtualScroll,
63548
63686
  defaultHeight: context.emptyHeight,
63549
63687
  isScrollY: isScrollY,
63550
- isEmptyContent: !((_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length),
63551
- isHeaderSticky: stickyProps === null || stickyProps === void 0 ? void 0 : stickyProps.css,
63552
- children: [!props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? stickyProps : {}), {}, {
63553
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63554
- className: headWrapperClass,
63555
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63556
- style: {
63557
- width: width
63558
- },
63559
- ref: theadRef,
63560
- children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
63561
- })
63562
- })
63563
- })), !!((_props$data5 = props.data) !== null && _props$data5 !== void 0 && _props$data5.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63688
+ children: [!props.hideHeader && !props.sticky && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
63689
+ className: headWrapperClass,
63690
+ children: $headTable
63691
+ }), !!((_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
63564
63692
  style: {
63565
63693
  width: width,
63566
- transform: virtualInfo.getTranslate()
63694
+ transform: virtualInfo.translateStyle
63567
63695
  },
63568
63696
  ref: tbodyRef,
63569
63697
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
@@ -63581,7 +63709,7 @@ var emptyRef = {
63581
63709
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
63582
63710
  })
63583
63711
  }) : null, renderEmpty()]
63584
- })]
63712
+ }), renderBottomMirrorScroller()]
63585
63713
  });
63586
63714
  }
63587
63715
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
@@ -63598,7 +63726,7 @@ var emptyRef = {
63598
63726
  children: renderEmpty()
63599
63727
  }) : /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
63600
63728
  })
63601
- })]
63729
+ }), renderBottomMirrorScroller()]
63602
63730
  });
63603
63731
  };
63604
63732
  var renderLoading = function renderLoading() {
@@ -63618,6 +63746,36 @@ var emptyRef = {
63618
63746
  align: "right"
63619
63747
  }, pagination), paginationInfo));
63620
63748
  };
63749
+
63750
+ // handle head and foot scroll
63751
+ var handleHeaderWheel = usePersistFn(function (e) {
63752
+ var _theadRef$current3;
63753
+ var scrollEl = scrollRef.current;
63754
+ if (!scrollEl) return;
63755
+ if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$current3 = theadRef.current) !== null && _theadRef$current3 !== void 0 && _theadRef$current3.parentElement)) return;
63756
+ var max = scrollEl.scrollWidth - scrollEl.clientWidth;
63757
+ var scrollLeft = scrollEl.scrollLeft + e.deltaX;
63758
+ if (scrollLeft === scrollEl.scrollLeft) {
63759
+ return;
63760
+ }
63761
+ e.preventDefault();
63762
+ var left = Math.min(Math.max(scrollLeft, 0), max);
63763
+ scrollEl.scrollLeft = left;
63764
+ theadRef.current.parentElement.scrollLeft = left;
63765
+ });
63766
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
63767
+ // 绑定 wheel 事件
63768
+ if (props.sticky && theadRef.current && theadRef.current.parentElement) {
63769
+ theadRef.current.parentElement.addEventListener('wheel', handleHeaderWheel, {
63770
+ passive: false
63771
+ });
63772
+ }
63773
+ return function () {
63774
+ if (props.sticky && theadRef.current && theadRef.current.parentElement) {
63775
+ theadRef.current.parentElement.removeEventListener('wheel', handleHeaderWheel);
63776
+ }
63777
+ };
63778
+ }, [theadRef.current, props.sticky, isScrollY]);
63621
63779
  var getRenderIndexByData = function getRenderIndexByData(data) {
63622
63780
  var originKey = typeof data === 'string' ? data : getKey(props.keygen, data);
63623
63781
  var index = treeData.findIndex(function (item) {
@@ -63653,7 +63811,7 @@ var emptyRef = {
63653
63811
  });
63654
63812
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
63655
63813
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
63656
- className: classnames_default()(tableWrapperClass, floatLeft && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatLeft), floatRight && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatRight), props.sticky && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sticky)),
63814
+ className: classnames_default()(tableWrapperClass, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
63657
63815
  style: objectSpread2_default()({
63658
63816
  height: defaultHeight
63659
63817
  }, props.style)
@@ -64372,7 +64530,7 @@ var TabsHeader = function TabsHeader(props) {
64372
64530
 
64373
64531
 
64374
64532
 
64375
- var tabs_excluded = ["jssStyle", "align", "children", "shape", "position", "lazy", "autoFill", "hideSplit", "collapsible", "defaultCollapsed", "onChange", "extra", "border", "splitColor", "tabBarExtraContent", "background", "activeBackground", "inactiveBackground", "defaultActive", "tabBarStyle", "color", "sticky", "allowNonPanel", "className"];
64533
+ var tabs_excluded = ["jssStyle", "align", "children", "shape", "position", "lazy", "autoFill", "hideSplit", "collapsible", "defaultCollapsed", "onChange", "extra", "border", "splitColor", "tabBarExtraContent", "background", "activeBackground", "inactiveBackground", "defaultActive", "tabBarStyle", "color", "sticky", "allowNonPanel", "renderTabsHeader", "className"];
64376
64534
 
64377
64535
 
64378
64536
 
@@ -64429,6 +64587,7 @@ var Tabs = function Tabs(props) {
64429
64587
  color = props.color,
64430
64588
  sticky = props.sticky,
64431
64589
  allowNonPanel = props.allowNonPanel,
64590
+ renderTabsHeader = props.renderTabsHeader,
64432
64591
  tabsClassName = props.className,
64433
64592
  rest = objectWithoutProperties_default()(props, tabs_excluded);
64434
64593
  var shape = shapeProps && shapeProps !== 'bordered' ? shapeProps : 'card';
@@ -64589,10 +64748,18 @@ var Tabs = function Tabs(props) {
64589
64748
  className: classnames_default()(stickyClassName, sticky.className)
64590
64749
  });
64591
64750
  }
64751
+ if (renderTabsHeader) {
64752
+ return renderTabsHeader( /*#__PURE__*/(0,jsx_runtime.jsx)(src_sticky_sticky, objectSpread2_default()(objectSpread2_default()({}, stickyProps), {}, {
64753
+ children: header
64754
+ })), props);
64755
+ }
64592
64756
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_sticky_sticky, objectSpread2_default()(objectSpread2_default()({}, stickyProps), {}, {
64593
64757
  children: header
64594
64758
  }));
64595
64759
  }
64760
+ if (renderTabsHeader) {
64761
+ return renderTabsHeader(header, props);
64762
+ }
64596
64763
  return header;
64597
64764
  };
64598
64765
  var renderTabs = function renderTabs() {
@@ -66085,7 +66252,7 @@ var TreeSelect = function TreeSelect(props0) {
66085
66252
  if (from !== 'blur') {
66086
66253
  focusAndOpen();
66087
66254
  }
66088
- onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text);
66255
+ onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text, from);
66089
66256
  };
66090
66257
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
66091
66258
  if (virtual && expanded) {
@@ -70004,7 +70171,7 @@ var upload_interface = __webpack_require__(8821);
70004
70171
 
70005
70172
 
70006
70173
  /* harmony default export */ var src_0 = ({
70007
- version: '3.7.0-beta.6'
70174
+ version: '3.7.0-beta.8'
70008
70175
  });
70009
70176
  }();
70010
70177
  /******/ return __webpack_exports__;