shineout 3.2.6-beta.0 → 3.2.6

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.6-beta.0'
479
+ version: '3.2.6'
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.6-beta.0');
11963
+ /* harmony default export */ var version = ('3.2.6');
11964
11964
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11965
11965
 
11966
11966
 
@@ -14945,6 +14945,9 @@ var alertStyle = {
14945
14945
  marginLeft: src.alertNearlyMargin,
14946
14946
  '&:hover': {
14947
14947
  color: src.alertCloseHoverColor
14948
+ },
14949
+ '& svg': {
14950
+ width: '100%'
14948
14951
  }
14949
14952
  },
14950
14953
  closeWrapper: {
@@ -15012,7 +15015,10 @@ var alertStyle = {
15012
15015
  height: src.lineHeightDynamic,
15013
15016
  flex: '0 0 auto',
15014
15017
  alignItems: 'center',
15015
- marginRight: src.alertNearlyMargin
15018
+ marginRight: src.alertNearlyMargin,
15019
+ '& svg': {
15020
+ width: '100%'
15021
+ }
15016
15022
  }
15017
15023
  };
15018
15024
  /* harmony default export */ var shineout_style_src_alert_alert = (alertStyle);
@@ -16606,6 +16612,12 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16606
16612
  borderRight: "1px solid ".concat(src.cascaderListBorderColor)
16607
16613
  }
16608
16614
  },
16615
+ filterList: {
16616
+ display: 'block',
16617
+ '& $list': {
16618
+ width: '100%'
16619
+ }
16620
+ },
16609
16621
  hideTag: {},
16610
16622
  list: {
16611
16623
  paddingTop: 3,
@@ -23324,7 +23336,10 @@ var stepsStyle = {
23324
23336
  iconWrapper: {
23325
23337
  display: 'inline-block',
23326
23338
  textAlign: 'center',
23327
- borderRadius: '50%'
23339
+ borderRadius: '50%',
23340
+ '& svg': {
23341
+ width: "calc(100% - 12px)"
23342
+ }
23328
23343
  },
23329
23344
  dot: {
23330
23345
  '&$vertical': {
@@ -23962,9 +23977,6 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23962
23977
  background: src.tableTfootBackgroundColor,
23963
23978
  color: src.tableTfootFontColor,
23964
23979
  fontWeight: src.tableTfootFontWeight
23965
- },
23966
- '&bordered tr:last-child td': {
23967
- borderBottom: 'none'
23968
23980
  }
23969
23981
  }
23970
23982
  },
@@ -24015,6 +24027,17 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
24015
24027
  bordered: {
24016
24028
  border: "1px solid ".concat(src.tableCellBorderColor),
24017
24029
  borderBottom: 'none',
24030
+ borderTop: 'none',
24031
+ '&::before': {
24032
+ position: 'absolute',
24033
+ zIndex: 7,
24034
+ content: '""',
24035
+ display: 'block',
24036
+ top: 0,
24037
+ left: 0,
24038
+ right: 0,
24039
+ borderTop: "1px solid ".concat(src.tableCellBorderColor)
24040
+ },
24018
24041
  '&::after': {
24019
24042
  position: 'absolute',
24020
24043
  content: '""',
@@ -28088,7 +28111,7 @@ var usePositionStyle = function usePositionStyle(config) {
28088
28111
  setStyle(newStyle);
28089
28112
  }
28090
28113
  });
28091
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey]);
28114
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
28092
28115
  return style;
28093
28116
  };
28094
28117
  /* harmony default export */ var use_position_style = ((/* unused pure expression or super */ null && (usePositionStyle)));
