shineout 3.7.1-beta.2 → 3.7.1-beta.4

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.1-beta.2'
525
+ version: '3.7.1-beta.4'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12227,7 +12227,7 @@ var handleStyle = function handleStyle(style) {
12227
12227
  };
12228
12228
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12229
12229
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12230
- /* harmony default export */ var version = ('3.7.1-beta.2');
12230
+ /* harmony default export */ var version = ('3.7.1-beta.4');
12231
12231
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12232
12232
 
12233
12233
 
@@ -16212,7 +16212,7 @@ var ButtonStyle = {
16212
16212
  borderBottomRightRadius: "calc(".concat(src.buttonBorderRadius, " - 1px)")
16213
16213
  }
16214
16214
  },
16215
- '[data-soui-role="input-group-seperate"] > &': {
16215
+ '[data-soui-role="input-group-separate"] > &': {
16216
16216
  borderRadius: 0,
16217
16217
  marginLeft: -1,
16218
16218
  '&:first-child': {
@@ -17121,13 +17121,13 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17121
17121
  '[data-soui-role="input-group"] [data-soui-input-border] + &&&': {
17122
17122
  borderLeftWidth: '1px'
17123
17123
  },
17124
- '[data-soui-role="input-group-seperate"] &&&, [data-soui-role="input-group-seperate"] &&&:hover': {
17124
+ '[data-soui-role="input-group-separate"] &&&, [data-soui-role="input-group-separate"] &&&:hover': {
17125
17125
  borderRadius: 0,
17126
17126
  flexShrink: 0,
17127
17127
  width: 'auto',
17128
17128
  'margin-left': "-1px",
17129
17129
  '&:hover': {
17130
- zIndex: 1050
17130
+ zIndex: 7
17131
17131
  },
17132
17132
  '&:first-child': {
17133
17133
  marginLeft: 0,
@@ -17139,7 +17139,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17139
17139
  borderBottomRightRadius: token.borderRadius
17140
17140
  }
17141
17141
  },
17142
- '[dir=rtl][data-soui-role="input-group-seperate"] &&&, [dir=rtl][data-soui-role="input-group-seperate"] &&&:hover': {
17142
+ '[dir=rtl][data-soui-role="input-group-separate"] &&&, [dir=rtl][data-soui-role="input-group-separate"] &&&:hover': {
17143
17143
  '&:first-child': {
17144
17144
  borderRadius: "0 ".concat(token.borderRadius, " ").concat(token.borderRadius, " 0")
17145
17145
  },
@@ -17187,10 +17187,10 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17187
17187
  borderColor: token.focusBorderColor,
17188
17188
  boxShadow: "0 0 0 2px ".concat(token.focusShadow),
17189
17189
  background: token.focusBackgroundColor,
17190
- '&[data-soui-role="input-group-seperate"]': {
17190
+ '&[data-soui-role="input-group-separate"]': {
17191
17191
  boxShadow: 'none'
17192
17192
  },
17193
- '[data-soui-role="input-group-seperate"] &': {
17193
+ '[data-soui-role="input-group-separate"] &': {
17194
17194
  zIndex: 1
17195
17195
  },
17196
17196
  '&:hover': {
@@ -17207,7 +17207,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17207
17207
  boxShadow: "0 0 0 2px ".concat(token.errorFocusShadow),
17208
17208
  borderColor: token.errorFocusBorderColor,
17209
17209
  background: token.errorFocusBackgroundColor
17210
- // '[data-soui-role="input-group-seperate"]&': {
17210
+ // '[data-soui-role="input-group-separate"]&': {
17211
17211
  // boxShadow: 'none',
17212
17212
  // }
17213
17213
  })), "".concat(name, "Disabled"), {
@@ -20418,7 +20418,7 @@ var groupSpace = function groupSpace(gap) {
20418
20418
  '& > i:last-child, & > span:last-child': {
20419
20419
  paddingRight: gap
20420
20420
  },
20421
- '[data-soui-role="input-group-seperate"]&': {
20421
+ '[data-soui-role="input-group-separate"]&, [data-soui-role="input-group-seperate"]&': {
20422
20422
  '& > b:first-child': {
20423
20423
  marginLeft: 0,
20424
20424
  borderLeft: "1px solid ".concat(src.inputBorderColor)
@@ -20475,7 +20475,7 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
20475
20475
  alignItems: 'center',
20476
20476
  position: 'relative'
20477
20477
  }, input_wrapper), {}, {
20478
- '[data-soui-role="input-group-seperate"] &': {
20478
+ '[data-soui-role="input-group-separate"] &, [data-soui-role="input-group-seperate"] &': {
20479
20479
  flex: 1,
20480
20480
  minWidth: 0
20481
20481
  }
@@ -20566,7 +20566,7 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
20566
20566
  background: 'transparent'
20567
20567
  }
20568
20568
  }, groupSpace(src.inputPaddingX)),
20569
- groupSeperate: {
20569
+ groupSeparate: {
20570
20570
  border: 'none',
20571
20571
  '& > b': {
20572
20572
  border: "1px solid ".concat(src.inputBorderColor),
@@ -30802,7 +30802,7 @@ var useCheckElementSize = function useCheckElementSize(targetElementRef) {
30802
30802
  width: rect.width,
30803
30803
  height: rect.height
30804
30804
  };
30805
- if (newSize.width !== lastSize.current.width || newSize.height !== lastSize.current.height) {
30805
+ if (newSize.width !== lastSize.current.width || newSize.height !== lastSize.current.height && newSize.height !== 0) {
30806
30806
  setSize(newSize);
30807
30807
  lastSize.current = newSize;
30808
30808
  }
@@ -31253,7 +31253,7 @@ var usePositionStyle = function usePositionStyle(config) {
31253
31253
  // 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
31254
31254
  context.prevParentPosition = parentElNewPosition;
31255
31255
  });
31256
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize === null || popupElSize === void 0 ? void 0 : popupElSize.width]);
31256
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize]);
31257
31257
  return {
31258
31258
  style: style
31259
31259
  };
@@ -39355,9 +39355,7 @@ var Scroll = function Scroll(props) {
39355
39355
  _props$scrollWidth = props.scrollWidth,
39356
39356
  scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
39357
39357
  _props$defaultHeight = props.defaultHeight,
39358
- defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight,
39359
- _props$keepScrollTop = props.keepScrollTop,
39360
- keepScrollTop = _props$keepScrollTop === void 0 ? false : _props$keepScrollTop;
39358
+ defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
39361
39359
  var _useResize = useResize({
39362
39360
  targetRef: containerRef,
39363
39361
  timer: 100
@@ -39382,7 +39380,6 @@ var Scroll = function Scroll(props) {
39382
39380
 
39383
39381
  // 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
39384
39382
  var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
39385
- if (keepScrollTop) return Math.max(0, Math.floor(scrollHeight - height));
39386
39383
  return height === 0 ? 0 : Math.max(0, Math.floor(scrollHeight - height));
39387
39384
  }, [scrollHeight, height]);
39388
39385
  var placeStyle = {
@@ -39496,7 +39493,6 @@ var VirtualList = function VirtualList(props) {
39496
39493
  className = props.className,
39497
39494
  lineHeight = props.lineHeight,
39498
39495
  height = props.height,
39499
- keepScrollTop = props.keepScrollTop,
39500
39496
  keepScrollHeight = props.keepScrollHeight,
39501
39497
  renderItem = props.renderItem,
39502
39498
  customRenderItem = props.customRenderItem,
@@ -39663,7 +39659,6 @@ var VirtualList = function VirtualList(props) {
39663
39659
  style: nextStyle,
39664
39660
  height: height,
39665
39661
  scrollWidth: 0,
39666
- keepScrollTop: keepScrollTop,
39667
39662
  scrollerStyle: scrollerStyle,
39668
39663
  scrollHeight: scrollHeight,
39669
39664
  childrenStyle: {
@@ -39693,9 +39688,8 @@ var VirtualList = function VirtualList(props) {
39693
39688
  context.preIndex = startIndex;
39694
39689
  }, [startIndex]);
39695
39690
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
39696
- // 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
39697
- if (keepScrollTop) return;
39698
39691
  if (keepScrollHeight) return;
39692
+ // 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
39699
39693
  setTop(0);
39700
39694
  setStartIndex(0);
39701
39695
  return function () {
@@ -53027,10 +53021,12 @@ var input_input_Input = function Input(props) {
53027
53021
  className = props.className,
53028
53022
  width = props.width,
53029
53023
  style = props.style,
53030
- seperate = props.seperate;
53031
- var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, seperate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeperate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
53024
+ seperate = props.seperate,
53025
+ separate = props.separate;
53026
+ var shouldSeparate = separate !== null && separate !== void 0 ? separate : seperate;
53027
+ var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, shouldSeparate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeparate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
53032
53028
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
53033
- role: seperate ? 'input-group-seperate' : 'input-group'
53029
+ role: shouldSeparate ? 'input-group-separate' : 'input-group'
53034
53030
  })), {}, {
53035
53031
  className: rootClass,
53036
53032
  style: objectSpread2_default()({
@@ -53873,7 +53869,6 @@ var list_List = function List(props) {
53873
53869
  controlType = props.controlType,
53874
53870
  hideCreateOption = props.hideCreateOption,
53875
53871
  optionListRef = props.optionListRef,
53876
- keepScrollTop = props.keepScrollTop,
53877
53872
  isAnimationFinish = props.isAnimationFinish,
53878
53873
  _props$renderItem = props.renderItem,
53879
53874
  renderItemProp = _props$renderItem === void 0 ? function (d) {
@@ -54041,7 +54036,6 @@ var list_List = function List(props) {
54041
54036
  return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
54042
54037
  virtualRef: virtualRef,
54043
54038
  data: data,
54044
- keepScrollTop: keepScrollTop,
54045
54039
  keygen: keygen,
54046
54040
  tag: 'ul',
54047
54041
  groupKey: groupKey,
@@ -56451,7 +56445,6 @@ function Select(props0) {
56451
56445
  renderItem: renderItem,
56452
56446
  controlType: controlType,
56453
56447
  onLoadMore: onLoadMore,
56454
- keepScrollTop: !!filterText ? false : true,
56455
56448
  isAnimationFinish: isAnimationFinish,
56456
56449
  threshold: threshold,
56457
56450
  onControlTypeChange: setControlType,
@@ -66977,7 +66970,7 @@ var TreeSelect = function TreeSelect(props0) {
66977
66970
  positionProp = _props$position === void 0 ? dfp : _props$position,
66978
66971
  openProp = props.open,
66979
66972
  onCollapseProp = props.onCollapse,
66980
- disabled = props.disabled,
66973
+ disabledProp = props.disabled,
66981
66974
  style = props.style,
66982
66975
  width = props.width,
66983
66976
  _props$height = props.height,
@@ -67023,6 +67016,7 @@ var TreeSelect = function TreeSelect(props0) {
67023
67016
  width: width
67024
67017
  }, style);
67025
67018
  var showInput = isFunc(props.onAdvancedFilter || onFilterProp);
67019
+ var disabled = isOptionalDisabled(disabledProp) ? disabledProp.disabled : disabledProp;
67026
67020
  var blurEvent = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
67027
67021
  var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
67028
67022
  var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
@@ -67108,7 +67102,7 @@ var TreeSelect = function TreeSelect(props0) {
67108
67102
  unmatch: unmatch,
67109
67103
  tiledData: tiledData,
67110
67104
  virtual: virtual,
67111
- disabled: disabled,
67105
+ disabled: props.disabled,
67112
67106
  active: multiple ? undefined : value[0],
67113
67107
  childrenKey: childrenKey,
67114
67108
  keygen: keygen,
@@ -67525,7 +67519,7 @@ var TreeSelect = function TreeSelect(props0) {
67525
67519
  expanded: virtual ? virtualExpanded : controlExpanded || unControlExpanded,
67526
67520
  defaultExpandAll: defaultExpandAll,
67527
67521
  expandIcons: tiledExpandIcons,
67528
- disabled: disabled,
67522
+ disabled: props.disabled,
67529
67523
  parentClickExpand: parentClickExpand,
67530
67524
  contentClass: getContentClass,
67531
67525
  datum: datum,
@@ -71316,7 +71310,7 @@ var upload_interface = __webpack_require__(8821);
71316
71310
 
71317
71311
 
71318
71312
  /* harmony default export */ var src_0 = ({
71319
- version: '3.7.1-beta.2'
71313
+ version: '3.7.1-beta.4'
71320
71314
  });
71321
71315
  }();
71322
71316
  /******/ return __webpack_exports__;