shineout 3.8.3-beta.5 → 3.8.3-beta.7

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.8.3-beta.5'
525
+ version: '3.8.3-beta.7'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.3-beta.5');
12389
+ /* harmony default export */ var version = ('3.8.3-beta.7');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -26720,7 +26720,15 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
26720
26720
  "[data-soui-role='scroll'] &": {
26721
26721
  position: 'sticky',
26722
26722
  bottom: 0,
26723
- zIndex: fixedIndex + 1
26723
+ zIndex: fixedIndex + 1,
26724
+ display: 'flex',
26725
+ flexDirection: 'column',
26726
+ flex: 1,
26727
+ '&::before': {
26728
+ content: '""',
26729
+ flex: 1,
26730
+ backgroundColor: src.tableTbodyBackgroundColor
26731
+ }
26724
26732
  }
26725
26733
  },
26726
26734
  scrollY: {
@@ -32295,10 +32303,7 @@ var src_config_config = {
32295
32303
  };
32296
32304
  var state = createWithHooks(src_config_config);
32297
32305
  state.subscribe(function () {
32298
- var snapshot = getSnapshot(state.mutate);
32299
- if (snapshot) {
32300
- src_config_config = snapshot;
32301
- }
32306
+ src_config_config = getSnapshot(state.mutate);
32302
32307
  });
32303
32308
  function getDefaultContainer() {
32304
32309
  if (isFunc(src_config_config.popupContainer)) {
@@ -32318,7 +32323,7 @@ var config_setConfig = function setConfig(option) {
32318
32323
  var _Object$entries$_i = slicedToArray_default()(_Object$entries[_i], 2),
32319
32324
  key = _Object$entries$_i[0],
32320
32325
  value = _Object$entries$_i[1];
32321
- if (src_config_config && key in src_config_config) {
32326
+ if (key in src_config_config) {
32322
32327
  var k = key;
32323
32328
  // @ts-ignore
32324
32329
  state.mutate[k] = value;
@@ -50932,6 +50937,7 @@ var Empty = function Empty(props) {
50932
50937
  }, rest);
50933
50938
  };
50934
50939
  var renderImage = function renderImage() {
50940
+ var _empty$icon;
50935
50941
  if (icon === null) return null;
50936
50942
  if (imgSrc) {
50937
50943
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -50944,7 +50950,7 @@ var Empty = function Empty(props) {
50944
50950
  }
50945
50951
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
50946
50952
  className: styles === null || styles === void 0 ? void 0 : styles.image,
50947
- children: icon || (empty === null || empty === void 0 ? void 0 : empty.icon) || icons_config.empty.NoData
50953
+ children: icon || (empty === null || empty === void 0 || (_empty$icon = empty.icon) === null || _empty$icon === void 0 ? void 0 : _empty$icon.call(empty)) || icons_config.empty.NoData
50948
50954
  });
50949
50955
  };
50950
50956
  var renderDescription = function renderDescription() {
@@ -51281,7 +51287,46 @@ var SchemaBuilder = /*#__PURE__*/function () {
51281
51287
  fieldSchemaInfo.type = 'string';
51282
51288
  fieldSchemaInfo.format = 'date';
51283
51289
  }
51284
- fieldSchemaInfo.description += "\u9ED8\u8BA4\u65F6\u95F4\uFF1A".concat(((_componentElement$pro = componentElement.props.defaultTime) === null || _componentElement$pro === void 0 ? void 0 : _componentElement$pro.toString()) || '', "; \u683C\u5F0F\uFF1A").concat(componentElement.props.format || '', " ");
51290
+ var defaultTime = ((_componentElement$pro = componentElement.props.defaultTime) === null || _componentElement$pro === void 0 ? void 0 : _componentElement$pro.toString()) || '';
51291
+ if (defaultTime) {
51292
+ fieldSchemaInfo.description += "\u9ED8\u8BA4\u65F6\u95F4\uFF1A".concat(defaultTime, " ");
51293
+ }
51294
+ var dateformat = componentElement.props.format || '';
51295
+ if (!dateformat) {
51296
+ switch (componentElement.props.type) {
51297
+ case 'date':
51298
+ dateformat = 'YYYY-MM-DD';
51299
+ break;
51300
+ case 'time':
51301
+ dateformat = 'HH:mm:ss';
51302
+ break;
51303
+ case 'datetime':
51304
+ dateformat = 'YYYY-MM-DD HH:mm:ss';
51305
+ break;
51306
+ case 'week':
51307
+ dateformat = 'GGGG WW';
51308
+ break;
51309
+ case 'month':
51310
+ dateformat = 'YYYY-MM';
51311
+ break;
51312
+ case 'quarter':
51313
+ dateformat = 'YYYY-\[Q]Q';
51314
+ break;
51315
+ case 'year':
51316
+ dateformat = 'YYYY';
51317
+ break;
51318
+ default:
51319
+ dateformat = 'YYYY-MM-DD';
51320
+ break;
51321
+ }
51322
+ }
51323
+ fieldSchemaInfo.description += "\u683C\u5F0F\uFF1A".concat(dateformat, " ");
51324
+ if (componentElement.props.max) {
51325
+ fieldSchemaInfo.description += "\u6700\u5927\u65F6\u95F4\uFF1A".concat(componentElement.props.max, " ");
51326
+ }
51327
+ if (componentElement.props.min) {
51328
+ fieldSchemaInfo.description += "\u6700\u5C0F\u65F6\u95F4\uFF1A".concat(componentElement.props.min, " ");
51329
+ }
51285
51330
  break;
51286
51331
  case 'ShineoutCheckbox':
51287
51332
  case 'ShineoutCheckboxGroup':
@@ -66502,7 +66547,7 @@ var emptyRef = {
66502
66547
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
66503
66548
  onScroll: handleBodyScroll,
66504
66549
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
66505
- style: tableStyle,
66550
+ style: objectSpread2_default()({}, tableStyle),
66506
66551
  ref: tbodyRef,
66507
66552
  children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), bodyCommonProps.data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(TbodyEmpty, {
66508
66553
  children: renderEmpty()
@@ -73127,7 +73172,7 @@ var upload_interface = __webpack_require__(8821);
73127
73172
 
73128
73173
 
73129
73174
  /* harmony default export */ var src_0 = ({
73130
- version: '3.8.3-beta.5'
73175
+ version: '3.8.3-beta.7'
73131
73176
  });
73132
73177
  }();
73133
73178
  /******/ return __webpack_exports__;