shineout 3.9.2-beta.7 → 3.9.2

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.9.2-beta.7'
525
+ version: '3.9.2'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.2-beta.7');
12403
+ /* harmony default export */ var version = ('3.9.2');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -55111,7 +55111,7 @@ var ImageGroup = function ImageGroup(props) {
55111
55111
 
55112
55112
 
55113
55113
 
55114
- var image_excluded = ["fit", "alt", "src", "href", "lazy", "title", "style", "error", "target", "jssStyle", "className", "placeholder", "width", "height", "shape", "autoSSL", "noImgDrag", "onClick", "componentRef", "renderHoverMask"];
55114
+ var image_excluded = ["fit", "alt", "src", "href", "lazy", "title", "style", "error", "target", "jssStyle", "className", "placeholder", "width", "height", "shape", "autoSSL", "noImgDrag", "onClick", "componentRef", "renderHoverMask", "inViewOnly"];
55115
55115
 
55116
55116
 
55117
55117
 
@@ -55152,6 +55152,7 @@ var Image = function Image(props) {
55152
55152
  onClick = props.onClick,
55153
55153
  componentRef = props.componentRef,
55154
55154
  renderHoverMask = props.renderHoverMask,
55155
+ inViewOnly = props.inViewOnly,
55155
55156
  rest = objectWithoutProperties_default()(props, image_excluded);
55156
55157
  var _useImage = use_image(objectSpread2_default()({
55157
55158
  container: getDefaultContainer(),
@@ -55161,7 +55162,8 @@ var Image = function Image(props) {
55161
55162
  lazy: lazy,
55162
55163
  autoSSL: autoSSL,
55163
55164
  noImgDrag: noImgDrag,
55164
- fit: fit
55165
+ fit: fit,
55166
+ inViewOnly: inViewOnly
55165
55167
  }, rest)),
55166
55168
  status = _useImage.status,
55167
55169
  getRootProps = _useImage.getRootProps,
@@ -59773,6 +59775,7 @@ var Pagination = function Pagination(props) {
59773
59775
  current = _usePagination.current,
59774
59776
  pageSize = _usePagination.pageSize;
59775
59777
  var paginationStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$pagination = jssStyle.pagination) === null || _jssStyle$pagination === void 0 ? void 0 : _jssStyle$pagination.call(jssStyle);
59778
+ if (total < 0) return null;
59776
59779
  var rootClasses = classnames_default()(className, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.rootClass, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.pagination, align === 'left' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.left), align === 'center' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.center), align === 'right' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.right), size === 'small' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.small), size === 'large' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.large));
59777
59780
  var getRootProps = function getRootProps() {
59778
59781
  return {
@@ -64477,12 +64480,24 @@ var useColumns = function useColumns(props) {
64477
64480
  return context.cachedColumns;
64478
64481
  });
64479
64482
  var columns = getColumns(propsColumns) || [];
64480
- var leftFixedColumns = columns.filter(function (col) {
64481
- return col.fixed === 'left';
64482
- });
64483
- var middleColumns = columns.filter(function (col) {
64484
- return !col.fixed;
64485
- });
64483
+ var _useMemo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
64484
+ if (!props.virtualColumn) return {
64485
+ leftFixedColumns: [],
64486
+ middleColumns: []
64487
+ };
64488
+ var leftFixedColumns = columns.filter(function (col) {
64489
+ return col.fixed === 'left';
64490
+ });
64491
+ var middleColumns = columns.filter(function (col) {
64492
+ return !col.fixed;
64493
+ });
64494
+ return {
64495
+ leftFixedColumns: leftFixedColumns,
64496
+ middleColumns: middleColumns
64497
+ };
64498
+ }, [columns, props.virtualColumn]),
64499
+ leftFixedColumns = _useMemo.leftFixedColumns,
64500
+ middleColumns = _useMemo.middleColumns;
64486
64501
  var handleScroll = function handleScroll(scrollInfo) {
64487
64502
  var scrollLeft = scrollInfo.scrollLeft;
64488
64503
  var sum = 0;
@@ -64506,7 +64521,7 @@ var useColumns = function useColumns(props) {
64506
64521
 
64507
64522
  // 左侧也增加缓冲列,但不能小于0
64508
64523
  var bufferedStartIndex = Math.max(0, i - BUFFER_COUNT);
64509
- currentIndex = bufferedStartIndex + leftFixedColumns.length;
64524
+ currentIndex = bufferedStartIndex;
64510
64525
  break;
64511
64526
  }
64512
64527
  }
@@ -64518,8 +64533,9 @@ var useColumns = function useColumns(props) {
64518
64533
  scrollLeft: 0
64519
64534
  });
64520
64535
  }, []);
64521
- return {
64522
- columns: props.virtualColumn ? columns.map(function (col, index) {
64536
+ var processedColumns = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
64537
+ if (!props.virtualColumn) return columns;
64538
+ return columns.map(function (col, index) {
64523
64539
  if (col.fixed) {
64524
64540
  return col;
64525
64541
  }
@@ -64534,16 +64550,20 @@ var useColumns = function useColumns(props) {
64534
64550
  return startIndex;
64535
64551
  };
64536
64552
  }
64553
+ var hiddenTitle = context.groupLevel > 0 ? col.title : null;
64537
64554
  return objectSpread2_default()(objectSpread2_default()({}, col), {}, {
64538
64555
  colSpan: colSpan,
64539
64556
  render: function render() {
64540
64557
  return null;
64541
64558
  },
64542
- title: null
64559
+ title: hiddenTitle
64543
64560
  });
64544
64561
  }
64545
64562
  return col;
64546
- }) : columns,
64563
+ });
64564
+ }, [columns, startIndex, renderedCount, props.virtualColumn, leftFixedColumns.length, middleColumns.length, context.groupLevel]);
64565
+ return {
64566
+ columns: processedColumns,
64547
64567
  columnInfo: {
64548
64568
  handleScroll: handleScroll
64549
64569
  },
@@ -74540,7 +74560,7 @@ var upload_interface = __webpack_require__(8821);
74540
74560
 
74541
74561
 
74542
74562
  /* harmony default export */ var src_0 = ({
74543
- version: '3.9.2-beta.7'
74563
+ version: '3.9.2'
74544
74564
  });
74545
74565
  }();
74546
74566
  /******/ return __webpack_exports__;