shineout 3.3.3 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.3'
479
+ version: '3.4.0-beta.1'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.3');
11971
+ /* harmony default export */ var version = ('3.4.0-beta.1');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -16813,13 +16813,6 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16813
16813
  marginTop: src.cascaderPlaceholderMarginY,
16814
16814
  marginBottom: src.cascaderPlaceholderMarginY
16815
16815
  },
16816
- inputPlaceholder: {
16817
- pointerEvents: 'none',
16818
- opacity: 0.5,
16819
- inset: 0,
16820
- position: 'absolute',
16821
- padding: "".concat(src.selectOptionInnerPaddingY, " ").concat(src.selectOptionInnerPaddingX)
16822
- },
16823
16816
  inputMirror: {
16824
16817
  position: 'absolute',
16825
16818
  left: 0,
@@ -19680,15 +19673,13 @@ var collapseWidth = src.menuCollapseWidth;
19680
19673
  var transitionFunc = 'ease-out';
19681
19674
  var menuStyle = {
19682
19675
  wrapper: {
19676
+ height: '100%',
19683
19677
  width: '100%',
19684
19678
  backgroundColor: src.menuItemBackgroundColor,
19685
19679
  transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
19686
19680
  color: src.menuFontColor,
19687
19681
  display: 'flex',
19688
- flexDirection: 'column',
19689
- '&:not([data-soui-mode=horizontal])': {
19690
- height: '100%'
19691
- }
19682
+ flexDirection: 'column'
19692
19683
  },
19693
19684
  wrapperLight: {},
19694
19685
  wrapperDark: {
@@ -21871,6 +21862,16 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
21871
21862
  color: src.selectDisabledPlaceholderColor
21872
21863
  }
21873
21864
  }),
21865
+ triggerHover: {
21866
+ '&::after': {
21867
+ content: '""',
21868
+ position: 'absolute',
21869
+ right: 0,
21870
+ left: 0,
21871
+ height: 4,
21872
+ bottom: -4
21873
+ }
21874
+ },
21874
21875
  popover: {}
