@fileverse-dev/fortune-react 1.1.93 → 1.1.94
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.
|
@@ -58,13 +58,16 @@ var DataVerification = function DataVerification() {
|
|
|
58
58
|
});
|
|
59
59
|
}, [optionItems]);
|
|
60
60
|
useEffect(function () {
|
|
61
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
61
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
62
62
|
var selectRow = (_c = (_b = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.row) === null || _c === void 0 ? void 0 : _c[0];
|
|
63
63
|
var selectCol = (_f = (_e = (_d = context.luckysheet_select_save) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.column) === null || _f === void 0 ? void 0 : _f[0];
|
|
64
64
|
var sheetIndex = getSheetIndex();
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
|
|
65
|
+
console.log('sheetIndex', sheetIndex);
|
|
66
|
+
var dataVerificationInfo = (_h = (_g = context.luckysheetfile[sheetIndex]) === null || _g === void 0 ? void 0 : _g.dataVerification) !== null && _h !== void 0 ? _h : {};
|
|
67
|
+
console.log('dataVerificationInfo', dataVerificationInfo);
|
|
68
|
+
if (!dataVerificationInfo) return;
|
|
69
|
+
var value = (_j = dataVerificationInfo === null || dataVerificationInfo === void 0 ? void 0 : dataVerificationInfo["".concat(selectRow, "_").concat(selectCol)]) === null || _j === void 0 ? void 0 : _j.value1;
|
|
70
|
+
var color = (_k = dataVerificationInfo === null || dataVerificationInfo === void 0 ? void 0 : dataVerificationInfo["".concat(selectRow, "_").concat(selectCol)]) === null || _k === void 0 ? void 0 : _k.color;
|
|
68
71
|
if (value && color) {
|
|
69
72
|
var colorValues = color === null || color === void 0 ? void 0 : color.split(",").map(function (v) {
|
|
70
73
|
return v.trim();
|
|
@@ -67,13 +67,16 @@ var DataVerification = function DataVerification() {
|
|
|
67
67
|
});
|
|
68
68
|
}, [optionItems]);
|
|
69
69
|
(0, _react.useEffect)(function () {
|
|
70
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
70
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
71
71
|
var selectRow = (_c = (_b = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.row) === null || _c === void 0 ? void 0 : _c[0];
|
|
72
72
|
var selectCol = (_f = (_e = (_d = context.luckysheet_select_save) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.column) === null || _f === void 0 ? void 0 : _f[0];
|
|
73
73
|
var sheetIndex = getSheetIndex();
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
|
|
74
|
+
console.log('sheetIndex', sheetIndex);
|
|
75
|
+
var dataVerificationInfo = (_h = (_g = context.luckysheetfile[sheetIndex]) === null || _g === void 0 ? void 0 : _g.dataVerification) !== null && _h !== void 0 ? _h : {};
|
|
76
|
+
console.log('dataVerificationInfo', dataVerificationInfo);
|
|
77
|
+
if (!dataVerificationInfo) return;
|
|
78
|
+
var value = (_j = dataVerificationInfo === null || dataVerificationInfo === void 0 ? void 0 : dataVerificationInfo["".concat(selectRow, "_").concat(selectCol)]) === null || _j === void 0 ? void 0 : _j.value1;
|
|
79
|
+
var color = (_k = dataVerificationInfo === null || dataVerificationInfo === void 0 ? void 0 : dataVerificationInfo["".concat(selectRow, "_").concat(selectCol)]) === null || _k === void 0 ? void 0 : _k.color;
|
|
77
80
|
if (value && color) {
|
|
78
81
|
var colorValues = color === null || color === void 0 ? void 0 : color.split(",").map(function (v) {
|
|
79
82
|
return v.trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.94",
|
|
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.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.1.94",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|