Commit 43ef3d12 by zhuzhequan

给网格添加设置背景功能

parent 3409f5ee
......@@ -129,12 +129,29 @@ export default {
},
data() {
return {
predefineColors: [
"#ff4500",
"#ff8c00",
"#ffd700",
"#90ee90",
"#00ced1",
"#1e90ff",
"#c71585",
"rgba(255, 69, 0, 0.68)",
"rgb(255, 120, 0)",
"hsv(51, 100, 98)",
"hsva(120, 40, 94, 0.5)",
"hsl(181, 100%, 37%)",
"hsla(209, 100%, 56%, 0.73)",
"#c7158577"
],
actionList: [],
checkList: [],
oldImgList: [],
hasSize: false,
parentWidth: 0,
backColor: "#77797a",
gridBg: "#ffffff",
systemSetting: {},
detail: {},
imgHeight: 0,
......@@ -1149,7 +1166,7 @@ export default {
<div v-if="isView" id="img">
<div
id="line"
style="left: 22%;top: 52%;background-color: transparent;overflow: hidden;cursor: none;"
style="left: 22%;top: 52%;background-color: transparent;overflow: hidden"
>
<div
class="sucaitu vieWsucaitu"
......@@ -1208,11 +1225,16 @@ export default {
v-else
style="width: 100%;height: 100%;background-color:#77797a "
>
<div id="line" class="boxShaow">
<div :style="{background:gridBg}" id="line" class="boxShaow">
<!-- <div
class="sucaitu"
:style="{ width: gridWH.w + 'px', height: gridWH.h + 'px' }"
> -->
<div class="left-bg-color">
<el-color-picker
color-format="hex"
:predefine="predefineColors" size="small" v-model="gridBg"></el-color-picker>
</div>
<div class="sucaitu" :style="{ width: '100%', height: '100%' }">
<vue-drag-resize-rotate
:w="item.w"
......@@ -1653,6 +1675,11 @@ img {
.boxShaow {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.14),
0 0 20px rgba(0, 0, 0, 0.12);
position: relative;
.left-bg-color{
position: absolute;
left: -57px;
}
}
.vieWsucaitu {
.active::before {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment