@fileverse-dev/fortune-core 1.1.66 → 1.1.67-ux-fixes-1
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/hyperlink.js
CHANGED
|
@@ -62,6 +62,7 @@ export function saveHyperlink(ctx, r, c, linkText, linkType, linkAddress) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
export function removeHyperlink(ctx, r, c) {
|
|
65
|
+
var _a, _b, _c;
|
|
65
66
|
var allowEdit = isAllowEdit(ctx);
|
|
66
67
|
if (!allowEdit) return;
|
|
67
68
|
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
@@ -71,10 +72,9 @@ export function removeHyperlink(ctx, r, c) {
|
|
|
71
72
|
_.set(ctx.luckysheetfile[sheetIndex], "hyperlink", hyperlink);
|
|
72
73
|
var cell = flowdata[r][c];
|
|
73
74
|
if (cell != null) {
|
|
74
|
-
flowdata[r][c]
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
75
|
+
(_a = flowdata[r][c]) === null || _a === void 0 ? true : delete _a.hl;
|
|
76
|
+
(_b = flowdata[r][c]) === null || _b === void 0 ? true : delete _b.un;
|
|
77
|
+
(_c = flowdata[r][c]) === null || _c === void 0 ? true : delete _c.fc;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
ctx.linkCard = undefined;
|
package/lib/modules/hyperlink.js
CHANGED
|
@@ -78,6 +78,7 @@ function saveHyperlink(ctx, r, c, linkText, linkType, linkAddress) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function removeHyperlink(ctx, r, c) {
|
|
81
|
+
var _a, _b, _c;
|
|
81
82
|
var allowEdit = (0, _utils.isAllowEdit)(ctx);
|
|
82
83
|
if (!allowEdit) return;
|
|
83
84
|
var sheetIndex = (0, _utils.getSheetIndex)(ctx, ctx.currentSheetId);
|
|
@@ -87,10 +88,9 @@ function removeHyperlink(ctx, r, c) {
|
|
|
87
88
|
_lodash.default.set(ctx.luckysheetfile[sheetIndex], "hyperlink", hyperlink);
|
|
88
89
|
var cell = flowdata[r][c];
|
|
89
90
|
if (cell != null) {
|
|
90
|
-
flowdata[r][c]
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
};
|
|
91
|
+
(_a = flowdata[r][c]) === null || _a === void 0 ? true : delete _a.hl;
|
|
92
|
+
(_b = flowdata[r][c]) === null || _b === void 0 ? true : delete _b.un;
|
|
93
|
+
(_c = flowdata[r][c]) === null || _c === void 0 ? true : delete _c.fc;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
ctx.linkCard = undefined;
|