@fileverse-dev/fortune-react 1.1.80-patch-test-1 → 1.1.80-patch-test-3
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 } from "@fileverse-dev/fortune-core";
|
|
18
|
+
import { defaultContext, defaultSettings, initSheetIndex, handleGlobalKeyDown, getSheetIndex, handlePaste, filterPatch, patchToOp, inverseRowColOptions, ensureSheetIndex, insertRowCol, deleteRowCol, groupValuesRefresh, insertDuneChart, getFlowdata, api, handlePasteByClick, setCellValue } 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,7 +116,7 @@ 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
|
+
setCellValue(draftCtx, d.r, d.c, expandedData_1, d.v);
|
|
120
120
|
});
|
|
121
121
|
draftCtx.luckysheetfile = produce(draftCtx.luckysheetfile, function (d) {
|
|
122
122
|
d[index].data = expandedData_1;
|
|
@@ -125,7 +125,7 @@ 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
|
+
(0, _fortuneCore.setCellValue)(draftCtx, d.r, d.c, expandedData_1, d.v);
|
|
129
129
|
});
|
|
130
130
|
draftCtx.luckysheetfile = (0, _immer.default)(draftCtx.luckysheetfile, function (d) {
|
|
131
131
|
d[index].data = expandedData_1;
|
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-3",
|
|
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-3",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|