@@ -36624,12 +36647,14 @@ var preventDefault = function preventDefault(e) {
36624
36647
  var Cascader = function Cascader(props0) {
36625
36648
  var _jssStyle$cascader;
36626
36649
  var props = use_with_form_config(props0);
36650
+ var defaultHeight = 232;
36627
36651
  var jssStyle = props.jssStyle,
36628
36652
  style = props.style,
36629
36653
  _props$adjust = props.adjust,
36630
36654
  adjust = _props$adjust === void 0 ? true : _props$adjust,
36631
36655
  width = props.width,
36632
- height = props.height,
36656
+ _props$height = props.height,
36657
+ height = _props$height === void 0 ? defaultHeight : _props$height,
36633
36658
  className = props.className,
36634
36659
  _props$hideTag = props.hideTag,
36635
36660
  hideTag = _props$hideTag === void 0 ? false : _props$hideTag,
@@ -36725,6 +36750,7 @@ var Cascader = function Cascader(props0) {
36725
36750
  filterFunc = _useFilter.filterFunc,
36726
36751
  onFilter = _useFilter.onFilter;
36727
36752
  var isDataEmpty = !filterData || filterData.length === 0;
36753
+ var isMultiple = multiple === true || mode !== undefined;
36728
36754
  var _useCascader = use_cascader({
36729
36755
  data: data,
36730
36756
  control: 'value' in props,
@@ -37033,7 +37059,6 @@ var Cascader = function Cascader(props0) {
37033
37059
  };
37034
37060
  var renderList = function renderList() {
37035
37061
  var tempData = filterData;
37036
- var isMultiple = multiple === true || mode !== undefined;
37037
37062
  var cascaderList = [/*#__PURE__*/(0,jsx_runtime.jsx)(cascader_list, {
37038
37063
  jssStyle: jssStyle,
37039
37064
  datum: datum,
@@ -37084,11 +37109,10 @@ var Cascader = function Cascader(props0) {
37084
37109
  }
37085
37110
  var listStyle = data && data.length === 0 ? {
37086
37111
  height: 'auto',
37087
- minHeight: 232,
37112
+ minHeight: height,
37088
37113
  width: '100%'
37089
37114
  } : {
37090
- height: height,
37091
- minHeight: height || 232
37115
+ height: height
37092
37116
  };
37093
37117
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37094
37118
  className: classnames_default()(styles.listContent),
@@ -37108,13 +37132,12 @@ var Cascader = function Cascader(props0) {
37108
37132
  };
37109
37133
  var renderFilterList = function renderFilterList() {
37110
37134
  var listStyle = data && data.length === 0 ? {
37111
- height: 'auto',
37112
- width: '100%'
37135
+ maxHeight: height
37113
37136
  } : {
37114
- height: height
37137
+ maxHeight: height
37115
37138
  };
37116
37139
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37117
- className: classnames_default()(styles.listContent),
37140
+ className: classnames_default()(styles.listContent, styles.filterList),
37118
37141
  style: listStyle,
37119
37142
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(filter_list, {
37120
37143
  jssStyle: jssStyle,
@@ -37198,8 +37221,17 @@ var Cascader = function Cascader(props0) {
37198
37221
  }, []);
37199
37222
  var shouldFullWidth = props.loading || isDataEmpty;
37200
37223
  var pickerWrapperStyle = shouldFullWidth ? {
37201
- minWidth: '100%'
37224
+ minWidth: absolute && isDataEmpty ? '' : '100%'
37202
37225
  } : {};
37226
+ var getFixedWidth = function getFixedWidth() {
37227
+ if (absolute && isDataEmpty) {
37228
+ return true;
37229
+ }
37230
+ if (filterText && !isMultiple) {
37231
+ return 'min';
37232
+ }
37233
+ return false;
37234
+ };
37203
37235
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
37204
37236
  tabIndex: disabled === true || showInput ? undefined : 0
37205
37237
  }, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
@@ -37217,7 +37249,7 @@ var Cascader = function Cascader(props0) {
37217
37249
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
37218
37250
  adjust: adjust,
37219
37251
  focus: open,
37220
- fixedWidth: false,
37252
+ fixedWidth: getFixedWidth(),
37221
37253
  absolute: absolute,
37222
37254
  zIndex: zIndex,
37223
37255
  position: position,
@@ -50641,6 +50673,9 @@ var usePagination = function usePagination(props) {
50641
50673
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
50642
50674
  if (pageSizeProp !== pageSize) setPageSize(pageSizeProp);
50643
50675
  }, [pageSizeProp]);
50676
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
50677
+ if (currentProp !== undefined && currentProp !== current) setCurrent(currentProp);
50678
+ }, [currentProp]);
50644
50679
  var handleChange = usePersistFn(function (c, size) {
50645
50680
  if (c === current && size === undefined) return;
50646
50681
  setCurrent(c);
@@ -50660,7 +50695,7 @@ var usePagination = function usePagination(props) {
50660
50695
  return objectSpread2_default()({}, mergedEventHandlers);
50661
50696
  };
50662
50697
  return {
50663
- current: currentProp !== undefined ? currentProp : current,
50698
+ current: current,
50664
50699
  pageSize: pageSize,
50665
50700
  total: total,
50666
50701
  onChange: handleChange,
@@ -63089,7 +63124,7 @@ var upload_interface = __webpack_require__(4412);
63089
63124
 
63090
63125
 
63091
63126
  /* harmony default export */ var src_0 = ({
63092
- version: '3.2.6-beta.0'
63127
+ version: '3.2.6'
63093
63128
  });
63094
63129
  }();
63095
63130
  /******/ return __webpack_exports__;