@fileverse-dev/fortune-core 1.0.95 → 1.0.97
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/modules/cell.js +1 -1
- package/es/modules/formula.js +3 -0
- package/lib/modules/cell.js +1 -1
- package/lib/modules/formula.js +3 -0
- package/package.json +2 -2
package/es/modules/cell.js
CHANGED
|
@@ -721,7 +721,7 @@ export function updateCell(ctx, r, c, $input, value, canvas) {
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
if (
|
|
724
|
+
if (ctx.hooks.afterUpdateCell) {
|
|
725
725
|
var newValue_1 = _.cloneDeep(flowdata[r][c]);
|
|
726
726
|
var afterUpdateCell_1 = ctx.hooks.afterUpdateCell;
|
|
727
727
|
setTimeout(function () {
|
package/es/modules/formula.js
CHANGED
|
@@ -2131,6 +2131,7 @@ export function rangeDragRow(ctx, e, cellInput, scrollLeft, scrollTop, container
|
|
|
2131
2131
|
setRangeSelect(container, col_pre, top, height, col - col_pre - 1);
|
|
2132
2132
|
}
|
|
2133
2133
|
function updateparam(orient, txt, step) {
|
|
2134
|
+
console.log("updateparam", orient, txt, step);
|
|
2134
2135
|
var val = txt.split("!");
|
|
2135
2136
|
var rangetxt;
|
|
2136
2137
|
var prefix = "";
|
|
@@ -2238,6 +2239,7 @@ function rightparam(txt, step) {
|
|
|
2238
2239
|
return updateparam("r", txt, step);
|
|
2239
2240
|
}
|
|
2240
2241
|
export function functionCopy(ctx, txt, mode, step) {
|
|
2242
|
+
console.log("functionCopy");
|
|
2241
2243
|
if (mode == null) {
|
|
2242
2244
|
mode = "down";
|
|
2243
2245
|
}
|
|
@@ -2341,5 +2343,6 @@ export function functionCopy(ctx, txt, mode, step) {
|
|
|
2341
2343
|
}
|
|
2342
2344
|
i += 1;
|
|
2343
2345
|
}
|
|
2346
|
+
function_str = function_str.replace(/NaN/g, "");
|
|
2344
2347
|
return function_str;
|
|
2345
2348
|
}
|
package/lib/modules/cell.js
CHANGED
|
@@ -751,7 +751,7 @@ function updateCell(ctx, r, c, $input, value, canvas) {
|
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
if (
|
|
754
|
+
if (ctx.hooks.afterUpdateCell) {
|
|
755
755
|
var newValue_1 = _lodash.default.cloneDeep(flowdata[r][c]);
|
|
756
756
|
var afterUpdateCell_1 = ctx.hooks.afterUpdateCell;
|
|
757
757
|
setTimeout(function () {
|
package/lib/modules/formula.js
CHANGED
|
@@ -2160,6 +2160,7 @@ function rangeDragRow(ctx, e, cellInput, scrollLeft, scrollTop, container, fxInp
|
|
|
2160
2160
|
setRangeSelect(container, col_pre, top, height, col - col_pre - 1);
|
|
2161
2161
|
}
|
|
2162
2162
|
function updateparam(orient, txt, step) {
|
|
2163
|
+
console.log("updateparam", orient, txt, step);
|
|
2163
2164
|
var val = txt.split("!");
|
|
2164
2165
|
var rangetxt;
|
|
2165
2166
|
var prefix = "";
|
|
@@ -2267,6 +2268,7 @@ function rightparam(txt, step) {
|
|
|
2267
2268
|
return updateparam("r", txt, step);
|
|
2268
2269
|
}
|
|
2269
2270
|
function functionCopy(ctx, txt, mode, step) {
|
|
2271
|
+
console.log("functionCopy");
|
|
2270
2272
|
if (mode == null) {
|
|
2271
2273
|
mode = "down";
|
|
2272
2274
|
}
|
|
@@ -2370,5 +2372,6 @@ function functionCopy(ctx, txt, mode, step) {
|
|
|
2370
2372
|
}
|
|
2371
2373
|
i += 1;
|
|
2372
2374
|
}
|
|
2375
|
+
function_str = function_str.replace(/NaN/g, "");
|
|
2373
2376
|
return function_str;
|
|
2374
2377
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.97",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dev": "father-build --watch"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fileverse-dev/formula-parser": "0.2.
|
|
18
|
+
"@fileverse-dev/formula-parser": "0.2.56",
|
|
19
19
|
"dayjs": "^1.11.0",
|
|
20
20
|
"immer": "^9.0.12",
|
|
21
21
|
"lodash": "^4.17.21",
|