From 25f4b1afdca85598c6605ef01378e5bc72d6df1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 29 Apr 2024 17:43:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=AD=97=E6=AF=8D=E5=88=97=E9=A1=B9?= =?UTF-8?q?=E3=80=81=E6=95=B0=E5=AD=97=E5=88=97=E9=A1=B9=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/page1/components/FirstLevelListing.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/page1/components/FirstLevelListing.vue b/src/pages/page1/components/FirstLevelListing.vue index e9bc6f2..232e43a 100644 --- a/src/pages/page1/components/FirstLevelListing.vue +++ b/src/pages/page1/components/FirstLevelListing.vue @@ -136,7 +136,11 @@ export default { numbering.SetTemplateType('a)') numbering.SetCustomType('lowerLetter', '%1) ', 'left') numbering.SetSuff('none') + const oParagraphTemp = Api.CreateParagraph() + oDocument.InsertContent([oParagraphTemp]) const oParagraph = Api.CreateParagraph() + oParagraph.AddText(oParagraphTemp.GetText()) + oParagraphTemp.Delete() // oParagraph.SetSpacingLine(400, "auto"); let oTextPr = numbering.GetTextPr() oTextPr.SetFontFamily('宋体') @@ -191,7 +195,11 @@ export default { oParaPr.SetJc('left') oParaPr.SetSpacingLine(240, 'auto') oParaPr.SetIndFirstLine(-420) + const oParagraphTemp = Api.CreateParagraph() + oDocument.InsertContent([oParagraphTemp]) const oParagraph = Api.CreateParagraph() + oParagraph.AddText(oParagraphTemp.GetText()) + oParagraphTemp.Delete() oParagraph.SetNumbering(numbering) oParagraph.SetContextualSpacing(true) oParagraph.SetFontFamily('宋体')