|
@@ -27,35 +27,48 @@
|
|
|
<div class="control-panel">
|
|
|
<div class="funcs">
|
|
|
<el-tooltip effect="dark" content="创建文本" placement="left">
|
|
|
- <div style="width:44px;height: 44px; margin-top: 20px;display: flex;justify-content: center" @click="togglePanel(1)"
|
|
|
- :class="{ active: panelState === 1 }">
|
|
|
+ <div style="width:44px;height: 44px; margin-top: 20px;display: flex;justify-content: center"
|
|
|
+ @click="togglePanel(1)" :class="{ active: panelState === 1 }">
|
|
|
<img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-text.png" alt="">
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip effect="dark" content="装饰元素" placement="left">
|
|
|
<div style="width:44px;height: 44px;display: flex;justify-content: center" @click="togglePanel(2)"
|
|
|
:class="{ active: panelState === 2 }">
|
|
|
- <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-zhuangshi.png" alt="">
|
|
|
+ <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-zhuangshi.png"
|
|
|
+ alt="">
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip effect="dark" content="新建轮播" placement="left">
|
|
|
<div style="width:44px;height: 44px;display: flex;justify-content: center" @click="togglePanel(3)"
|
|
|
:class="{ active: panelState === 3 }">
|
|
|
- <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-lunbo.png" alt="">
|
|
|
+ <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-lunbo.png"
|
|
|
+ alt="">
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<!--<el-tooltip effect="dark" content="播放动画" placement="left">-->
|
|
|
<!--<button class="func el-icon-caret-right" @click="playAnimate"></button>-->
|
|
|
<!--</el-tooltip>-->
|
|
|
- <el-tooltip effect="dark" content="交互按钮" placement="left">
|
|
|
+ <!-- 默认画板页面编辑 -->
|
|
|
+ <!-- <el-tooltip effect="dark" content="交互按钮" placement="left">
|
|
|
<div style="width:44px;height: 44px;display: flex;justify-content: center" @click="togglePanel(0)"
|
|
|
:class="{ active: panelState === 0 }">
|
|
|
- <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png" alt="">
|
|
|
+ <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png"
|
|
|
+ alt="">
|
|
|
+ </div>
|
|
|
+ </el-tooltip> -->
|
|
|
+
|
|
|
+ <el-tooltip effect="dark" content="交互按钮" placement="left">
|
|
|
+ <div style="width:44px;height: 44px;display: flex;justify-content: center" @click="togglePanel(4)"
|
|
|
+ :class="{ active: panelState === 4 }">
|
|
|
+ <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png"
|
|
|
+ alt="">
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip v-show="false" effect="dark" content="保存" placement="left">
|
|
|
+ <el-tooltip v-show="false" effect="dark" content="保存" placement="left">
|
|
|
<div style="width:44px;height: 44px;display: flex;justify-content: center" @click="save">
|
|
|
- <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png" alt="">
|
|
|
+ <img style="width:34px;height: 34px;" src="http://yun-image.elab-plus.com/images/dyb/new-jiaohuanniu.png"
|
|
|
+ alt="">
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
@@ -250,12 +263,16 @@
|
|
|
</div>
|
|
|
<!-- 添加元素 2 -->
|
|
|
<div class="panel panel-element clearfix" v-show="panelState === 2">
|
|
|
- <ImgPanel :selectedImg="addPicElement" :themeId="itemId" />
|
|
|
+ <ImgPanel :selectedImg="addPicElement" :themeId="itemId" :isButton ="false" />
|
|
|
</div>
|
|
|
<!-- 添加多图上元素 3 -->
|
|
|
<div class="panel panel-element clearfix" v-if="panelState === 3">
|
|
|
<ImgPanel :selectedImg="addMorePicElement" :ismultiple="true" />
|
|
|
</div>
|
|
|
+ <!-- 添加按钮 4 -->
|
|
|
+ <div class="panel panel-element clearfix" v-if="panelState === 4">
|
|
|
+ <ImgPanel :selectedImg="addButtonElement" :themeId="itemId" :isButton ="true" />
|
|
|
+ </div>
|
|
|
<!-- 图层编辑面板 -->
|
|
|
<EditPanel :element="element" :panelState="panelState" v-if="panelState > 10" />
|
|
|
</div>
|
|
@@ -822,7 +839,7 @@
|
|
|
|
|
|
.control-panel {
|
|
|
position: absolute;
|
|
|
- width: calc(324px - 44px);
|
|
|
+ width: 324px;
|
|
|
height: 100%;
|
|
|
right: 0;
|
|
|
top: 0;
|
|
@@ -840,10 +857,10 @@
|
|
|
background-color: white;
|
|
|
border-right: 2px solid #E2E4EE;
|
|
|
box-shadow: 0px 2px 30px 5px rgba(0, 0, 0, 0.2);
|
|
|
-
|
|
|
+
|
|
|
|
|
|
.func {
|
|
|
- color:white;
|
|
|
+ color: white;
|
|
|
background: transparent;
|
|
|
cursor: pointer;
|
|
|
margin-top: 20px;
|