shineout 3.8.3-beta.6 → 3.8.3-beta.8

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.6'
525
+ version: '3.8.3-beta.8'
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.6');
12389
+ /* harmony default export */ var version = ('3.8.3-beta.8');
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: {
@@ -36328,6 +36336,7 @@ var use_input_excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus",
36328
36336
 
36329
36337
 
36330
36338
 
36339
+
36331
36340
  /*
36332
36341
  数据:
36333
36342
  value focused disabled showClear
@@ -36457,7 +36466,7 @@ var useInput = function useInput(params) {
36457
36466
  onMouseDown: handleClear(externalEventHandlers)
36458
36467
  });
36459
36468
  };
36460
- var showClearValue = showClear !== undefined ? !!showClear : clearable && value;
36469
+ var showClearValue = showClear !== undefined ? !!showClear : clearable && !is_isEmpty(value);
36461
36470
  return {
36462
36471
  focused: focused,
36463
36472
  disabled: disabled,
@@ -36506,7 +36515,7 @@ var simple_input_excluded = ["jssStyle", "className", "style", "status", "clearI
36506
36515
 
36507
36516
 
36508
36517
  var Input = function Input(props) {
36509
- var _jssStyle$input, _inputElProps$value;
36518
+ var _jssStyle$input;
36510
36519
  var jssStyle = props.jssStyle,
36511
36520
  className = props.className,
36512
36521
  style = props.style,
@@ -36586,7 +36595,7 @@ var Input = function Input(props) {
36586
36595
  if (typeof renderInput === 'function') {
36587
36596
  inputEl = renderInput(inputEl);
36588
36597
  }
36589
- var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && ((_inputElProps$value = inputElProps.value) === null || _inputElProps$value === void 0 ? void 0 : _inputElProps$value.length) > 0 && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperHasValue));
36598
+ var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && !is_isEmpty(inputElProps.value) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperHasValue));
36590
36599
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
36591
36600
  id: fieldId
36592
36601
  }, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
@@ -51279,7 +51288,46 @@ var SchemaBuilder = /*#__PURE__*/function () {
51279
51288
  fieldSchemaInfo.type = 'string';
51280
51289
  fieldSchemaInfo.format = 'date';
51281
51290
  }
51282
- 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 || '', " ");
51291
+ var defaultTime = ((_componentElement$pro = componentElement.props.defaultTime) === null || _componentElement$pro === void 0 ? void 0 : _componentElement$pro.toString()) || '';
51292
+ if (defaultTime) {
51293
+ fieldSchemaInfo.description += "\u9ED8\u8BA4\u65F6\u95F4\uFF1A".concat(defaultTime, " ");
51294
+ }
51295
+ var dateformat = componentElement.props.format || '';
51296
+ if (!dateformat) {
51297
+ switch (componentElement.props.type) {
51298
+ case 'date':
51299
+ dateformat = 'YYYY-MM-DD';
51300
+ break;
51301
+ case 'time':
51302
+ dateformat = 'HH:mm:ss';
51303
+ break;
51304
+ case 'datetime':
51305
+ dateformat = 'YYYY-MM-DD HH:mm:ss';
51306
+ break;
51307
+ case 'week':
51308
+ dateformat = 'GGGG WW';
51309
+ break;
51310
+ case 'month':
51311
+ dateformat = 'YYYY-MM';
51312
+ break;
51313
+ case 'quarter':
51314
+ dateformat = 'YYYY-\[Q]Q';
51315
+ break;
51316
+ case 'year':
51317
+ dateformat = 'YYYY';
51318
+ break;
51319
+ default:
51320
+ dateformat = 'YYYY-MM-DD';
51321
+ break;
51322
+ }
51323
+ }
51324
+ fieldSchemaInfo.description += "\u683C\u5F0F\uFF1A".concat(dateformat, " ");
51325
+ if (componentElement.props.max) {
51326
+ fieldSchemaInfo.description += "\u6700\u5927\u65F6\u95F4\uFF1A".concat(componentElement.props.max, " ");
51327
+ }
51328
+ if (componentElement.props.min) {
51329
+ fieldSchemaInfo.description += "\u6700\u5C0F\u65F6\u95F4\uFF1A".concat(componentElement.props.min, " ");
51330
+ }
51283
51331
  break;
51284
51332
  case 'ShineoutCheckbox':
51285
51333
  case 'ShineoutCheckboxGroup':
@@ -66500,7 +66548,7 @@ var emptyRef = {
66500
66548
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
66501
66549
  onScroll: handleBodyScroll,
66502
66550
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
66503
- style: tableStyle,
66551
+ style: objectSpread2_default()({}, tableStyle),
66504
66552
  ref: tbodyRef,
66505
66553
  children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), bodyCommonProps.data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(TbodyEmpty, {
66506
66554
  children: renderEmpty()
@@ -73125,7 +73173,7 @@ var upload_interface = __webpack_require__(8821);
73125
73173
 
73126
73174
 
73127
73175
  /* harmony default export */ var src_0 = ({
73128
- version: '3.8.3-beta.6'
73176
+ version: '3.8.3-beta.8'
73129
73177
  });
73130
73178
  }();
73131
73179
  /******/ return __webpack_exports__;