feat: 建立 DOCX 主题映射引擎

This commit is contained in:
SkyJourney
2026-07-30 20:28:47 +08:00
parent e7c688df6e
commit 6fed666f44
15 changed files with 851 additions and 25 deletions
+22
View File
@@ -209,4 +209,26 @@ describe("DOCX 主题样式协议", () => {
})
).toThrow();
});
it("接受自动映射模式和兼容预设", () => {
expect(
docxThemeStyleSchema.parse({
mode: "auto-with-overrides",
basePreset: "technical",
overrides: {
table: {
headerBackgroundColor: "#f6f8fa"
}
}
})
).toMatchObject({
mode: "auto-with-overrides",
basePreset: "technical",
overrides: {
table: {
headerBackgroundColor: "#f6f8fa"
}
}
});
});
});