Răsfoiți Sursa

每个版式,调整图表大小

cxmo 1 an în urmă
părinte
comite
212776764d

+ 3 - 3
src/views/ppt_manage/newVersion/components/formatEl/ChartEl.vue

@@ -2,10 +2,10 @@
 <div style="width:100%;height:100%; position:relative;" class="flex-center el-wrap"
 <div style="width:100%;height:100%; position:relative;" class="flex-center el-wrap"
   :draggable="isBtnShow"
   :draggable="isBtnShow"
 >
 >
+    <!-- :style="(chartSourcesFrom&&chartSourcesFrom.isShow || chartInstructions&&chartInstructions.isShow) ? 'margin-bottom:20px' : ''" -->
   <div
   <div
     class="chart-wrap"
     class="chart-wrap"
     :id="`${$parent.isPreview?'preview_':''}chart_${index}_${position}`"
     :id="`${$parent.isPreview?'preview_':''}chart_${index}_${position}`"
-    :style="(chartSourcesFrom&&chartSourcesFrom.isShow || chartInstructions&&chartInstructions.isShow) ? 'margin-bottom:20px' : ''"
   >
   >
     <img :id="`${$parent.isPreview?'preview_':''}img_${index}_${position}`" />
     <img :id="`${$parent.isPreview?'preview_':''}img_${index}_${position}`" />
   </div>
   </div>
