소스 검색

ppt生成pptx文件时文字也带行高

yujinwen 2 주 전
부모
커밋
8c03fd20ce
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/ppt_manage/newVersion/utils/untils.js

+ 3 - 0
src/views/ppt_manage/newVersion/utils/untils.js

@@ -198,6 +198,9 @@ export const toTextProps = (json) => {
               options.paraSpaceBefore = 0.1
               bulletFlag = false
             }
+            if(styleObj['line-height']){
+              options.lineSpacingMultiple=styleObj['line-height']
+            }
             slices.push({ text, options })
         } else if ('children' in item) _parse(item.children, styleObj)
     }