shineout 3.2.5 → 3.2.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.2.5'
479
+ version: '3.2.6-beta.0'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
11960
11960
  };
11961
11961
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11962
11962
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11963
- /* harmony default export */ var version = ('3.2.5');
11963
+ /* harmony default export */ var version = ('3.2.6-beta.0');
11964
11964
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11965
11965
 
11966
11966
 
@@ -14945,9 +14945,6 @@ var alertStyle = {
14945
14945
  marginLeft: src.alertNearlyMargin,
14946
14946
  '&:hover': {
14947
14947
  color: src.alertCloseHoverColor
14948
- },
14949
- '& svg': {
14950
- width: '100%'
14951
14948
  }
14952
14949
  },
14953
14950
  closeWrapper: {
@@ -15015,10 +15012,7 @@ var alertStyle = {
15015
15012
  height: src.lineHeightDynamic,
15016
15013
  flex: '0 0 auto',
15017
15014
  alignItems: 'center',
15018
- marginRight: src.alertNearlyMargin,
15019
- '& svg': {
15020
- width: '100%'
15021
- }
15015
+ marginRight: src.alertNearlyMargin
15022
15016
  }
15023
15017
  };
15024
15018
  /* harmony default export */ var shineout_style_src_alert_alert = (alertStyle);
@@ -16612,12 +16606,6 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16612
16606
  borderRight: "1px solid ".concat(src.cascaderListBorderColor)
16613
16607
  }
16614
16608
  },
16615
- filterList: {
16616
- display: 'block',
16617
- '& $list': {
16618
- width: '100%'
16619
- }
16620
- },
16621
16609
  hideTag: {},
16622
16610
  list: {
16623
16611
  paddingTop: 3,
@@ -23336,10 +23324,7 @@ var stepsStyle = {
23336
23324
  iconWrapper: {
23337
23325
  display: 'inline-block',
23338
23326
  textAlign: 'center',
23339
- borderRadius: '50%',
23340
- '& svg': {
23341
- width: "calc(100% - 12px)"
23342
- }
23327
+ borderRadius: '50%'
23343
23328
  },
23344
23329
  dot: {
23345
23330
  '&$vertical': {
@@ -28103,7 +28088,7 @@ var usePositionStyle = function usePositionStyle(config) {
28103
28088
  setStyle(newStyle);
28104
28089
  }
28105
28090
  });
28106
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
28091
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey]);
28107
28092
  return style;
28108
28093
  };
28109
28094
  /* harmony default export */ var use_position_style = ((/* unused pure expression or super */ null && (usePositionStyle)));
@@ -36639,14 +36624,12 @@ var preventDefault = function preventDefault(e) {
36639
36624
  var Cascader = function Cascader(props0) {
36640
36625
  var _jssStyle$cascader;
36641
36626
  var props = use_with_form_config(props0);
36642
- var defaultHeight = 232;
36643
36627
  var jssStyle = props.jssStyle,
36644
36628
  style = props.style,
36645
36629
  _props$adjust = props.adjust,
36646
36630
  adjust = _props$adjust === void 0 ? true : _props$adjust,
36647
36631
  width = props.width,
36648
- _props$height = props.height,
36649
- height = _props$height === void 0 ? defaultHeight : _props$height,
36632
+ height = props.height,
36650
36633
  className = props.className,
36651
36634
  _props$hideTag = props.hideTag,
36652
36635
  hideTag = _props$hideTag === void 0 ? false : _props$hideTag,
@@ -36742,7 +36725,6 @@ var Cascader = function Cascader(props0) {
36742
36725
  filterFunc = _useFilter.filterFunc,
36743
36726
  onFilter = _useFilter.onFilter;
36744
36727
  var isDataEmpty = !filterData || filterData.length === 0;
36745
- var isMultiple = multiple === true || mode !== undefined;
36746
36728
  var _useCascader = use_cascader({
36747
36729
  data: data,
36748
36730
  control: 'value' in props,
@@ -37051,6 +37033,7 @@ var Cascader = function Cascader(props0) {
37051
37033
  };
37052
37034
  var renderList = function renderList() {
37053
37035
  var tempData = filterData;
37036
+ var isMultiple = multiple === true || mode !== undefined;
37054
37037
  var cascaderList = [/*#__PURE__*/(0,jsx_runtime.jsx)(cascader_list, {
37055
37038
  jssStyle: jssStyle,
37056
37039
  datum: datum,
@@ -37101,10 +37084,11 @@ var Cascader = function Cascader(props0) {
37101
37084
  }
37102
37085
  var listStyle = data && data.length === 0 ? {
37103
37086
  height: 'auto',
37104
- minHeight: height,
37087
+ minHeight: 232,
37105
37088
  width: '100%'
37106
37089
  } : {
37107
- height: height
37090
+ height: height,
37091
+ minHeight: height || 232
37108
37092
  };
37109
37093
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37110
37094
  className: classnames_default()(styles.listContent),
@@ -37124,12 +37108,13 @@ var Cascader = function Cascader(props0) {
37124
37108
  };
37125
37109
  var renderFilterList = function renderFilterList() {
37126
37110
  var listStyle = data && data.length === 0 ? {
37127
- maxHeight: height
37111
+ height: 'auto',
37112
+ width: '100%'
37128
37113
  } : {
37129
- maxHeight: height
37114
+ height: height
37130
37115
  };
37131
37116
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37132
- className: classnames_default()(styles.listContent, styles.filterList),
37117
+ className: classnames_default()(styles.listContent),
37133
37118
  style: listStyle,
37134
37119
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(filter_list, {
37135
37120
  jssStyle: jssStyle,
@@ -37213,17 +37198,8 @@ var Cascader = function Cascader(props0) {
37213
37198
  }, []);
37214
37199
  var shouldFullWidth = props.loading || isDataEmpty;
37215
37200
  var pickerWrapperStyle = shouldFullWidth ? {
37216
- minWidth: absolute && isDataEmpty ? '' : '100%'
37201
+ minWidth: '100%'
37217
37202
  } : {};
37218
- var getFixedWidth = function getFixedWidth() {
37219
- if (absolute && isDataEmpty) {
37220
- return true;
37221
- }
37222
- if (filterText && !isMultiple) {
37223
- return 'min';
37224
- }
37225
- return false;
37226
- };
37227
37203
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
37228
37204
  tabIndex: disabled === true || showInput ? undefined : 0
37229
37205
  }, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
@@ -37241,7 +37217,7 @@ var Cascader = function Cascader(props0) {
37241
37217
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
37242
37218
  adjust: adjust,
37243
37219
  focus: open,
37244
- fixedWidth: getFixedWidth(),
37220
+ fixedWidth: false,
37245
37221
  absolute: absolute,
37246
37222
  zIndex: zIndex,
37247
37223
  position: position,
@@ -54927,7 +54903,7 @@ var useTableLayout = function useTableLayout(props) {
54927
54903
  (_cancelFunc = cancelFunc) === null || _cancelFunc === void 0 || _cancelFunc();
54928
54904
  };
54929
54905
  }, [scrollRef.current]);
54930
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
54906
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
54931
54907
  if (adjust) {
54932
54908
  getColgroup(adjust === 'drag');
54933
54909
  setAdjust(false);
@@ -63113,7 +63089,7 @@ var upload_interface = __webpack_require__(4412);
63113
63089
 
63114
63090
 
63115
63091
  /* harmony default export */ var src_0 = ({
63116
- version: '3.2.5'
63092
+ version: '3.2.6-beta.0'
63117
63093
  });
63118
63094
  }();
63119
63095
  /******/ return __webpack_exports__;