@fileverse-dev/fortune-react 1.2.90-ydoc-8 → 1.2.90-ydoc-9
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.
|
@@ -390,6 +390,12 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
390
390
|
refs: refs
|
|
391
391
|
};
|
|
392
392
|
}, [context, handleRedo, handleUndo, mergedSettings, refs, setContextWithProduce]);
|
|
393
|
+
useEffect(function () {
|
|
394
|
+
var _a;
|
|
395
|
+
if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.flvSheetLengthChange) {
|
|
396
|
+
context.hooks.flvSheetLengthChange();
|
|
397
|
+
}
|
|
398
|
+
}, [context.luckysheetfile.length]);
|
|
393
399
|
useEffect(function () {
|
|
394
400
|
if (!_.isEmpty(context.luckysheetfile)) {
|
|
395
401
|
onChange === null || onChange === void 0 ? void 0 : onChange(context.luckysheetfile);
|
|
@@ -399,6 +399,12 @@ var Workbook = /*#__PURE__*/_react.default.forwardRef(function (_a, ref) {
|
|
|
399
399
|
refs: refs
|
|
400
400
|
};
|
|
401
401
|
}, [context, handleRedo, handleUndo, mergedSettings, refs, setContextWithProduce]);
|
|
402
|
+
(0, _react.useEffect)(function () {
|
|
403
|
+
var _a;
|
|
404
|
+
if ((_a = context === null || context === void 0 ? void 0 : context.hooks) === null || _a === void 0 ? void 0 : _a.flvSheetLengthChange) {
|
|
405
|
+
context.hooks.flvSheetLengthChange();
|
|
406
|
+
}
|
|
407
|
+
}, [context.luckysheetfile.length]);
|
|
402
408
|
(0, _react.useEffect)(function () {
|
|
403
409
|
if (!_lodash.default.isEmpty(context.luckysheetfile)) {
|
|
404
410
|
onChange === null || onChange === void 0 ? void 0 : onChange(context.luckysheetfile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.90-ydoc-
|
|
3
|
+
"version": "1.2.90-ydoc-9",
|
|
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.2.90-ydoc-
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.90-ydoc-9",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|