shineout 3.9.3-beta.3 → 3.9.3-beta.4

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.3-beta.3'
525
+ version: '3.9.3-beta.4'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
12402
12402
  };
12403
12403
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12405
- /* harmony default export */ var version = ('3.9.3-beta.3');
12405
+ /* harmony default export */ var version = ('3.9.3-beta.4');
12406
12406
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12407
12407
 
12408
12408
 
@@ -64645,6 +64645,7 @@ var useColumns = function useColumns(props) {
64645
64645
  columnInfo: {
64646
64646
  handleScroll: handleScroll
64647
64647
  },
64648
+ currentColIndex: startIndex,
64648
64649
  expandHideCol: context.expandHideCol
64649
64650
  };
64650
64651
  };
@@ -66758,7 +66759,6 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
66758
66759
  ;// CONCATENATED MODULE: ../base/src/table/td.tsx
66759
66760
 
66760
66761
 
66761
-
66762
66762
  function Td(props) {
66763
66763
  var col = props.col,
66764
66764
  colSpan = props.colSpan,
@@ -66766,12 +66766,11 @@ function Td(props) {
66766
66766
  className = props.className,
66767
66767
  direction = props.direction,
66768
66768
  role = props.role,
66769
- data = props.data,
66770
66769
  onClick = props.onClick,
66771
66770
  onMouseEnter = props.onMouseEnter,
66772
66771
  onMouseLeave = props.onMouseLeave,
66773
66772
  renderContent = props.renderContent;
66774
- var $td = /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
66773
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
66775
66774
  colSpan: colSpan,
66776
66775
  rowSpan: rowSpan,
66777
66776
  onMouseEnter: onMouseEnter,
@@ -66783,20 +66782,6 @@ function Td(props) {
66783
66782
  onClick: onClick,
66784
66783
  children: renderContent(props.col, props.data)
66785
66784
  }, col.key);
66786
- if (props.virtual === 'lazy') {
66787
- var _props$style, _props$style2;
66788
- return useComponentMemo(function () {
66789
- return $td;
66790
- }, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], function (prev, next) {
66791
- if (col.type || col.treeColumnsName) {
66792
- return true;
66793
- }
66794
- return prev.some(function (_, index) {
66795
- return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
66796
- }) || !props.scrolling;
66797
- });
66798
- }
66799
- return $td;
66800
66785
  }
66801
66786
  ;// CONCATENATED MODULE: ../base/src/table/tr.tsx
66802
66787
 
@@ -67198,8 +67183,9 @@ var Tr = function Tr(props) {
67198
67183
  /* harmony default export */ var tbody = (function (props) {
67199
67184
  var _props$columns = props.columns,
67200
67185
  columns = _props$columns === void 0 ? [] : _props$columns,
67201
- _props$currentIndex = props.currentIndex,
67202
- currentIndex = _props$currentIndex === void 0 ? 0 : _props$currentIndex,
67186
+ _props$currentRowInde = props.currentRowIndex,
67187
+ currentRowIndex = _props$currentRowInde === void 0 ? 0 : _props$currentRowInde,
67188
+ currentColIndex = props.currentColIndex,
67203
67189
  _props$hover = props.hover,
67204
67190
  hover = _props$hover === void 0 ? true : _props$hover;
67205
67191
  var _useTableExpand = use_table_expand({
@@ -67212,7 +67198,7 @@ var Tr = function Tr(props) {
67212
67198
  var _useTableRow = use_table_row({
67213
67199
  columns: props.columns,
67214
67200
  data: props.data,
67215
- currentIndex: currentIndex,
67201
+ currentIndex: currentRowIndex,
67216
67202
  hover: hover
67217
67203
  }),
67218
67204
  rowData = _useTableRow.rowData,
@@ -67224,7 +67210,7 @@ var Tr = function Tr(props) {
67224
67210
  });
67225
67211
  var renderRow = function renderRow(item, index) {
67226
67212
  var _props$rowEvents;
67227
- var rowIndex = index + currentIndex;
67213
+ var rowIndex = index + currentRowIndex;
67228
67214
  var originKey = getKey(props.keygen, item, rowIndex);
67229
67215
  var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
67230
67216
 
@@ -67293,7 +67279,7 @@ var Tr = function Tr(props) {
67293
67279
  if (props.virtual === 'lazy') {
67294
67280
  return useComponentMemo(function () {
67295
67281
  return $tbody;
67296
- }, [props.data, currentIndex], function (prev, next) {
67282
+ }, [currentRowIndex, currentColIndex, props.data], function (prev, next) {
67297
67283
  return prev.some(function (_, index) {
67298
67284
  return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
67299
67285
  }) || !props.scrolling;
@@ -67540,7 +67526,8 @@ function Table(props) {
67540
67526
  }),
67541
67527
  columns = _useTableColumns.columns,
67542
67528
  expandHideCol = _useTableColumns.expandHideCol,
67543
- columnInfo = _useTableColumns.columnInfo;
67529
+ columnInfo = _useTableColumns.columnInfo,
67530
+ currentColIndex = _useTableColumns.currentColIndex;
67544
67531
  var _useTableLayout = use_table_layout({
67545
67532
  theadRef: theadRef,
67546
67533
  tbodyRef: tbodyRef,
@@ -67986,7 +67973,8 @@ function Table(props) {
67986
67973
  }),
67987
67974
  ref: tbodyRef,
67988
67975
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
67989
- currentIndex: virtualInfo.startIndex,
67976
+ currentRowIndex: virtualInfo.startIndex,
67977
+ currentColIndex: currentColIndex,
67990
67978
  data: virtualInfo.data,
67991
67979
  setRowHeight: virtualInfo.setRowHeight,
67992
67980
  scrolling: scrolling,
@@ -74658,7 +74646,7 @@ var upload_interface = __webpack_require__(8821);
74658
74646
 
74659
74647
 
74660
74648
  /* harmony default export */ var src_0 = ({
74661
- version: '3.9.3-beta.3'
74649
+ version: '3.9.3-beta.4'
74662
74650
  });
74663
74651
  }();
74664
74652
  /******/ return __webpack_exports__;