@leankylin-sheet/react 5.2.12 → 5.2.14
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 +4 -3
- package/dist/index.js +4 -3
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3564,12 +3564,13 @@ var CellOptions = function CellOptions() {
|
|
|
3564
3564
|
var _context$cellOptions;
|
|
3565
3565
|
var _useContext = useContext(WorkbookContext),
|
|
3566
3566
|
context = _useContext.context,
|
|
3567
|
-
refs = _useContext.refs
|
|
3567
|
+
refs = _useContext.refs,
|
|
3568
|
+
settings = _useContext.settings;
|
|
3568
3569
|
var cellOptions = (_context$cellOptions = context.cellOptions) !== null && _context$cellOptions !== void 0 ? _context$cellOptions : [];
|
|
3569
3570
|
return /*#__PURE__*/React.createElement("div", {
|
|
3570
3571
|
className: "leankylin-cell-option"
|
|
3571
3572
|
}, cellOptions === null || cellOptions === void 0 ? void 0 : cellOptions.map(function (item) {
|
|
3572
|
-
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render;
|
|
3573
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render, _settings$renderCellO;
|
|
3573
3574
|
var _colLocationByIndex = colLocationByIndex(item.c, context.visibledatacolumn),
|
|
3574
3575
|
_colLocationByIndex2 = _slicedToArray(_colLocationByIndex, 2),
|
|
3575
3576
|
left = _colLocationByIndex2[0],
|
|
@@ -3597,7 +3598,7 @@ var CellOptions = function CellOptions() {
|
|
|
3597
3598
|
width: right - left,
|
|
3598
3599
|
height: bottom - top
|
|
3599
3600
|
}, otherStyles)
|
|
3600
|
-
}, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
|
|
3601
|
+
}, (item === null || item === void 0 ? void 0 : item.render) ? item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item) : (_settings$renderCellO = settings.renderCellOptions) === null || _settings$renderCellO === void 0 ? void 0 : _settings$renderCellO.call(settings, item));
|
|
3601
3602
|
}));
|
|
3602
3603
|
};
|
|
3603
3604
|
|
package/dist/index.js
CHANGED
|
@@ -3574,12 +3574,13 @@ var CellOptions = function CellOptions() {
|
|
|
3574
3574
|
var _context$cellOptions;
|
|
3575
3575
|
var _useContext = React.useContext(WorkbookContext),
|
|
3576
3576
|
context = _useContext.context,
|
|
3577
|
-
refs = _useContext.refs
|
|
3577
|
+
refs = _useContext.refs,
|
|
3578
|
+
settings = _useContext.settings;
|
|
3578
3579
|
var cellOptions = (_context$cellOptions = context.cellOptions) !== null && _context$cellOptions !== void 0 ? _context$cellOptions : [];
|
|
3579
3580
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3580
3581
|
className: "leankylin-cell-option"
|
|
3581
3582
|
}, cellOptions === null || cellOptions === void 0 ? void 0 : cellOptions.map(function (item) {
|
|
3582
|
-
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render;
|
|
3583
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render, _settings$renderCellO;
|
|
3583
3584
|
var _colLocationByIndex = core.colLocationByIndex(item.c, context.visibledatacolumn),
|
|
3584
3585
|
_colLocationByIndex2 = _slicedToArray(_colLocationByIndex, 2),
|
|
3585
3586
|
left = _colLocationByIndex2[0],
|
|
@@ -3607,7 +3608,7 @@ var CellOptions = function CellOptions() {
|
|
|
3607
3608
|
width: right - left,
|
|
3608
3609
|
height: bottom - top
|
|
3609
3610
|
}, otherStyles)
|
|
3610
|
-
}, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
|
|
3611
|
+
}, (item === null || item === void 0 ? void 0 : item.render) ? item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item) : (_settings$renderCellO = settings.renderCellOptions) === null || _settings$renderCellO === void 0 ? void 0 : _settings$renderCellO.call(settings, item));
|
|
3611
3612
|
}));
|
|
3612
3613
|
};
|
|
3613
3614
|
|
package/dist/index.umd.js
CHANGED
|
@@ -108413,12 +108413,13 @@
|
|
|
108413
108413
|
var _context$cellOptions;
|
|
108414
108414
|
var _useContext = React.useContext(WorkbookContext),
|
|
108415
108415
|
context = _useContext.context,
|
|
108416
|
-
refs = _useContext.refs
|
|
108416
|
+
refs = _useContext.refs,
|
|
108417
|
+
settings = _useContext.settings;
|
|
108417
108418
|
var cellOptions = (_context$cellOptions = context.cellOptions) !== null && _context$cellOptions !== void 0 ? _context$cellOptions : [];
|
|
108418
108419
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
108419
108420
|
className: "leankylin-cell-option"
|
|
108420
108421
|
}, cellOptions === null || cellOptions === void 0 ? void 0 : cellOptions.map(function (item) {
|
|
108421
|
-
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render;
|
|
108422
|
+
var _refs$globalCache$fre, _refs$globalCache$fre2, _refs$globalCache$fre3, _refs$globalCache$fre4, _refs$globalCache$fre5, _refs$globalCache$fre6, _refs$globalCache$fre7, _refs$globalCache$fre8, _refs$globalCache$fre9, _refs$globalCache$fre10, _item$render, _settings$renderCellO;
|
|
108422
108423
|
var _colLocationByIndex = colLocationByIndex(item.c, context.visibledatacolumn),
|
|
108423
108424
|
_colLocationByIndex2 = _slicedToArray(_colLocationByIndex, 2),
|
|
108424
108425
|
left = _colLocationByIndex2[0],
|
|
@@ -108446,7 +108447,7 @@
|
|
|
108446
108447
|
width: right - left,
|
|
108447
108448
|
height: bottom - top
|
|
108448
108449
|
}, otherStyles)
|
|
108449
|
-
}, item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item));
|
|
108450
|
+
}, (item === null || item === void 0 ? void 0 : item.render) ? item === null || item === void 0 ? void 0 : (_item$render = item.render) === null || _item$render === void 0 ? void 0 : _item$render.call(item, item) : (_settings$renderCellO = settings.renderCellOptions) === null || _settings$renderCellO === void 0 ? void 0 : _settings$renderCellO.call(settings, item));
|
|
108450
108451
|
}));
|
|
108451
108452
|
};
|
|
108452
108453
|
|