shineout 3.7.0-beta.34 → 3.7.0-beta.35

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.35'
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.35');
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',
@@ -57303,10 +57311,10 @@ var list_list_List = function List(props) {
57303
57311
  return renderItem(item, index);
57304
57312
  })
57305
57313
  }, columnIndex);
57306
- return;
57307
57314
  });
57308
- var renderLoading = function renderLoading() {
57309
- if (!props.loading) return null;
57315
+ var loadingPosition = props.loadingPosition || 'center';
57316
+ var renderCenterLoading = function renderCenterLoading() {
57317
+ if (!props.loading || loadingPosition !== 'center') return null;
57310
57318
  var Loading = props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
57311
57319
  size: 16,
57312
57320
  jssStyle: props.jssStyle
@@ -57316,6 +57324,17 @@ var list_list_List = function List(props) {
57316
57324
  children: Loading
57317
57325
  });
57318
57326
  };
57327
+ var renderBottomLoading = function renderBottomLoading() {
57328
+ if (!props.loading || loadingPosition !== 'bottom') return null;
57329
+ var Loading = props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
57330
+ size: 16,
57331
+ jssStyle: props.jssStyle
57332
+ }) : props.loading;
57333
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
57334
+ className: listClasses === null || listClasses === void 0 ? void 0 : listClasses.loadingBottom,
57335
+ children: Loading
57336
+ });
57337
+ };
57319
57338
  var renderEmpty = function renderEmpty() {
57320
57339
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) return null;
57321
57340
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -57377,7 +57396,7 @@ var list_list_List = function List(props) {
57377
57396
  onScroll: handleListScroll,
57378
57397
  children: [columnData.map(function (column, colIndex) {
57379
57398
  return renderColumn(column, colIndex);
57380
- }), renderFooter()]
57399
+ }), renderBottomLoading(), renderFooter()]
57381
57400
  });
57382
57401
  };
57383
57402
  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 +57407,7 @@ var list_list_List = function List(props) {
57388
57407
  children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
57389
57408
  className: wrapperClass,
57390
57409
  style: wrapperStyle,
57391
- children: [renderList(), renderLoading(), renderEmpty()]
57410
+ children: [renderList(), renderCenterLoading(), renderEmpty()]
57392
57411
  }), props.pagination && /*#__PURE__*/(0,jsx_runtime.jsx)(src_pagination_pagination, objectSpread2_default()(objectSpread2_default()({
57393
57412
  className: listClasses === null || listClasses === void 0 ? void 0 : listClasses.pagination,
57394
57413
  jssStyle: props.jssStyle
@@ -71192,7 +71211,7 @@ var upload_interface = __webpack_require__(8821);
71192
71211
 
71193
71212
 
71194
71213
  /* harmony default export */ var src_0 = ({
71195
- version: '3.7.0-beta.34'
71214
+ version: '3.7.0-beta.35'
71196
71215
  });
71197
71216
  }();
71198
71217
  /******/ return __webpack_exports__;