@leankylin-sheet/core 7.0.46 → 7.0.48
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/dist/index.esm.js +5 -1
- package/dist/index.js +5 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -46265,6 +46265,10 @@ function cellAttrToDomStyle(cell, cellBorderInfo) {
|
|
|
46265
46265
|
}
|
|
46266
46266
|
return result;
|
|
46267
46267
|
}
|
|
46268
|
+
function escapeHtmlAttr(value) {
|
|
46269
|
+
var str = value == null ? "" : String(value);
|
|
46270
|
+
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
46271
|
+
}
|
|
46268
46272
|
function copy(ctx) {
|
|
46269
46273
|
var _ctx$luckysheet_selec2;
|
|
46270
46274
|
var copyRange = (_ctx$luckysheet_selec2 = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec2 === void 0 ? void 0 : _ctx$luckysheet_selec2[0];
|
|
@@ -46294,7 +46298,7 @@ function copy(ctx) {
|
|
|
46294
46298
|
var styleStr = (_Object$keys = Object.keys(style)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
|
|
46295
46299
|
return "".concat(item, ":").concat(style[item], ";");
|
|
46296
46300
|
}).join("");
|
|
46297
|
-
cpString += "<td _v
|
|
46301
|
+
cpString += "<td _v=\"".concat(escapeHtmlAttr(allV), "\" x:num=\"").concat(escapeHtmlAttr(realValue), "\" f=\"").concat(escapeHtmlAttr(f), "\" style='").concat(styleStr, "' rowspan=").concat(rowspan, " colspan=").concat(colspan, ">").concat(value, "</td>");
|
|
46298
46302
|
}
|
|
46299
46303
|
};
|
|
46300
46304
|
for (var c = columns[0]; c <= columns[1]; c += 1) {
|
package/dist/index.js
CHANGED
|
@@ -46275,6 +46275,10 @@ function cellAttrToDomStyle(cell, cellBorderInfo) {
|
|
|
46275
46275
|
}
|
|
46276
46276
|
return result;
|
|
46277
46277
|
}
|
|
46278
|
+
function escapeHtmlAttr(value) {
|
|
46279
|
+
var str = value == null ? "" : String(value);
|
|
46280
|
+
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
46281
|
+
}
|
|
46278
46282
|
function copy(ctx) {
|
|
46279
46283
|
var _ctx$luckysheet_selec2;
|
|
46280
46284
|
var copyRange = (_ctx$luckysheet_selec2 = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec2 === void 0 ? void 0 : _ctx$luckysheet_selec2[0];
|
|
@@ -46304,7 +46308,7 @@ function copy(ctx) {
|
|
|
46304
46308
|
var styleStr = (_Object$keys = Object.keys(style)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
|
|
46305
46309
|
return "".concat(item, ":").concat(style[item], ";");
|
|
46306
46310
|
}).join("");
|
|
46307
|
-
cpString += "<td _v
|
|
46311
|
+
cpString += "<td _v=\"".concat(escapeHtmlAttr(allV), "\" x:num=\"").concat(escapeHtmlAttr(realValue), "\" f=\"").concat(escapeHtmlAttr(f), "\" style='").concat(styleStr, "' rowspan=").concat(rowspan, " colspan=").concat(colspan, ">").concat(value, "</td>");
|
|
46308
46312
|
}
|
|
46309
46313
|
};
|
|
46310
46314
|
for (var c = columns[0]; c <= columns[1]; c += 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.48",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "7.0.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "7.0.48",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|