@fileverse-dev/fortune-react 1.1.80-patch-test-3 → 1.1.80-patch-test-4
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.
|
@@ -15,7 +15,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
15
15
|
}
|
|
16
16
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
17
17
|
};
|
|
18
|
-
import { defaultContext, defaultSettings, initSheetIndex, handleGlobalKeyDown, getSheetIndex, handlePaste, filterPatch, patchToOp, inverseRowColOptions, ensureSheetIndex, insertRowCol, deleteRowCol, groupValuesRefresh, insertDuneChart, getFlowdata, api, handlePasteByClick
|
|
18
|
+
import { defaultContext, defaultSettings, initSheetIndex, handleGlobalKeyDown, getSheetIndex, handlePaste, filterPatch, patchToOp, inverseRowColOptions, ensureSheetIndex, insertRowCol, deleteRowCol, groupValuesRefresh, insertDuneChart, getFlowdata, api, handlePasteByClick } from "@fileverse-dev/fortune-core";
|
|
19
19
|
import React, { useMemo, useState, useCallback, useEffect, useRef, useImperativeHandle } from "react";
|
|
20
20
|
import "./index.css";
|
|
21
21
|
import produce, { applyPatches, enablePatches, produceWithPatches } from "immer";
|
|
@@ -116,13 +116,16 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
116
116
|
if (d.v) {
|
|
117
117
|
console.log("set cell value", d.r, d.c, d.v);
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
expandedData_1[d.r][d.c] = d.v;
|
|
120
120
|
});
|
|
121
121
|
draftCtx.luckysheetfile = produce(draftCtx.luckysheetfile, function (d) {
|
|
122
122
|
d[index].data = expandedData_1;
|
|
123
123
|
delete d[index].celldata;
|
|
124
124
|
return d;
|
|
125
125
|
});
|
|
126
|
+
console.log({
|
|
127
|
+
LUCKYSHEET: draftCtx.luckysheetfile
|
|
128
|
+
});
|
|
126
129
|
return expandedData_1;
|
|
127
130
|
}
|
|
128
131
|
return null;
|
|
@@ -125,13 +125,16 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
125
125
|
if (d.v) {
|
|
126
126
|
console.log("set cell value", d.r, d.c, d.v);
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
expandedData_1[d.r][d.c] = d.v;
|
|
129
129
|
});
|
|
130
130
|
draftCtx.luckysheetfile = (0, _immer.default)(draftCtx.luckysheetfile, function (d) {
|
|
131
131
|
d[index].data = expandedData_1;
|
|
132
132
|
delete d[index].celldata;
|
|
133
133
|
return d;
|
|
134
134
|
});
|
|
135
|
+
console.log({
|
|
136
|
+
LUCKYSHEET: draftCtx.luckysheetfile
|
|
137
|
+
});
|
|
135
138
|
return expandedData_1;
|
|
136
139
|
}
|
|
137
140
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.80-patch-test-
|
|
3
|
+
"version": "1.1.80-patch-test-4",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.1.80-patch-test-
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.80-patch-test-4",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|