|
|
@@ -15,21 +15,21 @@
|
|
|
/>
|
|
|
<div class="l-flex__none l-flex--row c-designer__header">
|
|
|
<i
|
|
|
- class="c-sibling-item c-designer__shortcut el-icon-arrow-left o-icon o-icon--hover u-pointer"
|
|
|
+ class="l-flex__none c-sibling-item c-designer__shortcut el-icon-arrow-left o-icon o-icon--hover u-pointer"
|
|
|
@click="onBack"
|
|
|
/>
|
|
|
- <span class="c-sibling-item near u-font-size--md u-bold">{{ program.name }}</span>
|
|
|
- <span class="c-sibling-item near u-font-size--xs">{{ program.resolutionRatio }}</span>
|
|
|
+ <span class="l-flex__self c-sibling-item near u-font-size--md u-bold u-ellipsis">{{ program.name }}</span>
|
|
|
+ <span class="l-flex__none c-sibling-item near u-font-size--xs">{{ program.resolutionRatio }}</span>
|
|
|
<div
|
|
|
v-if="hasAudio"
|
|
|
- class="c-sibling-item c-designer__shortcut o-icon o-icon--hover u-pointer"
|
|
|
+ class="l-flex__none c-sibling-item c-designer__shortcut o-icon o-icon--hover u-pointer"
|
|
|
@click="toggleMute"
|
|
|
>
|
|
|
<volume :muted="muted" />
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="hasNext"
|
|
|
- class="c-sibling-item c-designer__shortcut o-icon o-icon--hover u-pointer"
|
|
|
+ class="l-flex__none c-sibling-item c-designer__shortcut o-icon o-icon--hover u-pointer"
|
|
|
@click="switchBgm"
|
|
|
>
|
|
|
<i class="o-next" />
|
|
|
@@ -37,14 +37,14 @@
|
|
|
<div class="l-flex__fill c-sibling-item" />
|
|
|
<button
|
|
|
v-if="hasWidgets"
|
|
|
- class="c-sibling-item o-button o-button--sm"
|
|
|
+ class="l-flex__none c-sibling-item o-button o-button--sm"
|
|
|
@click="onClear"
|
|
|
>
|
|
|
<i class="o-button__icon el-icon-delete" />
|
|
|
清空
|
|
|
</button>
|
|
|
<button
|
|
|
- class="c-sibling-item o-button o-button--sm"
|
|
|
+ class="l-flex__none c-sibling-item o-button o-button--sm"
|
|
|
@click="onSave"
|
|
|
>
|
|
|
<i class="o-button__icon iconfont iconsave" />
|
|
|
@@ -98,8 +98,8 @@
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<div class="c-designer__main">
|
|
|
- <div class="l-flex--row c-designer__tool">
|
|
|
- <div class="o-scale-slider">
|
|
|
+ <div class="l-flex--row c-designer__tool has-padding--h">
|
|
|
+ <div class="l-flex__none c-sibling-item farther o-scale-slider">
|
|
|
<div class="l-flex--row o-scale-slider__wrapper">
|
|
|
<i
|
|
|
class="el-icon-zoom-out u-pointer"
|
|
|
@@ -118,7 +118,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- class="l-flex__none l-flex--row"
|
|
|
+ class="l-flex__none l-flex--row c-sibling-item"
|
|
|
@dragstart="widgetOnDragStart"
|
|
|
@dragend="widgetOnDragEnd"
|
|
|
>
|
|
|
@@ -135,6 +135,20 @@
|
|
|
<span class="c-sibling-item--v nearer o-widget-cfg__text u-font-size--xs">{{ cfg.label }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-checkbox
|
|
|
+ v-model="preview"
|
|
|
+ class="c-sibling-item farthest"
|
|
|
+ >
|
|
|
+ 组件预览
|
|
|
+ </el-checkbox>
|
|
|
+ <el-tooltip
|
|
|
+ class="c-sibling-item near"
|
|
|
+ effect="dark"
|
|
|
+ placement="top"
|
|
|
+ content="渲染过多过大的图片、视频或直播等会造成页面卡顿,此时可关闭预览"
|
|
|
+ >
|
|
|
+ <i class="el-icon-question" />
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
<div
|
|
|
ref="wrapper"
|
|
|
@@ -432,6 +446,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
loading: false,
|
|
|
+ preview: true,
|
|
|
snapping: false,
|
|
|
padding: 16,
|
|
|
optionIndex: 0,
|
|
|
@@ -994,7 +1009,7 @@ $border: #242835;
|
|
|
|
|
|
.c-designer {
|
|
|
height: 100%;
|
|
|
- min-width: 1080px;
|
|
|
+ min-width: 1280px;
|
|
|
min-height: 600px;
|
|
|
background-color: $theme;
|
|
|
overflow: hidden;
|
|
|
@@ -1234,10 +1249,8 @@ $border: #242835;
|
|
|
}
|
|
|
|
|
|
.o-scale-slider {
|
|
|
- justify-content: flex-start;
|
|
|
min-width: 48px;
|
|
|
width: auto;
|
|
|
- padding: 0 $spacing;
|
|
|
font-size: 20px;
|
|
|
|
|
|
&__wrapper {
|