@leankylin-sheet/react 2.0.17 → 2.0.19

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/dist/index.esm.js CHANGED
@@ -3225,13 +3225,14 @@ var CellOptions = function CellOptions() {
3225
3225
  var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, item.c, item.c, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]);
3226
3226
  var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, item.r, item.r, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]);
3227
3227
  return /*#__PURE__*/React.createElement("div", {
3228
- style: _objectSpread2(_objectSpread2(_objectSpread2({}, columnOverflowFreezeStyle), rowOverflowFreezeStyle), {}, {
3228
+ className: "leankylin-cell-option-item",
3229
+ style: _objectSpread2(_objectSpread2({
3229
3230
  position: "absolute",
3230
3231
  left: left,
3231
3232
  top: top,
3232
3233
  width: right - left,
3233
3234
  height: bottom - top
3234
- })
3235
+ }, columnOverflowFreezeStyle), rowOverflowFreezeStyle)
3235
3236
  }, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
3236
3237
  }));
3237
3238
  };
@@ -6428,9 +6429,6 @@ var CalcInfo = function CalcInfo() {
6428
6429
  if ((columns === null || columns === void 0 ? void 0 : columns.length) !== 2 || (rows === null || rows === void 0 ? void 0 : rows.length) !== 2) {
6429
6430
  return null;
6430
6431
  }
6431
- if (columns[0] === columns[1] && rows[0] === rows[1]) {
6432
- return null;
6433
- }
6434
6432
  var selectData = getDataBySelectionNoCopy(context, firstSelection);
6435
6433
  var flatData = selectData.flat();
6436
6434
  var count = 0;
package/dist/index.js CHANGED
@@ -3235,13 +3235,14 @@ var CellOptions = function CellOptions() {
3235
3235
  var columnOverflowFreezeStyle = core.fixColumnStyleOverflowInFreeze(context, item.c, item.c, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]);
3236
3236
  var rowOverflowFreezeStyle = core.fixRowStyleOverflowInFreeze(context, item.r, item.r, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]);
3237
3237
  return /*#__PURE__*/React__default['default'].createElement("div", {
3238
- style: _objectSpread2(_objectSpread2(_objectSpread2({}, columnOverflowFreezeStyle), rowOverflowFreezeStyle), {}, {
3238
+ className: "leankylin-cell-option-item",
3239
+ style: _objectSpread2(_objectSpread2({
3239
3240
  position: "absolute",
3240
3241
  left: left,
3241
3242
  top: top,
3242
3243
  width: right - left,
3243
3244
  height: bottom - top
3244
- })
3245
+ }, columnOverflowFreezeStyle), rowOverflowFreezeStyle)
3245
3246
  }, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
3246
3247
  }));
3247
3248
  };
@@ -6438,9 +6439,6 @@ var CalcInfo = function CalcInfo() {
6438
6439
  if ((columns === null || columns === void 0 ? void 0 : columns.length) !== 2 || (rows === null || rows === void 0 ? void 0 : rows.length) !== 2) {
6439
6440
  return null;
6440
6441
  }
6441
- if (columns[0] === columns[1] && rows[0] === rows[1]) {
6442
- return null;
6443
- }
6444
6442
  var selectData = core.getDataBySelectionNoCopy(context, firstSelection);
6445
6443
  var flatData = selectData.flat();
6446
6444
  var count = 0;
package/dist/index.umd.js CHANGED
@@ -105426,13 +105426,14 @@
105426
105426
  var columnOverflowFreezeStyle = fixColumnStyleOverflowInFreeze(context, item.c, item.c, (_refs$globalCache$fre = refs.globalCache.freezen) === null || _refs$globalCache$fre === void 0 ? void 0 : _refs$globalCache$fre[context.currentSheetId]);
105427
105427
  var rowOverflowFreezeStyle = fixRowStyleOverflowInFreeze(context, item.r, item.r, (_refs$globalCache$fre2 = refs.globalCache.freezen) === null || _refs$globalCache$fre2 === void 0 ? void 0 : _refs$globalCache$fre2[context.currentSheetId]);
105428
105428
  return /*#__PURE__*/React__default['default'].createElement("div", {
105429
- style: _objectSpread2(_objectSpread2(_objectSpread2({}, columnOverflowFreezeStyle), rowOverflowFreezeStyle), {}, {
105429
+ className: "leankylin-cell-option-item",
105430
+ style: _objectSpread2(_objectSpread2({
105430
105431
  position: "absolute",
105431
105432
  left: left,
105432
105433
  top: top,
105433
105434
  width: right - left,
105434
105435
  height: bottom - top
105435
- })
105436
+ }, columnOverflowFreezeStyle), rowOverflowFreezeStyle)
105436
105437
  }, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
105437
105438
  }));
105438
105439
  };
@@ -108629,9 +108630,6 @@
108629
108630
  if ((columns === null || columns === void 0 ? void 0 : columns.length) !== 2 || (rows === null || rows === void 0 ? void 0 : rows.length) !== 2) {
108630
108631
  return null;
108631
108632
  }
108632
- if (columns[0] === columns[1] && rows[0] === rows[1]) {
108633
- return null;
108634
- }
108635
108633
  var selectData = getDataBySelectionNoCopy(context, firstSelection);
108636
108634
  var flatData = selectData.flat();
108637
108635
  var count = 0;