shineout 3.7.0-beta.33 → 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.33'
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.33');
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',
@@ -41949,6 +41957,12 @@ var Cascader = function Cascader(props0) {
41949
41957
  datum.setData(data);
41950
41958
  }
41951
41959
  }, [data]);
41960
+
41961
+ // 修复外部受控打开的场景下,从外部修改value导致的面板勾选情况没有及时同步
41962
+ if (openProp && !shallowEqual(value, datum.getValue())) {
41963
+ datum.setValue(value);
41964
+ }
41965
+ ;
41952
41966
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41953
41967
  if (!value) return;
41954
41968
  datum.setValue(value);
@@ -57297,10 +57311,10 @@ var list_list_List = function List(props) {
57297
57311
  return renderItem(item, index);
57298
57312
  })
57299
57313
  }, columnIndex);
57300
- return;
57301
57314
  });
57302
- var renderLoading = function renderLoading() {
57303
- if (!props.loading) return null;
57315
+ var loadingPosition = props.loadingPosition || 'center';
57316
+ var renderCenterLoading = function renderCenterLoading() {
57317
+ if (!props.loading || loadingPosition !== 'center') return null;
57304
57318
  var Loading = props.loading === true ? /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
57305
57319
  size: 16,
57306
57320
  jssStyle: props.jssStyle
@@ -57310,6 +57324,17 @@ var list_list_List = function List(props) {
57310
57324
  children: Loading
57311
57325
  });
57312
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
+ };
57313
57338
  var renderEmpty = function renderEmpty() {
57314
57339
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) return null;
57315
57340
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -57371,7 +57396,7 @@ var list_list_List = function List(props) {
57371
57396
  onScroll: handleListScroll,
57372
57397
  children: [columnData.map(function (column, colIndex) {
57373
57398
  return renderColumn(column, colIndex);
57374
- }), renderFooter()]
57399
+ }), renderBottomLoading(), renderFooter()]
57375
57400
  });
57376
57401
  };
57377
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));
@@ -57382,7 +57407,7 @@ var list_list_List = function List(props) {
57382
57407
  children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
57383
57408
  className: wrapperClass,
57384
57409
  style: wrapperStyle,
57385
- children: [renderList(), renderLoading(), renderEmpty()]
57410
+ children: [renderList(), renderCenterLoading(), renderEmpty()]
57386
57411
  }), props.pagination && /*#__PURE__*/(0,jsx_runtime.jsx)(src_pagination_pagination, objectSpread2_default()(objectSpread2_default()({
57387
57412
  className: listClasses === null || listClasses === void 0 ? void 0 : listClasses.pagination,
57388
57413
  jssStyle: props.jssStyle
@@ -71186,7 +71211,7 @@ var upload_interface = __webpack_require__(8821);
71186
71211
 
71187
71212
 
71188
71213
  /* harmony default export */ var src_0 = ({
71189
- version: '3.7.0-beta.33'
71214
+ version: '3.7.0-beta.35'
71190
71215
  });
71191
71216
  }();
71192
71217
  /******/ return __webpack_exports__;