@fileverse-dev/fortune-core 1.2.34 → 1.2.35
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/es/events/paste.js +1 -1
- package/lib/events/paste.js +1 -1
- package/package.json +1 -1
package/es/events/paste.js
CHANGED
|
@@ -187,7 +187,7 @@ var handleFormulaOnPaste = function handleFormulaOnPaste(ctx, d) {
|
|
|
187
187
|
var x = d[r];
|
|
188
188
|
for (var c = 0; c < d[0].length; c += 1) {
|
|
189
189
|
var value = isObject(d[r][c]) ? (_a = d[r][c]) === null || _a === void 0 ? void 0 : _a.v : d[r][c];
|
|
190
|
-
if (value && String(value).
|
|
190
|
+
if (value && String(value).startsWith("=")) {
|
|
191
191
|
var cell = {};
|
|
192
192
|
var _b = execfunction(ctx, String(value), r, c, undefined, undefined, true),
|
|
193
193
|
v = _b[1],
|
package/lib/events/paste.js
CHANGED
|
@@ -200,7 +200,7 @@ var handleFormulaOnPaste = function handleFormulaOnPaste(ctx, d) {
|
|
|
200
200
|
var x = d[r];
|
|
201
201
|
for (var c = 0; c < d[0].length; c += 1) {
|
|
202
202
|
var value = (0, _lodash.isObject)(d[r][c]) ? (_a = d[r][c]) === null || _a === void 0 ? void 0 : _a.v : d[r][c];
|
|
203
|
-
if (value && String(value).
|
|
203
|
+
if (value && String(value).startsWith("=")) {
|
|
204
204
|
var cell = {};
|
|
205
205
|
var _b = (0, _formula.execfunction)(ctx, String(value), r, c, undefined, undefined, true),
|
|
206
206
|
v = _b[1],
|