gy-webcode2 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<scrollBar left="25px" top="10px" right="25px">
|
|
3
|
+
<div class="row1">
|
|
4
|
+
整体风格设置
|
|
5
|
+
</div>
|
|
6
|
+
<div class="stylPreview">
|
|
7
|
+
<div class="item" @click="changeTheme(item.value)" :class="[`item_${item.id}`,{active:themeName == item.value}]" v-for="item,index in themeList" :key="item.id">
|
|
8
|
+
<div class="iconBox">
|
|
9
|
+
<i class="el-icon-check"></i>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="row1 mar_t_10">
|
|
14
|
+
主题色
|
|
15
|
+
</div>
|
|
16
|
+
<div class="themeColors">
|
|
17
|
+
<el-tooltip v-for="item,index in themeColorList" :key="item.id" :open-delay="200" effect="dark" :content="item.name" placement="top">
|
|
18
|
+
<div class="item" @click="changeThemeColor(item.value)" :class="{active:themeColor == item.value}" :style="`background-color:${item.color}`">
|
|
19
|
+
<div class="iconBox">
|
|
20
|
+
<i class="el-icon-check"></i>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</el-tooltip>
|
|
24
|
+
</div>
|
|
25
|
+
<el-divider></el-divider>
|
|
26
|
+
<div class="row1 mar_t_10">
|
|
27
|
+
内容区域
|
|
28
|
+
</div>
|
|
29
|
+
<!-- <div class="flex aic jcb pad_t_10 pad_b_10">
|
|
30
|
+
<div>水印</div>
|
|
31
|
+
<div>
|
|
32
|
+
<el-switch v-model="$store.state.watermarkShow"></el-switch>
|
|
33
|
+
</div>
|
|
34
|
+
</div> -->
|
|
35
|
+
<div class="flex aic jcb pad_t_10 pad_b_10">
|
|
36
|
+
<div>面包屑</div>
|
|
37
|
+
<div>
|
|
38
|
+
<el-switch v-model="$store.state.breadcrumbShow"></el-switch>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
</scrollBar>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
export default {
|
|
47
|
+
props:['wrapStyle_dialog'],
|
|
48
|
+
data(){
|
|
49
|
+
return {
|
|
50
|
+
themeList:[
|
|
51
|
+
{
|
|
52
|
+
name:"默认",
|
|
53
|
+
id:"1",
|
|
54
|
+
value:"default",
|
|
55
|
+
img:"pageStyle_1.png"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name:"深蓝",
|
|
59
|
+
id:"2",
|
|
60
|
+
value:"shenlan",
|
|
61
|
+
img:"pageStyle_2.png"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name:"海蓝",
|
|
65
|
+
id:"3",
|
|
66
|
+
value:"hailan",
|
|
67
|
+
img:"pageStyle_3.png"
|
|
68
|
+
},
|
|
69
|
+
// {
|
|
70
|
+
// name:"绿",
|
|
71
|
+
// id:"4",
|
|
72
|
+
// value:"lv"
|
|
73
|
+
// },
|
|
74
|
+
],
|
|
75
|
+
|
|
76
|
+
themeColorList:[
|
|
77
|
+
{
|
|
78
|
+
name:"拂晓蓝(默认)",
|
|
79
|
+
value:"lan",
|
|
80
|
+
id:1,
|
|
81
|
+
color:"#1890ff"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name:"薄暮",
|
|
85
|
+
value:"hong",
|
|
86
|
+
id:2,
|
|
87
|
+
color:"#f5222d"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name:"火山",
|
|
91
|
+
value:"cheng",
|
|
92
|
+
id:3,
|
|
93
|
+
color:"#fb551b"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name:"日暮",
|
|
97
|
+
value:"huang",
|
|
98
|
+
id:4,
|
|
99
|
+
color:"#fa8c16"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name:"明青",
|
|
103
|
+
value:"qing",
|
|
104
|
+
id:5,
|
|
105
|
+
color:"#15c3c1"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name:"极光绿",
|
|
109
|
+
value:"lv",
|
|
110
|
+
id:6,
|
|
111
|
+
color:"#52c41a"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name:"极客蓝",
|
|
115
|
+
value:"shenaln",
|
|
116
|
+
id:7,
|
|
117
|
+
color:"#2f54eb"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name:"酱紫",
|
|
121
|
+
value:"zi",
|
|
122
|
+
id:8,
|
|
123
|
+
color:"#722ed1"
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
computed:{
|
|
129
|
+
themeName(){
|
|
130
|
+
return this.$store.state.themeName
|
|
131
|
+
},
|
|
132
|
+
themeColor(){
|
|
133
|
+
return this.$store.state.themeColor
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
methods:{
|
|
137
|
+
changeTheme(value){
|
|
138
|
+
this.$store.state.themeName = value;
|
|
139
|
+
window.document.body.setAttribute('data-theme', value)
|
|
140
|
+
},
|
|
141
|
+
changeThemeColor(value){
|
|
142
|
+
this.$store.state.themeColor = value;
|
|
143
|
+
window.document.body.setAttribute('data-theme-color', value)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
</script>
|
|
148
|
+
|
|
149
|
+
<style lang="scss" scoped>
|
|
150
|
+
.pageStyle{
|
|
151
|
+
.header{
|
|
152
|
+
height: 56px;
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
border-bottom: 1px solid #f0f0f0;
|
|
156
|
+
padding-left: 25px;
|
|
157
|
+
font-size: 16px;
|
|
158
|
+
i{
|
|
159
|
+
margin-right: 10px;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
.body{
|
|
164
|
+
position: relative;
|
|
165
|
+
.row1{
|
|
166
|
+
padding: 10px 0;
|
|
167
|
+
// padding: 10px 0 5px 0;
|
|
168
|
+
font-weight: bold;
|
|
169
|
+
}
|
|
170
|
+
.stylPreview{
|
|
171
|
+
display: flex;
|
|
172
|
+
padding: 10px 0;
|
|
173
|
+
.item{
|
|
174
|
+
position: relative;
|
|
175
|
+
width: 64px;
|
|
176
|
+
height: 48px;
|
|
177
|
+
margin-right: 16px;
|
|
178
|
+
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
.iconBox{
|
|
181
|
+
display: none;
|
|
182
|
+
color: #1890ff ;
|
|
183
|
+
font-size: 20px;
|
|
184
|
+
width: 20px;
|
|
185
|
+
height: 20px;
|
|
186
|
+
position: absolute;
|
|
187
|
+
left: 30px;
|
|
188
|
+
top: 22px;
|
|
189
|
+
}
|
|
190
|
+
&.active .iconBox{
|
|
191
|
+
display: block;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.themeColors{
|
|
196
|
+
display: flex;
|
|
197
|
+
padding: 10px 0;
|
|
198
|
+
.item{
|
|
199
|
+
width: 20px;
|
|
200
|
+
height: 20px;
|
|
201
|
+
background: #000;
|
|
202
|
+
border-radius: 4px;
|
|
203
|
+
margin-right: 8px;
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
text-align: center;
|
|
208
|
+
line-height: 20px;
|
|
209
|
+
color: #fff;
|
|
210
|
+
font-size: 12px;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
.iconBox{
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
&.active .iconBox{
|
|
216
|
+
display: block;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
}
|
|
223
|
+
</style>
|
package/css/modules/sidebar.scss
CHANGED