21875
21876
  }, select_resetWrapper), {}, {
21876
21877
  resultWrapper: {
@@ -22143,13 +22144,6 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
22143
22144
  marginTop: src.selectPlaceholderMarginY,
22144
22145
  marginBottom: src.selectPlaceholderMarginY
22145
22146
  },
22146
- inputPlaceholder: {
22147
- pointerEvents: 'none',
22148
- opacity: 0.5,
22149
- inset: 0,
22150
- position: 'absolute',
22151
- padding: "".concat(src.selectOptionInnerPaddingY, " ").concat(src.selectOptionInnerPaddingX)
22152
- },
22153
22147
  inputMirror: {
22154
22148
  position: 'absolute',
22155
22149
  left: 0,
@@ -27056,13 +27050,6 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
27056
27050
  marginTop: src.treeSelectPlaceholderMarginY,
27057
27051
  marginBottom: src.treeSelectPlaceholderMarginY
27058
27052
  },
27059
- inputPlaceholder: {
27060
- pointerEvents: 'none',
27061
- opacity: 0.5,
27062
- inset: 0,
27063
- position: 'absolute',
27064
- padding: "".concat(src.selectOptionInnerPaddingY, " ").concat(src.selectOptionInnerPaddingX)
27065
- },
27066
27053
  inputMirror: {
27067
27054
  position: 'absolute',
27068
27055
  left: 0,
@@ -29875,7 +29862,7 @@ var addResizeObserver = function addResizeObserver(el, handler) {
29875
29862
  if (height && lastHeight !== height) {
29876
29863
  debounceHandler(entry);
29877
29864
  }
29878
- } else if (lastWidth !== width || lastHeight !== height) {
29865
+ } else if (width && height) {
29879
29866
  debounceHandler(entry, {
29880
29867
  x: lastWidth !== width,
29881
29868
  y: lastHeight !== height
@@ -36023,14 +36010,6 @@ var result_Input = function Input(props) {
36023
36010
  _useState2 = slicedToArray_default()(_useState, 2),
36024
36011
  value = _useState2[0],
36025
36012
  setValue = _useState2[1];
36026
- var updateValue = function updateValue() {
36027
- setValue(props.value);
36028
- };
36029
- if (props.inputRef) {
36030
- props.inputRef.current = {
36031
- updateValue: updateValue
36032
- };
36033
- }
36034
36013
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36035
36014
  setValue(props.value);
36036
36015
  }, [props.value, props.open]);
@@ -36069,7 +36048,6 @@ var Result = function Result(props) {
36069
36048
  range = props.range,
36070
36049
  placeholder = props.placeholder,
36071
36050
  _onChange = props.onChange,
36072
- _onRef = props.onRef,
36073
36051
  disabledLeft = props.disabledLeft,
36074
36052
  disabledRight = props.disabledRight,
36075
36053
  _props$activeIndex = props.activeIndex,
@@ -36083,7 +36061,6 @@ var Result = function Result(props) {
36083
36061
  clickIndex: 0
36084
36062
  }),
36085
36063
  context = _useRef.current;
36086
- var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
36087
36064
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36088
36065
  if (open) {
36089
36066
  if (context.inputRefs[activeIndex]) {
@@ -36136,12 +36113,10 @@ var Result = function Result(props) {
36136
36113
  className: styles === null || styles === void 0 ? void 0 : styles.resultTextPadding,
36137
36114
  children: info.inputable ? /*#__PURE__*/(0,jsx_runtime.jsx)(result_Input, {
36138
36115
  onRef: function onRef(el) {
36139
- _onRef.current.inputRef = el;
36140
36116
  context.inputRefs[info.index] = el;
36141
36117
  },
36142
36118
  disabled: dis,
36143
36119
  open: !!open,
36144
- inputRef: inputRef,
36145
36120
  value: info.target || info.value || '',
36146
36121
  placeholder: info.place,
36147
36122
  onChange: function onChange(s) {
@@ -36151,11 +36126,10 @@ var Result = function Result(props) {
36151
36126
  context.clickIndex = info.index;
36152
36127
  },
36153
36128
  onBlur: function onBlur(e) {
36154
- var _props$onBlur, _inputRef$current$upd, _inputRef$current;
36129
+ var _props$onBlur;
36155
36130
  e.stopPropagation();
36156
36131
  if (e.relatedTarget === context.inputRefs[1 - info.index]) return;
36157
36132
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
36158
- if (inputRef.current) (_inputRef$current$upd = (_inputRef$current = inputRef.current).updateValue) === null || _inputRef$current$upd === void 0 || _inputRef$current$upd.call(_inputRef$current);
36159
36133
  context.clickIndex = 0;
36160
36134
  },
36161
36135
  onFocus: function onFocus(e) {
@@ -36257,13 +36231,6 @@ var ResultInput = function ResultInput(props) {
36257
36231
  onRef.current = inputRef.current;
36258
36232
  onBindInput === null || onBindInput === void 0 || onBindInput(inputRef.current);
36259
36233
  }, []);
36260
- var renderResultPlaceholder = function renderResultPlaceholder() {
36261
- if (inputText || !focus || typeof props.placeholder === 'string') return null;
36262
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
36263
- className: styles.inputPlaceholder,
36264
- children: props.placeholder
36265
- });
36266
- };
36267
36234
  var style = {};
36268
36235
  if (!multiple) {
36269
36236
  style.width = '100%';
@@ -36277,7 +36244,7 @@ var ResultInput = function ResultInput(props) {
36277
36244
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)(result_Input, {
36278
36245
  onRef: bindInputRef,
36279
36246
  style: style,
36280
- placeholder: typeof props.placeholder === 'string' ? props.placeholder : undefined,
36247
+ placeholder: props.placeholder,
36281
36248
  value: inputText,
36282
36249
  maxLength: maxLength,
36283
36250
  onChange: onChange,
@@ -36289,7 +36256,7 @@ var ResultInput = function ResultInput(props) {
36289
36256
  className: styles.inputMirror,
36290
36257
  ref: mirrorRef,
36291
36258
  children: inputText || value
36292
- }), renderResultPlaceholder()]
36259
+ })]
36293
36260
  });
36294
36261
  };
36295
36262
  /* harmony default export */ var result_input = (ResultInput);
@@ -36770,7 +36737,7 @@ var result_Result = function Result(props) {
36770
36737
  onRemove = props.onRemove,
36771
36738
  onResultItemClick = props.onResultItemClick,
36772
36739
  data = props.data;
36773
- var value = [null, undefined].includes(valueProp) ? [] : Array.isArray(valueProp) ? valueProp : [valueProp];
36740
+ var value = result_isArray(valueProp) ? valueProp : [valueProp];
36774
36741
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(-1),
36775
36742
  _useState2 = slicedToArray_default()(_useState, 2),
36776
36743
  more = _useState2[0],
@@ -36818,10 +36785,14 @@ var result_Result = function Result(props) {
36818
36785
  onResultItemClick === null || onResultItemClick === void 0 || onResultItemClick(e, item);
36819
36786
  };
36820
36787
  var renderInput = function renderInput() {
36821
- var _placeholder = empty ? placeholder : '';
36788
+ var placeholder2 = empty ? placeholder : '';
36822
36789
  if (!multiple && valueProp && valueProp !== 0) {
36823
36790
  var _result = getDataByValues(value);
36824
- _placeholder = renderResultContent(_result[0]);
36791
+ // 获取合法的 content
36792
+ var content = renderResultContent(_result[0]);
36793
+ if (typeof content === 'string') {
36794
+ placeholder2 = content;
36795
+ }
36825
36796
  }
36826
36797
  return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
36827
36798
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_input, {
@@ -36839,7 +36810,7 @@ var result_Result = function Result(props) {
36839
36810
  convertBr: convertBr,
36840
36811
  onInputBlur: onInputBlur,
36841
36812
  onClearCreatedData: onClearCreatedData,
36842
- placeholder: _placeholder,
36813
+ placeholder: placeholder2,
36843
36814
  disabled: isFunc(disabled) ? false : !!disabled
36844
36815
  })
36845
36816
  }, 'input');
@@ -36923,9 +36894,7 @@ var result_Result = function Result(props) {
36923
36894
  }, 'single');
36924
36895
  };
36925
36896
  var getValueArr = function getValueArr(v) {
36926
- return (result_isArray(v) ? v : [v]).filter(function (v) {
36927
- return v !== undefined && v !== null;
36928
- });
36897
+ return result_isArray(v) ? v : [v];
36929
36898
  };
36930
36899
  var renderMultipleResult = function renderMultipleResult() {
36931
36900
  if (isEmptyResult()) return renderNbsp();
@@ -42480,9 +42449,6 @@ var DatePicker = function DatePicker(props0) {
42480
42449
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
42481
42450
  activeIndex = _React$useState2[0],
42482
42451
  setActiveIndex = _React$useState2[1];
42483
- var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
42484
- inputRef: null
42485
- });
42486
42452
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
42487
42453
  var isRTL = direction === 'rtl';
42488
42454
  var dfp = isRTL ? 'bottom-right' : 'bottom-left';
@@ -42581,11 +42547,6 @@ var DatePicker = function DatePicker(props0) {
42581
42547
  setFocused(false);
42582
42548
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
42583
42549
  });
