vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
/**
* 自动生成类型定义及解析所需数据
*/
import * as fs from 'fs';
import {Type, simplifyUnionOne, generateCodes, parse} from './xsd2Types';
async function main() {
const types: Type[] = [];
await parse(
'./OfficeOpenXML-XMLSchema-Strict/shared-commonSimpleTypes.xsd',
types
);
// word 的类型和 excel 的类型有冲突,所以只能先支持 excel
// 另外就是 CT_FontScheme 有冲突
await parse('./OfficeOpenXML-XMLSchema-Strict/dml-main.xsd', types);
await parse(
'./OfficeOpenXML-XMLSchema-Strict/dml-spreadsheetDrawing.xsd',
types
);
await parse('./OfficeOpenXML-XMLSchema-Strict/sml.xsd', types);
simplifyUnionOne(types);
fs.writeFileSync('../src/openxml/ExcelTypes.ts', generateCodes(types));
}
try {
main();
} catch (error) {
console.error(error);
}