|
@@ -82,6 +82,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getBasePosition(titleDetail){
|
|
|
+ const {top=6.6,left=10,width=68,height=5} = titleDetail
|
|
|
+ const baseWidth = 900
|
|
|
+ const baseHeight = 630
|
|
|
+ return {
|
|
|
+ baseTop:baseHeight*top/100,
|
|
|
+ baseLeft:baseWidth*left/100,
|
|
|
+ baseWidth:baseWidth*width/100,
|
|
|
+ baseHeight:baseHeight*height/100,
|
|
|
+ }
|
|
|
+ },
|
|
|
//配置自定义标题内容
|
|
|
setPPTTitle(slide,page){
|
|
|
const {titleDetail,title} = page
|