Sfoglia il codice sorgente

调整标题的默认位置

cxmo 5 mesi fa
parent
commit
65f4505608

+ 2 - 2
src/views/ppt_manage/newVersion/components/catalog/pptContent.vue

@@ -24,11 +24,11 @@
               <div class="custom-title-wrap editor-content" 
                     :style="item.titleDetail?{
                         left:(item.titleDetail.baseLeft||90)*contentScale+'px',
-                        top:(item.titleDetail.baseTop||43.39)*contentScale+'px',
+                        top:(item.titleDetail.baseTop||40.9)*contentScale+'px',
                         width:(item.titleDetail.baseWidth||612)+'px',
                         height:(item.titleDetail.baseHeight||30.9)+'px',
                     }:{
-                        left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                        left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                     }">
                     <div class="title" v-html="item.title"
                     :style="item.titleDetail?{

+ 2 - 2
src/views/ppt_manage/newVersion/components/catalog/pptContentEn.vue

@@ -23,11 +23,11 @@
               <div class="custom-title-wrap editor-content" 
                     :style="item.titleDetail?{
                         left:(item.titleDetail.baseLeft||90)*contentScale+'px',
-                        top:(item.titleDetail.baseTop||43.39)*contentScale+'px',
+                        top:(item.titleDetail.baseTop||40.9)*contentScale+'px',
                         width:(item.titleDetail.baseWidth||612)+'px',
                         height:(item.titleDetail.baseHeight||30.9)+'px',
                     }:{
-                        left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                        left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                     }">
                     <div class="title" v-html="item.title"
                     :style="item.titleDetail?{

+ 1 - 1
src/views/ppt_manage/newVersion/pptEditor.vue

@@ -72,7 +72,7 @@
                                 width:item.titleDetail.width+'%',
                                 height:item.titleDetail.height+'%',
                             }:{
-                                left:'10%',top:'7%',width:'68%',height:'5%',
+                                left:'10%',top:'6.6%',width:'68%',height:'5%',
                             }">
                             <!-- <div class="title" v-html="item.title"></div> -->
                             <!-- <el-input type="textarea" placeholder="单击输入标题" v-model="item.title" 

+ 1 - 1
src/views/ppt_manage/newVersion/pptEnEditor.vue

@@ -70,7 +70,7 @@
                                 width:item.titleDetail.width+'%',
                                 height:item.titleDetail.height+'%',
                             }:{
-                                left:'10%',top:'7%',width:'68%',height:'5%'
+                                left:'10%',top:'6.6%',width:'68%',height:'5%'
                             }">
                             <!-- <div class="title" v-html="item.title"></div> -->
                             <!-- <div v-else class="normal-title">{{item.title}}</div> -->

+ 2 - 2
src/views/ppt_manage/newVersion/pptEnPresent.vue

@@ -62,11 +62,11 @@
                  <div class="custom-title-wrap editor-content" 
                     :style="currentItem.titleDetail?{
                         left:(currentItem.titleDetail.baseLeft||90)*contentScale+'px',
-                        top:(currentItem.titleDetail.baseTop||43.39)*contentScale+'px',
+                        top:(currentItem.titleDetail.baseTop||40.9)*contentScale+'px',
                         width:(currentItem.titleDetail.baseWidth||612)+'px',
                         height:(currentItem.titleDetail.baseHeight||30.9)+'px',
                     }:{
-                        left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                        left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                     }">
                         <div class="title" v-html="currentItem.title"
                         :style="currentItem.titleDetail?{

+ 2 - 2
src/views/ppt_manage/newVersion/pptEnPublish.vue

@@ -42,11 +42,11 @@
             <div class="custom-title-wrap content" 
                 :style="item.titleDetail?{
                     left:(item.titleDetail.baseLeft||90)*contentScale+'px',
-                    top:(item.titleDetail.baseTop||43.39)*contentScale+'px',
+                    top:(item.titleDetail.baseTop||40.9)*contentScale+'px',
                     width:(item.titleDetail.baseWidth||612)+'px',
                     height:(item.titleDetail.baseHeight||30.9)+'px',
                 }:{
-                    left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                    left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                 }">
                 <div class="title" v-html="item.title"
                 :style="item.titleDetail?{

+ 4 - 4
src/views/ppt_manage/newVersion/pptPresent.vue

@@ -62,11 +62,11 @@
                 <div class="custom-title-wrap editor-content" 
                     :style="currentItem.titleDetail?{
                         left:(currentItem.titleDetail.baseLeft||90)*contentScale+'px',
-                        top:(currentItem.titleDetail.baseTop||43.39)*contentScale+'px',
+                        top:(currentItem.titleDetail.baseTop||40.9)*contentScale+'px',
                         width:(currentItem.titleDetail.baseWidth||612)+'px',
                         height:(currentItem.titleDetail.baseHeight||30.9)+'px',
                     }:{
-                        left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                        left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                     }">
                         <div class="title" v-html="currentItem.title"
                         :style="currentItem.titleDetail?{
@@ -138,11 +138,11 @@
                 <div class="custom-title-wrap editor-content" 
                     :style="currentItem.titleDetail?{
                         left:(currentItem.titleDetail.baseLeft||90)*contentScale+'px',
-                        top:(currentItem.titleDetail.baseTop||43.39)*contentScale+'px',
+                        top:(currentItem.titleDetail.baseTop||40.9)*contentScale+'px',
                         width:(currentItem.titleDetail.baseWidth||612)+'px',
                         height:(currentItem.titleDetail.baseHeight||30.9)+'px',
                     }:{
-                        left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                        left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                     }">
                         <div class="title" v-html="currentItem.title"
                         :style="currentItem.titleDetail?{

+ 2 - 2
src/views/ppt_manage/newVersion/pptPublish.vue

@@ -48,11 +48,11 @@
             <div class="custom-title-wrap content" 
                 :style="item.titleDetail?{
                     left:(item.titleDetail.baseLeft||90)*contentScale+'px',
-                    top:(item.titleDetail.baseTop||43.39)*contentScale+'px',
+                    top:(item.titleDetail.baseTop||40.9)*contentScale+'px',
                     width:(item.titleDetail.baseWidth||612)+'px',
                     height:(item.titleDetail.baseHeight||30.9)+'px',
                 }:{
-                    left:90*contentScale+'px',top:43.39*contentScale+'px',width:'612px',height:'30.9px'
+                    left:90*contentScale+'px',top:40.9*contentScale+'px',width:'612px',height:'30.9px'
                 }">
                 <div class="title" v-html="item.title"
                 :style="item.titleDetail?{

+ 1 - 1
src/views/ppt_manage/newVersion/utils/tinymceSetting.js

@@ -141,6 +141,6 @@ export const fontFamily = [
     }
 ]
 export const titleDefault = {
-    top:7,left:10,width:68,height:5,
+    top:6.6,left:10,width:68,height:5,
     color:'#333',fontFamily:'helvetica',fontSize:22,
 }