更新CHANGELOG,修复模板样式保持问题,重构样式复制机制,优化代码结构,更新README示例中的方法调用,确保API向下兼容,增加测试用例以验证修复效果。

This commit is contained in:
zero
2025-06-04 09:43:07 +08:00
parent 5ccd71e726
commit b037e832c8
21 changed files with 2003 additions and 1810 deletions

View File

@@ -81,7 +81,7 @@ doc.Save("example.docx")`
mixedPara.AddFormattedText("、", nil)
mixedPara.AddFormattedText("彩色文本", &document.TextFormat{FontColor: "FF0000"})
mixedPara.AddFormattedText("以及", nil)
mixedPara.AddFormattedText("不同字体", &document.TextFormat{FontName: "Times New Roman", FontSize: 14})
mixedPara.AddFormattedText("不同字体", &document.TextFormat{FontFamily: "Times New Roman", FontSize: 14})
mixedPara.AddFormattedText("。", nil)
// 8. 创建列表