42584
- var handleClose = function handleClose() {
42585
- var _inputRef$current$inp;
42586
- closePop();
42587
- (_inputRef$current$inp = inputRef.current.inputRef) === null || _inputRef$current$inp === void 0 || _inputRef$current$inp.blur();
42588
- };
42589
42550
  var handleResultClick = usePersistFn(function () {
42590
42551
  if (disabledStatus === 'all') return;
42591
42552
  openPop();
@@ -42598,7 +42559,6 @@ var DatePicker = function DatePicker(props0) {
42598
42559
  activeIndex: activeIndex,
42599
42560
  type: type,
42600
42561
  range: range,
42601
- onRef: inputRef,
42602
42562
  inputable: props.inputable && !props.formatResult,
42603
42563
  disabledLeft: disabledStatus === 'left',
42604
42564
  disabledRight: disabledStatus === 'right',
@@ -42627,7 +42587,7 @@ var DatePicker = function DatePicker(props0) {
42627
42587
  onKeyDown: function onKeyDown(e) {
42628
42588
  if (e.key === 'Enter') {
42629
42589
  if (open) {
42630
- handleClose();
42590
+ closePop();
42631
42591
  } else {
42632
42592
  openPop();
42633
42593
  }
@@ -42684,7 +42644,7 @@ var DatePicker = function DatePicker(props0) {
42684
42644
  options: options,
42685
42645
  disabled: disabled,
42686
42646
  jssStyle: jssStyle,
42687
- closePop: handleClose,
42647
+ closePop: closePop,
42688
42648
  defaultTime: props.defaultTime,
42689
42649
  min: props.min,
42690
42650
  max: props.max,
@@ -43735,7 +43695,7 @@ DrawerComp.Submit = src_modal_0.Submit;
43735
43695
 
43736
43696
 
43737
43697
  var Item_excluded = ["className"],
43738
- Item_excluded2 = ["className", "onClick"];
43698
+ Item_excluded2 = ["className"];
43739
43699
 
43740
43700
 
43741
43701
 
@@ -43797,15 +43757,10 @@ var Item_Item = /*#__PURE__*/function (_React$PureComponent) {
43797
43757
  var _ref2 = content.props,
43798
43758
  _ref2$className = _ref2.className,
43799
43759
  contentPropsClassName = _ref2$className === void 0 ? '' : _ref2$className,
43800
- contentPropsOnClick = _ref2.onClick,
43801
43760
  otherContentProps = objectWithoutProperties_default()(_ref2, Item_excluded2);
43802
43761
  var className = classnames_default()(propsClassName, contentPropsClassName);
43803
43762
  return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(content, Object.assign(otherProps, otherContentProps, {
43804
- className: className,
43805
- onClick: function onClick(e) {
43806
- if (contentPropsOnClick) contentPropsOnClick(e);
43807
- if (props.onClick) props.onClick(e);
43808
- }
43763
+ className: className
43809
43764
  }));
43810
43765
  }
43811
43766
  return /*#__PURE__*/(0,jsx_runtime.jsx)("a", objectSpread2_default()(objectSpread2_default()({}, props), {}, {
@@ -47972,10 +47927,26 @@ var Scroll = function Scroll(props) {
47972
47927
  marginTop: props.isScrollY ? 0 : -1,
47973
47928
  lineHeight: 0
47974
47929
  };
47930
+ var extractHeightValue = function extractHeightValue(num) {
47931
+ if (isNumber(num)) return num;
47932
+ var match = num.match(/(\d+)/);
47933
+ if (match) {
47934
+ return parseInt(match[0], 10);
47935
+ }
47936
+ return undefined;
47937
+ };
47975
47938
  var handleScroll = usePersistFn(function (e) {
47939
+ var onScrollToBottom = props.onScrollToBottom;
47976
47940
  var target = e.currentTarget;
47977
47941
  var scrollLeft = target.scrollLeft,
47978
47942
  scrollTop = target.scrollTop;
47943
+ if (props.height && onScrollToBottom) {
47944
+ var realHeight = extractHeightValue(props.height);
47945
+ if (realHeight !== undefined) {
47946
+ var touchBottom = target.scrollHeight === scrollTop + realHeight;
47947
+ if (touchBottom) onScrollToBottom();
47948
+ }
47949
+ }
47979
47950
  var maxY = target.scrollHeight - target.clientHeight;
47980
47951
  var maxX = target.scrollWidth - target.clientWidth;
47981
47952
  if (!isRtl) {
@@ -48107,6 +48078,7 @@ var VirtualList = function VirtualList(props) {
48107
48078
  return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
48108
48079
  className: className,
48109
48080
  style: nextStyle,
48081
+ height: height,
48110
48082
  scrollWidth: 0,
48111
48083
  scrollHeight: scrollHeight,
48112
48084
  wrapperRef: wrapperRef,
@@ -48430,6 +48402,8 @@ var ListOption = function ListOption(props) {
48430
48402
 
48431
48403
 
48432
48404
 
48405
+
48406
+
48433
48407
  var list_List = function List(props) {
48434
48408
  var _jssStyle$select;
48435
48409
  var jssStyle = props.jssStyle,
@@ -48444,6 +48418,7 @@ var list_List = function List(props) {
48444
48418
  itemsInView = _props$itemsInView === void 0 ? 10 : _props$itemsInView,
48445
48419
  lineHeightProp = props.lineHeight,
48446
48420
  loading = props.loading,
48421
+ threshold = props.threshold,
48447
48422
  controlType = props.controlType,
48448
48423
  hideCreateOption = props.hideCreateOption,
48449
48424
  optionListRef = props.optionListRef,
@@ -48545,6 +48520,41 @@ var list_List = function List(props) {
48545
48520
  }
48546
48521
  }
48547
48522
  });
48523
+ var handleVirtualScroll = usePersistFn( /*#__PURE__*/function () {
48524
+ var _ref = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(info) {
48525
+ var onLoadMore;
48526
+ return regeneratorRuntime_default()().wrap(function _callee$(_context) {
48527
+ while (1) switch (_context.prev = _context.next) {
48528
+ case 0:
48529
+ onLoadMore = props.onLoadMore;
48530
+ if (!(typeof onLoadMore !== 'function')) {
48531
+ _context.next = 3;
48532
+ break;
48533
+ }
48534
+ return _context.abrupt("return");
48535
+ case 3:
48536
+ if (onLoadMore) {
48537
+ _context.next = 5;
48538
+ break;
48539
+ }
48540
+ return _context.abrupt("return");
48541
+ case 5:
48542
+ if (!(info.y >= threshold)) {
48543
+ _context.next = 8;
48544
+ break;
48545
+ }
48546
+ _context.next = 8;
48547
+ return onLoadMore();
48548
+ case 8:
48549
+ case "end":
48550
+ return _context.stop();
48551
+ }
48552
+ }, _callee);
48553
+ }));
48554
+ return function (_x) {
48555
+ return _ref.apply(this, arguments);
48556
+ };
48557
+ }());
48548
48558
  var renderLoading = function renderLoading() {
48549
48559
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
48550
48560
  children: "loading"
@@ -48590,6 +48600,7 @@ var list_List = function List(props) {
48590
48600
  groupKey: groupKey,
48591
48601
  tagClassName: styles.virtualList,
48592
48602
  height: height,
48603
+ onScroll: handleVirtualScroll,
48593
48604
  lineHeight: lineHeight,
48594
48605
  rowsInView: itemsInView,
48595
48606
  renderItem: renderItem,
@@ -50047,6 +50058,9 @@ function Select(props0) {
50047
50058
  defaultExpanded = props.defaultExpanded,
50048
50059
  defaultExpandAll = props.defaultExpandAll,
50049
50060
  showHitDescendants = props.showHitDescendants,
50061
+ onLoadMore = props.onLoadMore,
50062
+ _props$threshold = props.threshold,
50063
+ threshold = _props$threshold === void 0 ? 1 : _props$threshold,
50050
50064
  renderOptionList = props.renderOptionList,
50051
50065
  onExpand = props.onExpand,
50052
50066
  onChange = props.onChange,
@@ -50057,7 +50071,9 @@ function Select(props0) {
50057
50071
  onCollapseProp = props.onCollapse,
50058
50072
  onEnterExpand = props.onEnterExpand,
50059
50073
  filterSameChange = props.filterSameChange,
50060
- noCache = props.noCache;
50074
+ noCache = props.noCache,
50075
+ _props$trigger = props.trigger,
50076
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger;
50061
50077
  var hasFilter = isFunc(props.onAdvancedFilter || onFilterProp);
50062
50078
  var showInput = hasFilter || isFunc(onCreateProp) || onCreateProp === true;
50063
50079
  var positionProp = props.position || (direction === 'rtl' ? 'bottom-right' : 'bottom-left');
@@ -50125,7 +50141,7 @@ function Select(props0) {
50125
50141
  open: openProp,
50126
50142
  onCollapse: onCollapse,
50127
50143
  disabled: false,
50128
- trigger: 'click',
50144
+ trigger: trigger,
50129
50145
  position: positionProp
50130
50146
  }),
50131
50147
  open = _usePopup.open,
@@ -50134,6 +50150,7 @@ function Select(props0) {
50134
50150
  popupRef = _usePopup.popupRef,
50135
50151
  openPop = _usePopup.openPop,
50136
50152
  closePop = _usePopup.closePop,
50153
+ getTargetProps = _usePopup.getTargetProps,
50137
50154
  PopupProvider = _usePopup.Provider,
50138
50155
  popupProviderValue = _usePopup.providerValue;
50139
50156
  var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
@@ -50220,7 +50237,7 @@ function Select(props0) {
50220
50237
  rootRef: targetRef,
50221
50238
  jssStyle: props.jssStyle
50222
50239
  });
50223
- var rootClass = classnames_default()(className, isEmpty && styles.wrapperEmpty, styles === null || styles === void 0 ? void 0 : styles.wrapper, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), defineProperty_default()({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
50240
+ var rootClass = classnames_default()(className, isEmpty && styles.wrapperEmpty, styles === null || styles === void 0 ? void 0 : styles.wrapper, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), open && trigger === 'hover' && (styles === null || styles === void 0 ? void 0 : styles.triggerHover), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), defineProperty_default()({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
50224
50241
  var getRenderItem = function getRenderItem(data, index) {
50225
50242
  return typeof renderItemProp === 'function' ? renderItemProp(data, index) : data[renderItemProp];
50226
50243
  };
@@ -50488,6 +50505,8 @@ function Select(props0) {
50488
50505
  emptyAfterSelect: emptyAfterSelect,
50489
50506
  renderItem: renderItem,
50490
50507
  controlType: controlType,
50508
+ onLoadMore: onLoadMore,
50509
+ threshold: threshold,
50491
50510
  onControlTypeChange: setControlType,
50492
50511
  closePop: closePop,
50493
50512
  optionListRef: optionListRef,
@@ -50576,6 +50595,9 @@ function Select(props0) {
50576
50595
  }
50577
50596
  return style;
50578
50597
  };
50598
+ var targetProps = getTargetProps();
50599
+ var onMouseEnter = targetProps.onMouseEnter,
50600
+ onMouseLeave = targetProps.onMouseLeave;
50579
50601
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
50580
50602
  ref: targetRef,
50581
50603
  tabIndex: disabled === true || showInput ? undefined : 0
@@ -50591,6 +50613,8 @@ function Select(props0) {
50591
50613
  e.preventDefault();
50592
50614
  }
50593
50615
  },
50616
+ onMouseEnter: onMouseEnter,
50617
+ onMouseLeave: onMouseLeave,
50594
50618
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
50595
50619
  adjust: adjust,
50596
50620
  focus: open,
@@ -56710,7 +56734,6 @@ var useTableRow = function useTableRow(props) {
56710
56734
 
56711
56735
 
56712
56736
 
56713
-
56714
56737
  var Tr = function Tr(props) {
56715
56738
  var _props$jssStyle, _props$jssStyle$table, _props$rowClassName;
56716
56739
  var treeFunc = props.treeFunc;
@@ -56764,22 +56787,12 @@ var Tr = function Tr(props) {
56764
56787
  columnKey: props.columns[colIndex].key
56765
56788
  });
56766
56789
  });
56767
- var setVirtualRowHeight = usePersistFn(function () {
56790
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
56768
56791
  if (props.setRowHeight && trRef.current) {
56769
56792
  var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
56770
56793
  props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
56771
56794
  }
56772
- });
56773
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(setVirtualRowHeight, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
56774
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
56775
- if (!trRef.current) return;
56776
- var cancelObserver = addResizeObserver(trRef.current, setVirtualRowHeight, {
56777
- direction: 'y'
56778
- });
56779
- return function () {
56780
- cancelObserver();
56781
- };
56782
- }, []);
56795
+ }, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
56783
56796
  var renderTreeExpand = function renderTreeExpand(content) {
56784
56797
  var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
56785
56798
  var level = props.treeExpandLevel.get(props.originKey) || 0;
@@ -57895,11 +57908,10 @@ var useTransform = function useTransform(props) {
57895
57908
 
57896
57909
 
57897
57910
 
57898
-
57899
57911
  var Tab = function Tab(props, ref) {
57900
57912
  var _jssStyle$tabs;
57901
57913
  var jssStyle = props.jssStyle,
57902
- propTab = props.tab,
57914
+ tab = props.tab,
57903
57915
  disabled = props.disabled,
57904
57916
  id = props.id,
57905
57917
  color = props.color;
@@ -57927,9 +57939,6 @@ var Tab = function Tab(props, ref) {
57927
57939
  if (disabled) return;
57928
57940
  onChange === null || onChange === void 0 || onChange(id);
57929
57941
  };
57930
- var tab = isLink(propTab) ?
57931
- // 直接返回a标签的内容,不要a标签
57932
- propTab.props.children : propTab;
57933
57942
  var renderCardTab = function renderCardTab() {
57934
57943
  return tab;
57935
57944
  };
@@ -57961,35 +57970,27 @@ var Tab = function Tab(props, ref) {
57961
57970
  if (shape === 'card') {
57962
57971
  style.color = color;
57963
57972
  }
57964
- var containerProps = objectSpread2_default()(objectSpread2_default()({
57973
+ if (shape === 'button') return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, objectSpread2_default()(objectSpread2_default()({
57974
+ className: tabClass,
57975
+ jssStyle: {
57976
+ button: buttonStyle
57977
+ }
57978
+ }, getStateProps()), {}, {
57979
+ style: style,
57980
+ disabled: disabled,
57981
+ type: isActive ? 'primary' : 'secondary',
57982
+ onClick: handleClick,
57983
+ dir: config.direction,
57984
+ children: tab
57985
+ }));
57986
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
57987
+ dir: config.direction,
57965
57988
  className: tabClass
57966
57989
  }, getStateProps()), {}, {
57967
57990
  style: style,
57968
57991
  onClick: handleClick,
57969
57992
  ref: ref,
57970
- dir: config.direction
57971
- });
57972
- if (shape === 'button') {
57973
- return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, objectSpread2_default()(objectSpread2_default()({
57974
- jssStyle: {
57975
- button: buttonStyle
57976
- },
57977
- disabled: disabled,
57978
- type: isActive ? 'primary' : 'secondary'
57979
- }, containerProps), {}, {
57980
- children: tab
57981
- }));
57982
- }
57983
- var $children = /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
57984
57993
  children: [shape === 'card' && renderCardTab(), shape === 'line' && renderLineTab(), shape === 'dash' && renderDashTab(), shape === 'fill' && renderFillTab()]
57985
- });
57986
- if (isLink(propTab)) {
57987
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(propTab, objectSpread2_default()({
57988
- children: $children
57989
- }, containerProps));
57990
- }
57991
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, containerProps), {}, {
57992
- children: $children
57993
57994
  }));
57994
57995
  };
57995
57996
  /* harmony default export */ var tabs_tab = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Tab));
@@ -63732,7 +63733,7 @@ var upload_interface = __webpack_require__(8821);
63732
63733
 
63733
63734
 
63734
63735
  /* harmony default export */ var src_0 = ({
63735
- version: '3.3.3'
63736
+ version: '3.4.0-beta.1'
63736
63737
  });
63737
63738
  }();
63738
63739
  /******/ return __webpack_exports__;