@agile-team/mach-table-xlsx 0.31.0 → 0.31.2
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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @agile-team/mach-table-xlsx
|
|
6
6
|
|
|
7
|
-
MachTable 0.31.
|
|
7
|
+
MachTable 0.31.2 的可选 XLSX 导入导出扩展。工作簿引擎由宿主动态注入,因此普通表格页面不会下载 Excel 代码。
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
pnpm add @agile-team/mach-table-xlsx xlsx
|
|
@@ -27,7 +27,7 @@ await excel.import(api, await file.arrayBuffer(), {
|
|
|
27
27
|
});
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
0.31.
|
|
30
|
+
0.31.2 与 Core/Vue/React 固定版本组同步发布;Excel 桥接 API 保持不变,无需更改 XLSX 集成。
|
|
31
31
|
|
|
32
32
|
扩展复用 Core 的选择范围、表头、公式注入防护和安全导入规则。`xlsx` 只是示例引擎,不是本包的捆绑依赖;可注入经过项目批准的兼容引擎。
|
|
33
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agile-team/mach-table-xlsx",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.2",
|
|
4
4
|
"description": "Optional, engine-agnostic XLSX import and export extension for MachTable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-grid",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@agile-team/mach-table": "0.31.
|
|
51
|
+
"@agile-team/mach-table": "0.31.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"test": "vitest run",
|
|
57
57
|
"test:coverage": "vitest run --coverage"
|
|
58
58
|
},
|
|
59
|
-
"readme": "<p align=\"center\">\n <img src=\"https://raw.githubusercontent.com/ChenyCHENYU/MachTable/main/assets/mach-table-logo.svg\" alt=\"MachTable\" width=\"760\" />\n</p>\n\n# @agile-team/mach-table-xlsx\n\nMachTable 0.31.
|
|
59
|
+
"readme": "<p align=\"center\">\n <img src=\"https://raw.githubusercontent.com/ChenyCHENYU/MachTable/main/assets/mach-table-logo.svg\" alt=\"MachTable\" width=\"760\" />\n</p>\n\n# @agile-team/mach-table-xlsx\n\nMachTable 0.31.2 的可选 XLSX 导入导出扩展。工作簿引擎由宿主动态注入,因此普通表格页面不会下载 Excel 代码。\n\n```bash\npnpm add @agile-team/mach-table-xlsx xlsx\n```\n\n```ts\nimport { createXlsxExtension } from \"@agile-team/mach-table-xlsx\";\n\nconst excel = createXlsxExtension(() => import(\"xlsx\"));\n\nawait excel.export(api, {\n fileName: \"orders.xlsx\",\n sheetName: \"Orders\"\n});\n\nawait excel.import(api, await file.arrayBuffer(), {\n sheet: 0,\n mode: \"replace\",\n coerceNumbers: true\n});\n```\n\n0.31.2 与 Core/Vue/React 固定版本组同步发布;Excel 桥接 API 保持不变,无需更改 XLSX 集成。\n\n扩展复用 Core 的选择范围、表头、公式注入防护和安全导入规则。`xlsx` 只是示例引擎,不是本包的捆绑依赖;可注入经过项目批准的兼容引擎。\n\n文档:[XLSX 指南](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/recipes/xlsx.md) · [企业接入](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/enterprise-integration.md)\n\nSource-available © ChenyCHENYU (Agile Team). 任何使用均须事先取得书面授权。详见 [LICENSE](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSE) 与[授权流程](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSING.md)。\n"
|
|
60
60
|
}
|