shineout 3.3.7-beta.4 → 3.3.7-beta.6

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.7-beta.4'
479
+ version: '3.3.7-beta.6'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.7-beta.4');
11971
+ /* harmony default export */ var version = ('3.3.7-beta.6');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -40475,6 +40475,13 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
40475
40475
  var getCurrentArr = function getCurrentArr() {
40476
40476
  var arr = convertValueToDateArr(value, format, options);
40477
40477
  var currentArr = convertValueToDateArr(props.defaultCurrent, 'YYYY-MM-DD', options);
40478
+ var validArr = arr.filter(function (item) {
40479
+ return item;
40480
+ });
40481
+ var validCurrentArr = currentArr.filter(function (item) {
40482
+ return item;
40483
+ });
40484
+ if (!validArr.length && currentArr.length) return validCurrentArr;
40478
40485
  if (!arr[0]) arr[0] = arr[1] || currentArr[0] || new Date();
40479
40486
  if (range && !arr[1]) arr[1] = arr[0] || currentArr[1] || new Date();
40480
40487
  return arr;
@@ -55393,6 +55400,7 @@ var useTableLayout = function useTableLayout(props) {
55393
55400
  return;
55394
55401
  }
55395
55402
  context.clientWidth = scrollEl.clientWidth;
55403
+ if (scrollEl.clientHeight === 0) return;
55396
55404
  var overHeight = scrollEl.scrollHeight > scrollEl.clientHeight;
55397
55405
  var overWidth = scrollEl.scrollWidth > context.clientWidth;
55398
55406
  var newScrollBarWidth = overHeight ? scrollEl.offsetWidth - scrollEl.clientWidth : 0;
@@ -57705,7 +57713,7 @@ var emptyRef = {
57705
57713
  css: sticky === null || sticky === void 0 ? void 0 : sticky.css,
57706
57714
  parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
57707
57715
  };
57708
- var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length) && !((_props$style = props.style) !== null && _props$style !== void 0 && _props$style.height) && !props.height;
57716
+ var isRenderBaseTable = !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length) && !((_props$style = props.style) !== null && _props$style !== void 0 && _props$style.height) && !props.height;
57709
57717
  var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
57710
57718
  var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
57711
57719
  if (isRenderBaseTable) {
@@ -63970,7 +63978,7 @@ var upload_interface = __webpack_require__(8821);
63970
63978
 
63971
63979
 
63972
63980
  /* harmony default export */ var src_0 = ({
63973
- version: '3.3.7-beta.4'
63981
+ version: '3.3.7-beta.6'
63974
63982
  });
63975
63983
  }();
63976
63984
  /******/ return __webpack_exports__;