|
@@ -587,38 +587,7 @@ export default {
|
|
|
templateSection.innerHTML = this.preprocessContent(item.content)
|
|
|
contentContainer.appendChild(templateSection)
|
|
|
})
|
|
|
- /* <w:SpaceForUL/>
|
|
|
- <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
|
|
|
- body {
|
|
|
- font-family: "Times New Roman", SimSun;
|
|
|
- line-height: 1.0;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- p {
|
|
|
- margin-top: 0.5em;
|
|
|
- margin-bottom: 0.5em;
|
|
|
- line-height: 1.0 !important;
|
|
|
- mso-line-height-rule: exactly;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- table p {
|
|
|
- margin: 0;
|
|
|
- line-height: inherit;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- ul, ol {
|
|
|
- margin-top: 0.5em;
|
|
|
- margin-bottom: 0.5em;
|
|
|
- line-height: 1.0;
|
|
|
- }
|
|
|
-
|
|
|
- li {
|
|
|
- line-height: 1.0;
|
|
|
- margin: 0;
|
|
|
- }*/
|
|
|
+
|
|
|
let contentData = `
|
|
|
<!DOCTYPE html>
|
|
|
<html xmlns:v="urn:schemas-microsoft-com:vml"
|
|
@@ -631,13 +600,11 @@ export default {
|
|
|
<w:View>Print</w:View>
|
|
|
<w:Zoom>100</w:Zoom>
|
|
|
<w:DoNotOptimizeForBrowser/>
|
|
|
-
|
|
|
</w:WordDocument>
|
|
|
</xml>
|
|
|
<style>
|
|
|
/* 基础样式 */
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
/* 保持原有表格样式 */
|
|
|
table {
|
|
|
width: 100%;
|
|
@@ -679,6 +646,11 @@ export default {
|
|
|
mso-tstyle-colband-size: 0;
|
|
|
mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;
|
|
|
}
|
|
|
+
|
|
|
+ /* 确保空格正确显示 */
|
|
|
+ .preserve-whitespace {
|
|
|
+ white-space: pre-wrap;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|