@fileverse-dev/fortune-core 1.1.91 → 1.1.92

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.
@@ -104,6 +104,7 @@ export function getCellValue(r, c, data, attr) {
104
104
  }
105
105
  export function setCellValue(ctx, r, c, d, v) {
106
106
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
107
+ if (ctx.allowEdit === false || ctx.isFlvReadOnly) return;
107
108
  if (_.isNil(d)) {
108
109
  d = getFlowdata(ctx);
109
110
  }
@@ -528,6 +529,7 @@ export function cancelNormalSelected(ctx) {
528
529
  }
529
530
  export function updateCell(ctx, r, c, $input, value, canvas) {
530
531
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
532
+ if (ctx.allowEdit === false || ctx.isFlvReadOnly) return;
531
533
  var inputText = $input === null || $input === void 0 ? void 0 : $input.innerText;
532
534
  var inputHtml = $input === null || $input === void 0 ? void 0 : $input.innerHTML;
533
535
  var flowdata = getFlowdata(ctx);
@@ -137,6 +137,7 @@ function getCellValue(r, c, data, attr) {
137
137
  }
138
138
  function setCellValue(ctx, r, c, d, v) {
139
139
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
140
+ if (ctx.allowEdit === false || ctx.isFlvReadOnly) return;
140
141
  if (_lodash.default.isNil(d)) {
141
142
  d = (0, _context.getFlowdata)(ctx);
142
143
  }
@@ -561,6 +562,7 @@ function cancelNormalSelected(ctx) {
561
562
  }
562
563
  function updateCell(ctx, r, c, $input, value, canvas) {
563
564
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
565
+ if (ctx.allowEdit === false || ctx.isFlvReadOnly) return;
564
566
  var inputText = $input === null || $input === void 0 ? void 0 : $input.innerText;
565
567
  var inputHtml = $input === null || $input === void 0 ? void 0 : $input.innerHTML;
566
568
  var flowdata = (0, _context.getFlowdata)(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.91",
3
+ "version": "1.1.92",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",