|
|
@@ -243,25 +243,27 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<!-- 放在底层,用截图封面图片-->
|
|
|
- <div
|
|
|
- ref="canvas"
|
|
|
- style="position: absolute;top:0px;left: 0px;z-index: -1;"
|
|
|
- class="l-flex__none"
|
|
|
- :style="canvasStyles"
|
|
|
- >
|
|
|
+ <div style="position: absolute;top:10px;left: 10px;z-index: -1;">
|
|
|
<div
|
|
|
- class="c-viewer__canvas has-bg"
|
|
|
- :style="[transformStyles, styles]"
|
|
|
+ ref="canvas"
|
|
|
+
|
|
|
+ class="l-flex__none"
|
|
|
+ :style="canvasStyles"
|
|
|
>
|
|
|
<div
|
|
|
- class="c-viewer__background has-bg"
|
|
|
- :style="backgroundStyles"
|
|
|
- />
|
|
|
- <widget
|
|
|
- v-for="item in widgets"
|
|
|
- :key="item.id"
|
|
|
- :node="item"
|
|
|
- />
|
|
|
+ class="c-viewer__canvas has-bg"
|
|
|
+ :style="[transformStyles, styles]"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="c-viewer__background has-bg"
|
|
|
+ :style="backgroundStyles"
|
|
|
+ />
|
|
|
+ <widget
|
|
|
+ v-for="item in widgets"
|
|
|
+ :key="item.id"
|
|
|
+ :node="item"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -341,6 +343,7 @@ export default {
|
|
|
assets: [],
|
|
|
tableAssets: [],
|
|
|
duration: 10,
|
|
|
+ resolutionRatio: '',
|
|
|
options: {},
|
|
|
isStream: false,
|
|
|
selectedWidget: null, //
|
|
|
@@ -597,6 +600,8 @@ export default {
|
|
|
try {
|
|
|
console.log('showProgram', data)
|
|
|
console.log('itemJsonStr', JSON.parse(data.itemJsonStr))
|
|
|
+ this.resolutionRatio = data.resolutionRatio
|
|
|
+ console.log('resolutionRatio--', this.resolutionRatio)
|
|
|
const { id, status, name, resolutionRatio, itemJsonStr } = data
|
|
|
const [width, height] = resolutionRatio.split('x')
|
|
|
if (!width || !height) {
|
|
|
@@ -902,7 +907,7 @@ export default {
|
|
|
// ...options
|
|
|
// })
|
|
|
const result = await saveTemplate({
|
|
|
- resolutionRatio: '1920x1080',
|
|
|
+ resolutionRatio: this.resolutionRatio,
|
|
|
duration: getDuration(this.node),
|
|
|
itemJsonStr: JSON.stringify(toJSON(this.node)),
|
|
|
keyNameList: getUsedAssets(this.node),
|