Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
43ef3d12
Commit
43ef3d12
authored
May 06, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给网格添加设置背景功能
parent
3409f5ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
src/views/design/main/index.vue
+29
-2
No files found.
src/views/design/main/index.vue
View file @
43ef3d12
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment