shineout 3.7.0-beta.34 → 3.7.0-beta.36

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.0-beta.34'
525
+ version: '3.7.0-beta.36'
526
526
  };
package/dist/shineout.js CHANGED
@@ -7318,7 +7318,7 @@ var Alert = function Alert(props) {
7318
7318
  };
7319
7319
  var type = getType();
7320
7320
  var alertStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$alert = jssStyle.alert) === null || _jssStyle$alert === void 0 ? void 0 : _jssStyle$alert.call(jssStyle)) || {};
7321
- var rootClass = classnames_default()(className, alertStyle.rootClass, alertStyle.alert, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, alertStyle[type], true), alertStyle.withTitle, title), alertStyle.pending, dismiss === PENDING), alertStyle.noBordered, bordered === false));
7321
+ var rootClass = classnames_default()(className, alertStyle.rootClass, alertStyle.alert, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, alertStyle[type], true), alertStyle.withTitle, title), alertStyle.pending, dismiss === PENDING), alertStyle.noBordered, bordered === false), alertStyle.noChildren, !children));
7322
7322
  var getRootProps = function getRootProps() {
7323
7323
  return rest;
7324
7324
  };
@@ -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.0-beta.34');
12230
+ /* harmony default export */ var version = ('3.7.0-beta.36');
12231
12231
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12232
12232
 
12233
12233
 
@@ -15622,6 +15622,11 @@ var alertStyle = {
15622
15622
  noBordered: {
15623
15623
  borderColor: 'transparent'
15624
15624
  },
15625
+ noChildren: {
15626
+ '&&$confirmwarning': {
15627
+ marginBottom: 0
15628
+ }
15629
+ },
15625
15630
  icon: {
15626
15631
  width: src.alertIconSize,
15627
15632
  display: 'inline-flex',
@@ -20814,6 +20819,9 @@ var listStyle = {
20814
20819
  alignItems: 'center',
20815
20820
  justifyContent: 'center'
20816
20821
  },
20822
+ loadingBottom: {
20823
+ padding: 16
20824
+ },
20817
20825
  empty: {
20818
20826
  display: 'flex',
20819
20827
  justifyContent: 'center',
@@ -22802,13 +22810,16 @@ var radioStyle = {
22802
22810
  position: 'relative',
22803
22811
  boxSizing: 'border-box',
22804
22812
  width: src.radioIconWidth,
22813
+ minWidth: src.radioIconWidth,
22805
22814
  height: src.radioIconWidth,
22806
22815
  '$wrapperSmall &': {
22807
22816
  width: src.radioSmallIconWidth,
22817
+ minWidth: src.radioSmallIconWidth,
22808
22818
  height: src.radioSmallIconWidth
22809
22819
  },
22810
22820
  '$wrapperLarge &': {
22811
22821
  width: src.radioLargeIconWidth,
22822
+ minWidth: src.radioLargeIconWidth,
22812
22823
  height: src.radioLargeIconWidth
22813
22824
  },
22814
22825
  marginRight: src.radioIconGap,
@@ -57303,10 +57314,10 @@ var list_list_List = function List(props) {
57303
57314
  return renderItem(item, index);
57304
57315
  })
57305
57316
  }, columnIndex);
57306
- return;
57307
57317
  });
57308
- var renderLoading = function renderLoading() {
57309
- if (!props.loading) return null;
57318
+ var loadingPosition = props.loadingPosition || 'center';
57319
+ var renderCenterLoading = function renderCenterLoading() {
57320
+ if (!props.loading || loadingPosition !== 'center') return null;
57310
57321
  var Loading = props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
57311
57322
  size: 16,
57312
57323
  jssStyle: props.jssStyle
@@ -57316,6 +57327,17 @@ var list_list_List = function List(props) {
57316
57327
  children: Loading
57317
57328
  });
57318
57329
  };
57330
+ var renderBottomLoading = function renderBottomLoading() {
57331
+ if (!props.loading || loadingPosition !== 'bottom') return null;
57332
+ var Loading = props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
57333
+ size: 16,
57334
+ jssStyle: props.jssStyle
57335
+ }) : props.loading;
57336
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
57337
+ className: listClasses === null || listClasses === void 0 ? void 0 : listClasses.loadingBottom,
57338
+ children: Loading
57339
+ });
57340
+ };
57319
57341
  var renderEmpty = function renderEmpty() {
57320
57342
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) return null;
57321
57343
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -57377,7 +57399,7 @@ var list_list_List = function List(props) {
57377
57399
  onScroll: handleListScroll,
57378
57400
  children: [columnData.map(function (column, colIndex) {
57379
57401
  return renderColumn(column, colIndex);
57380
- }), renderFooter()]
57402
+ }), renderBottomLoading(), renderFooter()]
57381
57403
  });
57382
57404
  };
57383
57405
  var wrapperClass = classnames_default()(props.className, listClasses === null || listClasses === void 0 ? void 0 : listClasses.rootClass, listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapper, isEmpty && (listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapperEmpty), props.bordered && (listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapperBordered), props.size === 'small' && (listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapperSmall), props.size === 'large' && (listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapperLarge), props.striped && (listClasses === null || listClasses === void 0 ? void 0 : listClasses.wrapperStriped));
@@ -57388,7 +57410,7 @@ var list_list_List = function List(props) {
57388
57410
  children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
57389
57411
  className: wrapperClass,
57390
57412
  style: wrapperStyle,
57391
- children: [renderList(), renderLoading(), renderEmpty()]
57413
+ children: [renderList(), renderCenterLoading(), renderEmpty()]
57392
57414
  }), props.pagination && /*#__PURE__*/(0,jsx_runtime.jsx)(src_pagination_pagination, objectSpread2_default()(objectSpread2_default()({
57393
57415
  className: listClasses === null || listClasses === void 0 ? void 0 : listClasses.pagination,
57394
57416
  jssStyle: props.jssStyle
@@ -71192,7 +71214,7 @@ var upload_interface = __webpack_require__(8821);
71192
71214
 
71193
71215
 
71194
71216
  /* harmony default export */ var src_0 = ({
71195
- version: '3.7.0-beta.34'
71217
+ version: '3.7.0-beta.36'
71196
71218
  });
71197
71219
  }();
71198
71220
  /******/ return __webpack_exports__;