shineout 3.5.4-beta.13 → 3.5.4-beta.15

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.4-beta.13'
510
+ version: '3.5.4-beta.15'
511
511
  };
package/dist/shineout.js CHANGED
@@ -7053,20 +7053,29 @@ var AlertIcon = function AlertIcon(props) {
7053
7053
  var AlertIconMap = alert_icon_icons;
7054
7054
  /* harmony default export */ var alert_icon = (AlertIcon);
7055
7055
  ;// CONCATENATED MODULE: ../hooks/src/utils/warning.ts
7056
+ var shownMessages = new Set();
7057
+ var shouldShowMessage = function shouldShowMessage(message) {
7058
+ if (shownMessages.has(message)) {
7059
+ return false;
7060
+ }
7061
+ shownMessages.add(message);
7062
+ return true;
7063
+ };
7056
7064
  var deprecated = function deprecated(prop, newProp, component, extraMessage) {
7057
- if (false) {}
7065
+ if (false) { var msg; }
7058
7066
  };
7059
7067
  var breakingChange = function breakingChange(message) {
7060
- if (false) {}
7068
+ if (false) { var msg; }
7061
7069
  };
7062
7070
  var devWarn = function devWarn(message) {
7063
7071
  if (false) {}
7064
7072
  };
7065
7073
  var conflictWarning = function conflictWarning(component, prop1, prop2) {
7066
- if (false) {}
7074
+ if (false) { var msg; }
7067
7075
  };
7068
7076
  var error = function error(message) {
7069
- console.error(new Error("[shineout] ".concat(message)));
7077
+ var msg = new Error("[shineout] ".concat(message));
7078
+ shouldShowMessage(msg.message) && console.error(msg);
7070
7079
  };
7071
7080
  var devUseWarning = {
7072
7081
  error: error,
@@ -12031,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12031
12040
  };
12032
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12033
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12034
- /* harmony default export */ var version = ('3.5.4-beta.13');
12043
+ /* harmony default export */ var version = ('3.5.4-beta.15');
12035
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12036
12045
 
12037
12046
 
@@ -58919,7 +58928,7 @@ var useTableVirtual = function useTableVirtual(props) {
58919
58928
  context.rowSpanRows = 0;
58920
58929
  var currentRowHeight = context.cachedHeight[i] || props.rowHeight;
58921
58930
  sum += currentRowHeight;
58922
- var rowSpanHeight = currentRowHeight;
58931
+ var rowSpanHeight = 0;
58923
58932
  if (rowSpanInfo) {
58924
58933
  var siblingsIndexs = [];
58925
58934
  for (var k = i; k < rowSpanInfo.maxRowSpan + i; k++) {
@@ -58945,6 +58954,14 @@ var useTableVirtual = function useTableVirtual(props) {
58945
58954
  }
58946
58955
  if (currentIndex !== startIndex) {
58947
58956
  setStartIndex(currentIndex);
58957
+
58958
+ // startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
58959
+ if (startIndex < currentIndex) {
58960
+ context.autoAddRows = currentIndex - startIndex;
58961
+ setTimeout(function () {
58962
+ context.autoAddRows = 0;
58963
+ }, 300);
58964
+ }
58948
58965
  }
58949
58966
  setTop(top);
58950
58967
  };
@@ -60071,7 +60088,7 @@ var Tr = function Tr(props) {
60071
60088
  var clickEvent = col.type === 'expand' ? function () {
60072
60089
  props.handleExpandClick(col, props.rawData, props.rowIndex);
60073
60090
  } : undefined;
60074
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60091
+ var expandInstance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
60075
60092
  className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.expandIconWrapper),
60076
60093
  onClick: clickEvent,
60077
60094
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@@ -60080,6 +60097,11 @@ var Tr = function Tr(props) {
60080
60097
  children: props.expanded ? icons_config.table.Expand : icons_config.table.Collapse
60081
60098
  })
60082
60099
  });
60100
+ if (props.expandIcon && typeof props.expandIcon === 'function') {
60101
+ var result = props.expandIcon(props.rawData, props.rowIndex, props.expanded, expandInstance, clickEvent);
60102
+ return result;
60103
+ }
60104
+ return expandInstance;
60083
60105
  }
60084
60106
  if (col.type === 'checkbox') {
60085
60107
  var instance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -60303,6 +60325,7 @@ var Tr = function Tr(props) {
60303
60325
  treeFunc: props.treeFunc,
60304
60326
  treeExpandLevel: props.treeExpandLevel,
60305
60327
  treeEmptyExpand: props.treeEmptyExpand,
60328
+ expandIcon: props.expandIcon,
60306
60329
  treeExpandIcon: props.treeExpandIcon,
60307
60330
  loader: props.loader,
60308
60331
  isEmptyTree: props.isEmptyTree,
@@ -60730,6 +60753,7 @@ var emptyRef = {
60730
60753
  expandKeys: props.expandKeys,
60731
60754
  datum: datum,
60732
60755
  treeEmptyExpand: props.treeEmptyExpand,
60756
+ expandIcon: props.expandIcon,
60733
60757
  treeExpandIcon: props.treeExpandIcon,
60734
60758
  loader: props.loader,
60735
60759
  isEmptyTree: isEmptyTree,
@@ -67144,7 +67168,7 @@ var upload_interface = __webpack_require__(8821);
67144
67168
 
67145
67169
 
67146
67170
  /* harmony default export */ var src_0 = ({
67147
- version: '3.5.4-beta.13'
67171
+ version: '3.5.4-beta.15'
67148
67172
  });
67149
67173
  }();
67150
67174
  /******/ return __webpack_exports__;