@leankylin-sheet/core 4.0.8 → 4.0.10

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/context.d.ts CHANGED
@@ -19,6 +19,7 @@ export type CellOptions = {
19
19
  render: any;
20
20
  }[];
21
21
  export type Context = {
22
+ headerBgColor?: string;
22
23
  dragRangeSelect?: {
23
24
  top: number;
24
25
  left: number;
package/dist/index.esm.js CHANGED
@@ -42570,6 +42570,7 @@ function calcSelectionInfo(ctx, lang) {
42570
42570
 
42571
42571
  function defaultContext(refs) {
42572
42572
  return {
42573
+ headerBgColor: "#fff",
42573
42574
  cellOptions: [],
42574
42575
  luckysheetfile: [],
42575
42576
  defaultcolumnNum: 60,
@@ -44322,7 +44323,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
44322
44323
  if (freezenverticaldata != null && column != null) {
44323
44324
  var freezen_colindex = freezenverticaldata[1];
44324
44325
  var offset = _.sortedIndex(freezenverticaldata[3], ctx.scrollLeft);
44325
- var top = freezenverticaldata[4];
44326
44326
  freezen_colindex += offset;
44327
44327
  if (column >= ctx.visibledatacolumn.length) {
44328
44328
  column = ctx.visibledatacolumn.length - 1;
@@ -44330,16 +44330,10 @@ function scrollToFrozenRowCol(ctx, freeze) {
44330
44330
  if (freezen_colindex >= ctx.visibledatacolumn.length) {
44331
44331
  freezen_colindex = ctx.visibledatacolumn.length - 1;
44332
44332
  }
44333
- var column_px = ctx.visibledatacolumn[column];
44334
- var freezen_px = ctx.visibledatacolumn[freezen_colindex];
44335
- if (column_px <= freezen_px + top) {
44336
- ctx.scrollLeft = 0;
44337
- }
44338
44333
  }
44339
44334
  if (freezenhorizontaldata != null && row != null) {
44340
44335
  var freezen_rowindex = freezenhorizontaldata[1];
44341
44336
  var _offset = _.sortedIndex(freezenhorizontaldata[3], ctx.scrollTop);
44342
- var left = freezenhorizontaldata[4];
44343
44337
  freezen_rowindex += _offset;
44344
44338
  if (row >= ctx.visibledatarow.length) {
44345
44339
  row = ctx.visibledatarow.length - 1;
@@ -44347,11 +44341,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
44347
44341
  if (freezen_rowindex >= ctx.visibledatarow.length) {
44348
44342
  freezen_rowindex = ctx.visibledatarow.length - 1;
44349
44343
  }
44350
- var row_px = ctx.visibledatarow[row];
44351
- var _freezen_px = ctx.visibledatarow[freezen_rowindex];
44352
- if (row_px <= _freezen_px + left) {
44353
- ctx.scrollTop = 0;
44354
- }
44355
44344
  }
44356
44345
  }
44357
44346
  function getFrozenHandleTop(ctx) {
@@ -51977,7 +51966,7 @@ var Canvas = /*#__PURE__*/function () {
51977
51966
  continue;
51978
51967
  }
51979
51968
  if (((_this$sheetCtx$config = this.sheetCtx.config) === null || _this$sheetCtx$config === void 0 ? void 0 : (_this$sheetCtx$config2 = _this$sheetCtx$config.rowhidden) === null || _this$sheetCtx$config2 === void 0 ? void 0 : _this$sheetCtx$config2[r]) == null) {
51980
- renderCtx.fillStyle = "#F8F9FA";
51969
+ renderCtx.fillStyle = this.sheetCtx.headerBgColor || "#fff";
51981
51970
  renderCtx.fillRect(0, start_r + offsetTop + firstOffset, this.sheetCtx.rowHeaderWidth - 1, end_r - start_r + 1 + lastOffset - firstOffset);
51982
51971
  renderCtx.fillStyle = "#000000";
51983
51972
  renderCtx.save();
@@ -52070,7 +52059,7 @@ var Canvas = /*#__PURE__*/function () {
52070
52059
  continue;
52071
52060
  }
52072
52061
  if (((_this$sheetCtx$config5 = this.sheetCtx.config) === null || _this$sheetCtx$config5 === void 0 ? void 0 : (_this$sheetCtx$config6 = _this$sheetCtx$config5.colhidden) === null || _this$sheetCtx$config6 === void 0 ? void 0 : _this$sheetCtx$config6[c]) == null) {
52073
- renderCtx.fillStyle = "#F8F9FA";
52062
+ renderCtx.fillStyle = this.sheetCtx.headerBgColor || "#fff";
52074
52063
  renderCtx.fillRect(start_c + offsetLeft - 1, 0, end_c - start_c, this.sheetCtx.columnHeaderHeight - 1);
52075
52064
  renderCtx.fillStyle = "#000000";
52076
52065
  renderCtx.save();
@@ -56049,6 +56038,7 @@ var index = /*#__PURE__*/Object.freeze({
56049
56038
  });
56050
56039
 
56051
56040
  var defaultSettings = {
56041
+ headerBgColor: "#fff",
56052
56042
  toolbarRightRender: undefined,
56053
56043
  onClickContentEditable: undefined,
56054
56044
  renderCustomColor: undefined,
@@ -56459,7 +56449,7 @@ function fixPositionOnFrozenCells(freeze, x, y, mouseX, mouseY) {
56459
56449
  };
56460
56450
  }
56461
56451
  function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxInput, canvas) {
56462
- var _globalCache$freezen, _ctx$hooks$beforeCell, _ctx$hooks, _flowdata$row_index;
56452
+ var _globalCache$freezen, _ctx$hooks$beforeCell, _ctx$hooks, _flowdata$row_index, _flowdata$row_index2, _flowdata$row_index2$;
56463
56453
  ctx.contextMenu = {};
56464
56454
  ctx.filterContextMenu = undefined;
56465
56455
  var flowdata = getFlowdata(ctx);
@@ -56629,7 +56619,6 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56629
56619
  }
56630
56620
  cellInput.innerHTML = vText;
56631
56621
  cancelFunctionrangeSelected(ctx);
56632
- createRangeHightlight(ctx, vText);
56633
56622
  }
56634
56623
  ctx.formulaCache.rangestart = false;
56635
56624
  ctx.formulaCache.rangedrag_column_start = false;
@@ -56675,9 +56664,6 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56675
56664
  ctx.formulaCache.rangedrag_column_start = false;
56676
56665
  ctx.formulaCache.rangedrag_row_start = false;
56677
56666
  ctx.formulaCache.selectingRangeIndex = ctx.formulaCache.rangechangeindex;
56678
- if (ctx.formulaCache.rangechangeindex > ctx.formulaRangeHighlight.length) {
56679
- createRangeHightlight(ctx, cellInput.innerHTML, ctx.formulaCache.rangechangeindex);
56680
- }
56681
56667
  createFormulaRangeSelect(ctx, {
56682
56668
  rangeIndex: ctx.formulaCache.rangechangeindex || 0,
56683
56669
  left: left,
@@ -56795,10 +56781,12 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56795
56781
  }
56796
56782
  }
56797
56783
  ctx.luckysheet_select_save = normalizeSelection(ctx, ctx.luckysheet_select_save);
56784
+ var f = ((_flowdata$row_index2 = flowdata[row_index]) === null || _flowdata$row_index2 === void 0 ? void 0 : (_flowdata$row_index2$ = _flowdata$row_index2[col_index]) === null || _flowdata$row_index2$ === void 0 ? void 0 : _flowdata$row_index2$.f) || "";
56785
+ createRangeHightlight(ctx, functionHTMLGenerate(f));
56798
56786
  if (ctx.hooks.afterCellMouseDown) {
56799
56787
  setTimeout(function () {
56800
- var _ctx$hooks$afterCellM, _ctx$hooks2, _flowdata$row_index2;
56801
- (_ctx$hooks$afterCellM = (_ctx$hooks2 = ctx.hooks).afterCellMouseDown) === null || _ctx$hooks$afterCellM === void 0 ? void 0 : _ctx$hooks$afterCellM.call(_ctx$hooks2, (_flowdata$row_index2 = flowdata[row_index]) === null || _flowdata$row_index2 === void 0 ? void 0 : _flowdata$row_index2[col_index], {
56788
+ var _ctx$hooks$afterCellM, _ctx$hooks2, _flowdata$row_index3;
56789
+ (_ctx$hooks$afterCellM = (_ctx$hooks2 = ctx.hooks).afterCellMouseDown) === null || _ctx$hooks$afterCellM === void 0 ? void 0 : _ctx$hooks$afterCellM.call(_ctx$hooks2, (_flowdata$row_index3 = flowdata[row_index]) === null || _flowdata$row_index3 === void 0 ? void 0 : _flowdata$row_index3[col_index], {
56802
56790
  row: row_index,
56803
56791
  column: col_index,
56804
56792
  startRow: row_pre,
@@ -56810,7 +56798,7 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56810
56798
  }
56811
56799
  }
56812
56800
  function handleCellDrop(ctx, globalCache, e, container) {
56813
- var _globalCache$freezen2, _flowdata$row_index3;
56801
+ var _globalCache$freezen2, _flowdata$row_index4;
56814
56802
  var afterCellDrop = ctx.hooks.afterCellDrop;
56815
56803
  if (!afterCellDrop) {
56816
56804
  return;
@@ -56837,7 +56825,7 @@ function handleCellDrop(ctx, globalCache, e, container) {
56837
56825
  var col_location = colLocation(x, ctx.visibledatacolumn);
56838
56826
  var col_pre = col_location[0];
56839
56827
  var col_index = col_location[2];
56840
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index3 = flowdata[row_index]) === null || _flowdata$row_index3 === void 0 ? void 0 : _flowdata$row_index3[col_index]));
56828
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index4 = flowdata[row_index]) === null || _flowdata$row_index4 === void 0 ? void 0 : _flowdata$row_index4[col_index]));
56841
56829
  var box = document.querySelector(".leankylin-cell-area");
56842
56830
  if (box) {
56843
56831
  var _currentCellValue$cu;
@@ -56873,7 +56861,7 @@ function handleCellDrop(ctx, globalCache, e, container) {
56873
56861
  });
56874
56862
  }
56875
56863
  function handleCellAreaDragOver(ctx, globalCache, e, container) {
56876
- var _globalCache$freezen3, _flowdata$row_index4;
56864
+ var _globalCache$freezen3, _flowdata$row_index5;
56877
56865
  var canDrop = ctx.hooks.afterCellDrop;
56878
56866
  if (!canDrop) {
56879
56867
  return;
@@ -56902,7 +56890,7 @@ function handleCellAreaDragOver(ctx, globalCache, e, container) {
56902
56890
  var col_pre = col_location[0];
56903
56891
  var col_end = col_location[1];
56904
56892
  var col_index = col_location[2];
56905
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index4 = flowdata[row_index]) === null || _flowdata$row_index4 === void 0 ? void 0 : _flowdata$row_index4[col_index]));
56893
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index5 = flowdata[row_index]) === null || _flowdata$row_index5 === void 0 ? void 0 : _flowdata$row_index5[col_index]));
56906
56894
  var box = document.querySelector(".leankylin-cell-area");
56907
56895
  if (box) {
56908
56896
  var _currentCellValue$cu2;
@@ -56933,7 +56921,7 @@ function handleCellAreaDragOver(ctx, globalCache, e, container) {
56933
56921
  };
56934
56922
  }
56935
56923
  function handleCellAreaMouseMove(ctx, globalCache, e, container) {
56936
- var _globalCache$freezen4, _flowdata$row_index5;
56924
+ var _globalCache$freezen4, _flowdata$row_index6;
56937
56925
  var afterCellMouseMove = ctx.hooks.afterCellMouseMove;
56938
56926
  if (!afterCellMouseMove) {
56939
56927
  return;
@@ -56958,7 +56946,7 @@ function handleCellAreaMouseMove(ctx, globalCache, e, container) {
56958
56946
  var col_location = colLocation(x, ctx.visibledatacolumn);
56959
56947
  var col_pre = col_location[0];
56960
56948
  var col_index = col_location[2];
56961
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index5 = flowdata[row_index]) === null || _flowdata$row_index5 === void 0 ? void 0 : _flowdata$row_index5[col_index]));
56949
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index6 = flowdata[row_index]) === null || _flowdata$row_index6 === void 0 ? void 0 : _flowdata$row_index6[col_index]));
56962
56950
  var box = document.querySelector(".leankylin-cell-area");
56963
56951
  if (box) {
56964
56952
  var _currentCellValue$cu3;
package/dist/index.js CHANGED
@@ -42580,6 +42580,7 @@ function calcSelectionInfo(ctx, lang) {
42580
42580
 
42581
42581
  function defaultContext(refs) {
42582
42582
  return {
42583
+ headerBgColor: "#fff",
42583
42584
  cellOptions: [],
42584
42585
  luckysheetfile: [],
42585
42586
  defaultcolumnNum: 60,
@@ -44332,7 +44333,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
44332
44333
  if (freezenverticaldata != null && column != null) {
44333
44334
  var freezen_colindex = freezenverticaldata[1];
44334
44335
  var offset = ___default['default'].sortedIndex(freezenverticaldata[3], ctx.scrollLeft);
44335
- var top = freezenverticaldata[4];
44336
44336
  freezen_colindex += offset;
44337
44337
  if (column >= ctx.visibledatacolumn.length) {
44338
44338
  column = ctx.visibledatacolumn.length - 1;
@@ -44340,16 +44340,10 @@ function scrollToFrozenRowCol(ctx, freeze) {
44340
44340
  if (freezen_colindex >= ctx.visibledatacolumn.length) {
44341
44341
  freezen_colindex = ctx.visibledatacolumn.length - 1;
44342
44342
  }
44343
- var column_px = ctx.visibledatacolumn[column];
44344
- var freezen_px = ctx.visibledatacolumn[freezen_colindex];
44345
- if (column_px <= freezen_px + top) {
44346
- ctx.scrollLeft = 0;
44347
- }
44348
44343
  }
44349
44344
  if (freezenhorizontaldata != null && row != null) {
44350
44345
  var freezen_rowindex = freezenhorizontaldata[1];
44351
44346
  var _offset = ___default['default'].sortedIndex(freezenhorizontaldata[3], ctx.scrollTop);
44352
- var left = freezenhorizontaldata[4];
44353
44347
  freezen_rowindex += _offset;
44354
44348
  if (row >= ctx.visibledatarow.length) {
44355
44349
  row = ctx.visibledatarow.length - 1;
@@ -44357,11 +44351,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
44357
44351
  if (freezen_rowindex >= ctx.visibledatarow.length) {
44358
44352
  freezen_rowindex = ctx.visibledatarow.length - 1;
44359
44353
  }
44360
- var row_px = ctx.visibledatarow[row];
44361
- var _freezen_px = ctx.visibledatarow[freezen_rowindex];
44362
- if (row_px <= _freezen_px + left) {
44363
- ctx.scrollTop = 0;
44364
- }
44365
44354
  }
44366
44355
  }
44367
44356
  function getFrozenHandleTop(ctx) {
@@ -51987,7 +51976,7 @@ var Canvas = /*#__PURE__*/function () {
51987
51976
  continue;
51988
51977
  }
51989
51978
  if (((_this$sheetCtx$config = this.sheetCtx.config) === null || _this$sheetCtx$config === void 0 ? void 0 : (_this$sheetCtx$config2 = _this$sheetCtx$config.rowhidden) === null || _this$sheetCtx$config2 === void 0 ? void 0 : _this$sheetCtx$config2[r]) == null) {
51990
- renderCtx.fillStyle = "#F8F9FA";
51979
+ renderCtx.fillStyle = this.sheetCtx.headerBgColor || "#fff";
51991
51980
  renderCtx.fillRect(0, start_r + offsetTop + firstOffset, this.sheetCtx.rowHeaderWidth - 1, end_r - start_r + 1 + lastOffset - firstOffset);
51992
51981
  renderCtx.fillStyle = "#000000";
51993
51982
  renderCtx.save();
@@ -52080,7 +52069,7 @@ var Canvas = /*#__PURE__*/function () {
52080
52069
  continue;
52081
52070
  }
52082
52071
  if (((_this$sheetCtx$config5 = this.sheetCtx.config) === null || _this$sheetCtx$config5 === void 0 ? void 0 : (_this$sheetCtx$config6 = _this$sheetCtx$config5.colhidden) === null || _this$sheetCtx$config6 === void 0 ? void 0 : _this$sheetCtx$config6[c]) == null) {
52083
- renderCtx.fillStyle = "#F8F9FA";
52072
+ renderCtx.fillStyle = this.sheetCtx.headerBgColor || "#fff";
52084
52073
  renderCtx.fillRect(start_c + offsetLeft - 1, 0, end_c - start_c, this.sheetCtx.columnHeaderHeight - 1);
52085
52074
  renderCtx.fillStyle = "#000000";
52086
52075
  renderCtx.save();
@@ -56059,6 +56048,7 @@ var index = /*#__PURE__*/Object.freeze({
56059
56048
  });
56060
56049
 
56061
56050
  var defaultSettings = {
56051
+ headerBgColor: "#fff",
56062
56052
  toolbarRightRender: undefined,
56063
56053
  onClickContentEditable: undefined,
56064
56054
  renderCustomColor: undefined,
@@ -56469,7 +56459,7 @@ function fixPositionOnFrozenCells(freeze, x, y, mouseX, mouseY) {
56469
56459
  };
56470
56460
  }
56471
56461
  function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxInput, canvas) {
56472
- var _globalCache$freezen, _ctx$hooks$beforeCell, _ctx$hooks, _flowdata$row_index;
56462
+ var _globalCache$freezen, _ctx$hooks$beforeCell, _ctx$hooks, _flowdata$row_index, _flowdata$row_index2, _flowdata$row_index2$;
56473
56463
  ctx.contextMenu = {};
56474
56464
  ctx.filterContextMenu = undefined;
56475
56465
  var flowdata = getFlowdata(ctx);
@@ -56639,7 +56629,6 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56639
56629
  }
56640
56630
  cellInput.innerHTML = vText;
56641
56631
  cancelFunctionrangeSelected(ctx);
56642
- createRangeHightlight(ctx, vText);
56643
56632
  }
56644
56633
  ctx.formulaCache.rangestart = false;
56645
56634
  ctx.formulaCache.rangedrag_column_start = false;
@@ -56685,9 +56674,6 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56685
56674
  ctx.formulaCache.rangedrag_column_start = false;
56686
56675
  ctx.formulaCache.rangedrag_row_start = false;
56687
56676
  ctx.formulaCache.selectingRangeIndex = ctx.formulaCache.rangechangeindex;
56688
- if (ctx.formulaCache.rangechangeindex > ctx.formulaRangeHighlight.length) {
56689
- createRangeHightlight(ctx, cellInput.innerHTML, ctx.formulaCache.rangechangeindex);
56690
- }
56691
56677
  createFormulaRangeSelect(ctx, {
56692
56678
  rangeIndex: ctx.formulaCache.rangechangeindex || 0,
56693
56679
  left: left,
@@ -56805,10 +56791,12 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56805
56791
  }
56806
56792
  }
56807
56793
  ctx.luckysheet_select_save = normalizeSelection(ctx, ctx.luckysheet_select_save);
56794
+ var f = ((_flowdata$row_index2 = flowdata[row_index]) === null || _flowdata$row_index2 === void 0 ? void 0 : (_flowdata$row_index2$ = _flowdata$row_index2[col_index]) === null || _flowdata$row_index2$ === void 0 ? void 0 : _flowdata$row_index2$.f) || "";
56795
+ createRangeHightlight(ctx, functionHTMLGenerate(f));
56808
56796
  if (ctx.hooks.afterCellMouseDown) {
56809
56797
  setTimeout(function () {
56810
- var _ctx$hooks$afterCellM, _ctx$hooks2, _flowdata$row_index2;
56811
- (_ctx$hooks$afterCellM = (_ctx$hooks2 = ctx.hooks).afterCellMouseDown) === null || _ctx$hooks$afterCellM === void 0 ? void 0 : _ctx$hooks$afterCellM.call(_ctx$hooks2, (_flowdata$row_index2 = flowdata[row_index]) === null || _flowdata$row_index2 === void 0 ? void 0 : _flowdata$row_index2[col_index], {
56798
+ var _ctx$hooks$afterCellM, _ctx$hooks2, _flowdata$row_index3;
56799
+ (_ctx$hooks$afterCellM = (_ctx$hooks2 = ctx.hooks).afterCellMouseDown) === null || _ctx$hooks$afterCellM === void 0 ? void 0 : _ctx$hooks$afterCellM.call(_ctx$hooks2, (_flowdata$row_index3 = flowdata[row_index]) === null || _flowdata$row_index3 === void 0 ? void 0 : _flowdata$row_index3[col_index], {
56812
56800
  row: row_index,
56813
56801
  column: col_index,
56814
56802
  startRow: row_pre,
@@ -56820,7 +56808,7 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
56820
56808
  }
56821
56809
  }
56822
56810
  function handleCellDrop(ctx, globalCache, e, container) {
56823
- var _globalCache$freezen2, _flowdata$row_index3;
56811
+ var _globalCache$freezen2, _flowdata$row_index4;
56824
56812
  var afterCellDrop = ctx.hooks.afterCellDrop;
56825
56813
  if (!afterCellDrop) {
56826
56814
  return;
@@ -56847,7 +56835,7 @@ function handleCellDrop(ctx, globalCache, e, container) {
56847
56835
  var col_location = colLocation(x, ctx.visibledatacolumn);
56848
56836
  var col_pre = col_location[0];
56849
56837
  var col_index = col_location[2];
56850
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index3 = flowdata[row_index]) === null || _flowdata$row_index3 === void 0 ? void 0 : _flowdata$row_index3[col_index]));
56838
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index4 = flowdata[row_index]) === null || _flowdata$row_index4 === void 0 ? void 0 : _flowdata$row_index4[col_index]));
56851
56839
  var box = document.querySelector(".leankylin-cell-area");
56852
56840
  if (box) {
56853
56841
  var _currentCellValue$cu;
@@ -56883,7 +56871,7 @@ function handleCellDrop(ctx, globalCache, e, container) {
56883
56871
  });
56884
56872
  }
56885
56873
  function handleCellAreaDragOver(ctx, globalCache, e, container) {
56886
- var _globalCache$freezen3, _flowdata$row_index4;
56874
+ var _globalCache$freezen3, _flowdata$row_index5;
56887
56875
  var canDrop = ctx.hooks.afterCellDrop;
56888
56876
  if (!canDrop) {
56889
56877
  return;
@@ -56912,7 +56900,7 @@ function handleCellAreaDragOver(ctx, globalCache, e, container) {
56912
56900
  var col_pre = col_location[0];
56913
56901
  var col_end = col_location[1];
56914
56902
  var col_index = col_location[2];
56915
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index4 = flowdata[row_index]) === null || _flowdata$row_index4 === void 0 ? void 0 : _flowdata$row_index4[col_index]));
56903
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index5 = flowdata[row_index]) === null || _flowdata$row_index5 === void 0 ? void 0 : _flowdata$row_index5[col_index]));
56916
56904
  var box = document.querySelector(".leankylin-cell-area");
56917
56905
  if (box) {
56918
56906
  var _currentCellValue$cu2;
@@ -56943,7 +56931,7 @@ function handleCellAreaDragOver(ctx, globalCache, e, container) {
56943
56931
  };
56944
56932
  }
56945
56933
  function handleCellAreaMouseMove(ctx, globalCache, e, container) {
56946
- var _globalCache$freezen4, _flowdata$row_index5;
56934
+ var _globalCache$freezen4, _flowdata$row_index6;
56947
56935
  var afterCellMouseMove = ctx.hooks.afterCellMouseMove;
56948
56936
  if (!afterCellMouseMove) {
56949
56937
  return;
@@ -56968,7 +56956,7 @@ function handleCellAreaMouseMove(ctx, globalCache, e, container) {
56968
56956
  var col_location = colLocation(x, ctx.visibledatacolumn);
56969
56957
  var col_pre = col_location[0];
56970
56958
  var col_index = col_location[2];
56971
- var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index5 = flowdata[row_index]) === null || _flowdata$row_index5 === void 0 ? void 0 : _flowdata$row_index5[col_index]));
56959
+ var currentCellValue = JSON.parse(JSON.stringify((_flowdata$row_index6 = flowdata[row_index]) === null || _flowdata$row_index6 === void 0 ? void 0 : _flowdata$row_index6[col_index]));
56972
56960
  var box = document.querySelector(".leankylin-cell-area");
56973
56961
  if (box) {
56974
56962
  var _currentCellValue$cu3;
@@ -79,6 +79,7 @@ export type Hooks = {
79
79
  afterUpdateSheetName?: (id: string, oldName: string, newName: string) => void;
80
80
  };
81
81
  export type Settings = {
82
+ headerBgColor?: string;
82
83
  toolbarRightRender?: any;
83
84
  onClickContentEditable?: any;
84
85
  renderCustomColor?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "4.0.8",
16
+ "@leankylin-sheet/formula-parser": "4.0.10",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",