@@ -121,9 +121,9 @@ export default {
 <style scoped lang="scss">
 <style scoped lang="scss">
 .tool-list{
 .tool-list{
   position:absolute;
   position:absolute;
-  width:90%;
+  width:95%;
   top:2%;
   top:2%;
-  left:5%;
+  left:2%;
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
   .dragBtn,.copyBtn,.addBtn,.closeBtn{
   .dragBtn,.copyBtn,.addBtn,.closeBtn{

+ 4 - 4
src/views/ppt_manage/newVersion/components/formatPage/FormatEle.vue

@@ -75,7 +75,7 @@
     justify-content: space-around !important;
     justify-content: space-around !important;
     .line-item{
     .line-item{
         .el-wrap .chart-wrap{
         .el-wrap .chart-wrap{
-            width:90%;
+            width:100%;
             height:90%;
             height:90%;
         }
         }
         .editor-wrap{
         .editor-wrap{
@@ -88,12 +88,12 @@
 <style scoped lang="scss">
 <style scoped lang="scss">
     .total-wrap {
     .total-wrap {
         .line{
         .line{
-            height:40%;
+            height:41%;
             .line-item{
             .line-item{
-                width:45%;
+                width:50%;
                 height:100%;
                 height:100%;
                 .el-wrap .chart-wrap{
                 .el-wrap .chart-wrap{
-                    width:90%;
+                    width:100%;
                     height:90%;
                     height:90%;
                 }
                 }
             }
             }

+ 3 - 3
src/views/ppt_manage/newVersion/components/formatPage/FormatTen.vue

@@ -86,7 +86,7 @@
 .line{
 .line{
     .line-item{
     .line-item{
         .el-wrap .chart-wrap{
         .el-wrap .chart-wrap{
-            width:90%;
+            width:100%;
             height:90%;
             height:90%;
         }
         }
         .editor-wrap{
         .editor-wrap{
@@ -99,12 +99,12 @@
 <style scoped lang="scss">
 <style scoped lang="scss">
     .total-wrap {
     .total-wrap {
         .line{
         .line{
-            height:40%;
+            height:41%;
             .line-item{
             .line-item{
                 width:33%;
                 width:33%;
                 height:100%;
                 height:100%;
                 .el-wrap .chart-wrap{
                 .el-wrap .chart-wrap{
-                    width:90%;
+                    width:100%;
                     height:90%;
                     height:90%;
                 }
                 }
             }
             }

+ 2 - 2
src/views/ppt_manage/newVersion/components/formatPage/FormatTwelve.vue

@@ -80,7 +80,7 @@
 .line{
 .line{
     .line-item{
     .line-item{
         .el-wrap .chart-wrap{
         .el-wrap .chart-wrap{
-            width:90%;
+            width:100%;
             height:90%;
             height:90%;
         }
         }
         .editor-wrap{
         .editor-wrap{
@@ -98,7 +98,7 @@
                 width:33%;
                 width:33%;
                 height:100%;
                 height:100%;
                 .el-wrap .chart-wrap{
                 .el-wrap .chart-wrap{
-                    width:90%;
+                    width:100%;
                     height:90%;
                     height:90%;
                 }
                 }
             }
             }

+ 18 - 18
src/views/ppt_manage/newVersion/css/format.scss

@@ -145,7 +145,8 @@ $marginTop:14%;
       height: calc(100% - #{$marginTop});
       height: calc(100% - #{$marginTop});
       display: flex;
       display: flex;
     }
     }
-    //版式1,6
+    //24.1.25 产品调整各个版式的位置,将chart-wrap宽度置为100%
+    //版式1,6 不用改,还是用这个
     .full {
     .full {
         width: 100%;
         width: 100%;
         height: 100%;
         height: 100%;
@@ -178,10 +179,9 @@ $marginTop:14%;
         position: absolute;
         position: absolute;
         left: 0;
         left: 0;
         top:0;
         top:0;
-        .chart-wrap {
-            width: 90%;
-            height: 80%;
-            /* background-color: rgba(0, 128, 0, 0.389); */
+        .chart-wrap{
+            width:100%;
+            height:80%;
         }
         }
         .editor-wrap {
         .editor-wrap {
           width: 90%;
           width: 90%;
@@ -206,7 +206,7 @@ $marginTop:14%;
             height: 80%;
             height: 80%;
         }
         }
         .chart-wrap {
         .chart-wrap {
-          width: 90%;
+          width: 100%;
           height: 80%;
           height: 80%;
       }
       }
     }
     }
@@ -224,7 +224,7 @@ $marginTop:14%;
             position: relative;
             position: relative;
             &.top {
             &.top {
                 .chart-wrap {
                 .chart-wrap {
-                    width: 90%;
+                    width: 100%;
                     height: 84%;
                     height: 84%;
                 }
                 }
                 .closeBtn{
                 .closeBtn{
@@ -246,7 +246,7 @@ $marginTop:14%;
                   }
                   }
                 }
                 }
                 .chart-wrap {
                 .chart-wrap {
-                    width: 90%;
+                    width: 100%;
                     height: 84%;
                     height: 84%;
                     /* background-color: coral; */
                     /* background-color: coral; */
                 }
                 }
@@ -257,7 +257,7 @@ $marginTop:14%;
             }
             }
         }
         }
         .chart-wrap {
         .chart-wrap {
-            width: 90%;
+            width: 100%;
             height: 80%;
             height: 80%;
         }
         }
         .editor-wrap {
         .editor-wrap {
@@ -282,7 +282,7 @@ $marginTop:14%;
             position:relative;
             position:relative;
             &.top {
             &.top {
                 .chart-wrap {
                 .chart-wrap {
-                  width: 90%;
+                  width: 100%;
                   height: 84%;
                   height: 84%;
                 }
                 }
                 .closeBtn{
                 .closeBtn{
@@ -304,7 +304,7 @@ $marginTop:14%;
                   }
                   }
                 }
                 }
                 .chart-wrap {
                 .chart-wrap {
-                    width: 90%;
+                    width: 100%;
                     height: 84%;
                     height: 84%;
                      /* background-color: royalblue; */
                      /* background-color: royalblue; */
                 }
                 }
@@ -319,7 +319,7 @@ $marginTop:14%;
             height: 84%;
             height: 84%;
         }
         }
         .chart-wrap {
         .chart-wrap {
-            width: 90%;
+            width: 100%;
             height: 80%;
             height: 80%;
         }
         }
         .closeBtn{
         .closeBtn{
@@ -363,7 +363,7 @@ $marginTop:14%;
         }
         }
       }
       }
       .chart-wrap {
       .chart-wrap {
-        width: 90%;
+        width: 100%;
         height: 90%;
         height: 90%;
        /*  margin-top: 10px; */
        /*  margin-top: 10px; */
       }
       }
@@ -398,7 +398,7 @@ $marginTop:14%;
       &.top {
       &.top {
         top:0;
         top:0;
         .chart-wrap {
         .chart-wrap {
-            width: 90%;
+            width: 100%;
             height: 84%;
             height: 84%;
         }
         }
         .closeBtn{
         .closeBtn{
@@ -416,7 +416,7 @@ $marginTop:14%;
           }
           }
         }
         }
         .chart-wrap {
         .chart-wrap {
-            width: 90%;
+            width: 100%;
             height: 84%;
             height: 84%;
         }
         }
         .closeBtn{
         .closeBtn{
@@ -437,7 +437,7 @@ $marginTop:14%;
       &.top {
       &.top {
         top:0;
         top:0;
         .chart-wrap {
         .chart-wrap {
-          width: 90%;
+          width: 100%;
           height: 84%;
           height: 84%;
         }
         }
         .closeBtn{
         .closeBtn{
@@ -455,7 +455,7 @@ $marginTop:14%;
           }
           }
         }
         }
         .chart-wrap {
         .chart-wrap {
-            width: 90%;
+            width: 100%;
             height: 84%;
             height: 84%;
         }
         }
         .closeBtn{
         .closeBtn{
@@ -470,7 +470,7 @@ $marginTop:14%;
     }
     }
     .half{
     .half{
       .chart-wrap {
       .chart-wrap {
-        width: 90%;
+        width: 100%;
         height: 90%;
         height: 90%;
        /*  margin-top: 10px; */
        /*  margin-top: 10px; */
       }
       }