浏览代码

图表样式

hbchen 10 月之前
父节点
当前提交
da2140441c
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 6 3
      src/views/ppt/components/SheetWrap.vue
  2. 1 1
      src/views/ppt/hooks/usePPTPublish.js

+ 6 - 3
src/views/ppt/components/SheetWrap.vue

@@ -101,9 +101,12 @@ onMounted(()=>{
 
 
     .chart-source{
     .chart-source{
         width: 100%;
         width: 100%;
-        text-overflow: ellipsis;
-        white-space: nowrap;
-        overflow: hidden;
+        span{
+            display: block;
+            text-overflow: ellipsis;
+            white-space: nowrap;
+            overflow: hidden;
+        }
     }
     }
 }
 }
 </style>
 </style>

+ 1 - 1
src/views/ppt/hooks/usePPTPublish.js

@@ -798,7 +798,7 @@ function transBottomInfo(slide,{x,y,width,height},data){
                 ? sourceObj.color.substring(1).length<6 
                 ? sourceObj.color.substring(1).length<6 
                 ? '000000':sourceObj.color.substring(1)
                 ? '000000':sourceObj.color.substring(1)
                 : '666666'
                 : '666666'
-    slide.addText(`${this.$t('ETable.Common.source')}:${sourceObj.text}`,{
+    slide.addText(`来源:${sourceObj.text}`,{
       x:x,
       x:x,
       y: yPercent,
       y: yPercent,
       w: width,
       w: width,