Explorar o código

处理表格换行分表及表格内容不展示问题

yangg hai 4 meses
pai
achega
9824204abe

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/index.html


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/css/chunk-4d7db996.63181220.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.637f2107.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/app.a63df6da.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-4d7db996.c0111a52.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/static/js/chunk-618ae9f3.3d4052d4.js


+ 3 - 2
src/components/CanvasEditor/index.vue

@@ -565,8 +565,8 @@
                 <i title="页面模式(分页、连页)"></i>
                 <div class="options">
                   <ul>
-                    <li data-page-mode="paging" class="active">分页</li>
-                    <li data-page-mode="continuity">连页</li>
+                    <li data-page-mode="paging">分页</li>
+                    <li data-page-mode="continuity" class="active">连页</li>
                   </ul>
                 </div>
               </div>
@@ -689,6 +689,7 @@ export default {
         //  defaultSize: 14,//Number(this.editorOptions.size),
         defaultBold: this.editorOptions.bold,
         defaultAlign: this.editorOptions.align,
+        pageMode: 'continuity',
       }, // IEditorOption,
       // 批注 TODO
       commentList: [],

+ 2 - 1
src/components/CanvasEditor/option.js

@@ -4,6 +4,7 @@ const IEditorOption = {
   defaultFont: 'Arial', // 在这里也添加默认字体配置
   defaultFont: undefined,
   defaultSize: undefined,
+  pageMode: '连页',
     /* mode: undefined,
      defaultType: undefined,
     minSize: undefined,
@@ -30,7 +31,7 @@ const IEditorOption = {
     marginIndicatorSize: undefined,
     marginIndicatorColor: undefined,
     margins: undefined,
-    pageMode: undefined,
+  
     tdPadding: undefined,
     defaultTrMinHeight: undefined,
     defaultColMinWidth: undefined,

+ 7 - 35
src/views/project/components/dataList.vue

@@ -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>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio