@bytenew/bn-bus-ui 1.1.399
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.
- package/README.md +637 -0
- package/common.scss +715 -0
- package/dist/assocTableSearch-C9KUFIpd.js +349 -0
- package/dist/assocTableSearch.css +1 -0
- package/dist/bn-bus-ui.es.js +58 -0
- package/dist/bn-bus-ui.umd.js +42 -0
- package/dist/chooseIPaasData-Bfm58C-0.js +391 -0
- package/dist/chooseIPaasData.css +1 -0
- package/dist/defaultSet-BA11k622.js +322 -0
- package/dist/defaultSet.css +1 -0
- package/dist/fileFormData-D_Q1vylE.js +53 -0
- package/dist/formItemFooter-B3nlSwnS.js +108 -0
- package/dist/formItemFooter.css +1 -0
- package/dist/funcExprDialog-DeHPFa-L.js +139 -0
- package/dist/funcExprDialog.css +1 -0
- package/dist/index-B8KbssVN.js +45 -0
- package/dist/index-CTZ-0Tyh.js +45 -0
- package/dist/index-CZOFm8wK.js +135 -0
- package/dist/index-C_ix9-hS.js +44 -0
- package/dist/index-Cov88CtD.js +221 -0
- package/dist/index-DAtLc2a1.js +89 -0
- package/dist/index-DCbIfKgk.js +66 -0
- package/dist/index-DDy1d3BS.js +178 -0
- package/dist/index-DJ15iYPg.js +89 -0
- package/dist/index-DNHXG3dr.js +62 -0
- package/dist/index-Dg5V1uNO.js +740 -0
- package/dist/index-Dme97Hra.js +118 -0
- package/dist/index-DnzoAsk8.js +109 -0
- package/dist/index-DrngruPb.js +64 -0
- package/dist/index-Q08paoUN.js +51 -0
- package/dist/index-VbL1cqCu.js +58 -0
- package/dist/index-aooX1QXm.js +183 -0
- package/dist/index.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/install-DSQCBsd_.js +19155 -0
- package/dist/install.css +1 -0
- package/dist/setOption-BOD7nAuG.js +329 -0
- package/dist/setOption.css +1 -0
- package/dist/setRelationOption-D7FqiLWj.js +5217 -0
- package/dist/setRelationOption.css +1 -0
- package/package.json +57 -0
package/common.scss
ADDED
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
/** 关于 sass
|
|
2
|
+
* 完全兼容 CSS3
|
|
3
|
+
* 在 CSS 基础上增加变量、嵌套 (nesting)、混合 (mixins) 等功能
|
|
4
|
+
* 通过函数进行颜色值与属性值的运算
|
|
5
|
+
* 提供控制指令 (control directives)等高级功能
|
|
6
|
+
* 自定义输出格式
|
|
7
|
+
**/
|
|
8
|
+
|
|
9
|
+
//对所有元素,选择使用IE的怪异盒模型 wid = padding + wid;
|
|
10
|
+
* {
|
|
11
|
+
-webkit-box-sizing: border-box;
|
|
12
|
+
-moz-box-sizing: border-box;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
*:before, *:after {
|
|
17
|
+
-webkit-box-sizing: border-box;
|
|
18
|
+
-moz-box-sizing: border-box;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input[type="radio"] {
|
|
23
|
+
-webkit-box-sizing: border-box;
|
|
24
|
+
-moz-box-sizing: border-box;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
|
|
30
|
+
height: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input[type="search"] {
|
|
34
|
+
-webkit-box-sizing: content-box;
|
|
35
|
+
-moz-box-sizing: content-box;
|
|
36
|
+
box-sizing: content-box;
|
|
37
|
+
-webkit-appearance: textfield;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//重写p标签样式 去掉margin-bottom
|
|
41
|
+
p {
|
|
42
|
+
margin-bottom: 0 !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//改变浏览器滚动条默认样式,但其实我们引用了vue-scroll用来做模拟滚动条。
|
|
46
|
+
::-webkit-scrollbar {
|
|
47
|
+
width: 10px;
|
|
48
|
+
height: 10px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::-webkit-scrollbar-track-piece {
|
|
52
|
+
-webkit-border-radius: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
::-webkit-scrollbar-thumb:vertical {
|
|
56
|
+
height: 10px;
|
|
57
|
+
background-color: rgba(144, 147, 153, .3);
|
|
58
|
+
-webkit-border-radius: 6px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
::-webkit-scrollbar-thumb:horizontal {
|
|
62
|
+
width: 10px;
|
|
63
|
+
background-color: rgba(144, 147, 153, .3);
|
|
64
|
+
-webkit-border-radius: 6px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//清除元素默认样式,选择默认字体
|
|
68
|
+
#app, html, body {
|
|
69
|
+
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
|
|
70
|
+
margin: 0;
|
|
71
|
+
position: relative;
|
|
72
|
+
height: 100%;
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
input, button {
|
|
77
|
+
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
ul, li {
|
|
81
|
+
margin: 0;
|
|
82
|
+
padding: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
p {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
input::-webkit-input-placeholder {
|
|
91
|
+
color: #A9AAAA;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
input::-moz-placeholder {
|
|
95
|
+
color: #A9AAAA;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
input:-moz-placeholder {
|
|
99
|
+
color: #A9AAAA;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
input:-ms-input-placeholder {
|
|
103
|
+
color: #A9AAAA;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// 处理input type = number的上下箭头
|
|
107
|
+
input::-webkit-outer-spin-button,
|
|
108
|
+
input::-webkit-inner-spin-button {
|
|
109
|
+
-webkit-appearance: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
input[type="number"] {
|
|
113
|
+
-moz-appearance: textfield;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
a:hover {
|
|
117
|
+
text-decoration: none;
|
|
118
|
+
text-underline: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
a:link {
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// 默认容器样式,占满屏幕,存在滚动条
|
|
126
|
+
.w-source {
|
|
127
|
+
position: relative;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
overflow: auto;
|
|
131
|
+
background: #f5f5f7;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
//没有数据时提示文字的样式
|
|
135
|
+
.w-empty {
|
|
136
|
+
width: 100%;
|
|
137
|
+
line-height: 48px;
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
color: #999;
|
|
140
|
+
text-align: center;
|
|
141
|
+
}
|
|
142
|
+
//文案提示样式
|
|
143
|
+
.w-tip{
|
|
144
|
+
font-size: 14px;
|
|
145
|
+
padding: 10px;
|
|
146
|
+
border: 1px solid;
|
|
147
|
+
border-radius: 4px;
|
|
148
|
+
border-color: #eee;
|
|
149
|
+
background: #FAFAFA;
|
|
150
|
+
color: #666;
|
|
151
|
+
&.success{
|
|
152
|
+
border-color: #bee0ad;
|
|
153
|
+
background: #f0f9eb;
|
|
154
|
+
color: #67c23a;
|
|
155
|
+
}
|
|
156
|
+
&.info{
|
|
157
|
+
border-color: #b9d9fd;
|
|
158
|
+
background: #ecf5ff;
|
|
159
|
+
color: #409eff;
|
|
160
|
+
}
|
|
161
|
+
&.warn{
|
|
162
|
+
border-color: #f0c98e;
|
|
163
|
+
background: #fdf6ec;
|
|
164
|
+
color: #e6a23c;
|
|
165
|
+
}
|
|
166
|
+
&.err{
|
|
167
|
+
border-color: #f2c8c8;
|
|
168
|
+
background: #fef0f0;
|
|
169
|
+
color: #f56c6c;
|
|
170
|
+
}
|
|
171
|
+
&.no-border{
|
|
172
|
+
border: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&-num{
|
|
176
|
+
font-size: 14px;
|
|
177
|
+
font-weight: bold;
|
|
178
|
+
color: #409EFF;
|
|
179
|
+
margin-right: 6px;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
//弹性布局 wrap换行 默认是不换行
|
|
184
|
+
.w-flex-wrap {
|
|
185
|
+
display: flex;
|
|
186
|
+
display: -webkit-flex;
|
|
187
|
+
display: -moz-flex;
|
|
188
|
+
display: -ms-flexbox;
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
}
|
|
191
|
+
/*
|
|
192
|
+
左右方向
|
|
193
|
+
flex-start(默认值):左对齐
|
|
194
|
+
flex-end:右对齐
|
|
195
|
+
center: 居中
|
|
196
|
+
space-between:两端对齐,项目之间的间隔都相等。
|
|
197
|
+
space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍。
|
|
198
|
+
*/
|
|
199
|
+
//左右两端
|
|
200
|
+
.w-flex-between {
|
|
201
|
+
display: flex;
|
|
202
|
+
display: -webkit-flex;
|
|
203
|
+
display: -moz-flex;
|
|
204
|
+
display: -ms-flexbox;
|
|
205
|
+
justify-content: space-between;
|
|
206
|
+
}
|
|
207
|
+
//左右靠左
|
|
208
|
+
.w-flex-left {
|
|
209
|
+
display: flex;
|
|
210
|
+
display: -webkit-flex;
|
|
211
|
+
display: -moz-flex;
|
|
212
|
+
display: -ms-flexbox;
|
|
213
|
+
justify-content: flex-start;
|
|
214
|
+
}
|
|
215
|
+
//左右靠右
|
|
216
|
+
.w-flex-right {
|
|
217
|
+
display: flex;
|
|
218
|
+
display: -webkit-flex;
|
|
219
|
+
display: -moz-flex;
|
|
220
|
+
display: -ms-flexbox;
|
|
221
|
+
justify-content: flex-end;
|
|
222
|
+
}
|
|
223
|
+
//横向居中,左右居中
|
|
224
|
+
.w-flex-lrCenter {
|
|
225
|
+
display: flex;
|
|
226
|
+
display: -webkit-flex;
|
|
227
|
+
display: -moz-flex;
|
|
228
|
+
display: -ms-flexbox;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/*
|
|
233
|
+
上下方向
|
|
234
|
+
flex-start:交叉轴的起点对齐。
|
|
235
|
+
flex-end:交叉轴的终点对齐。
|
|
236
|
+
center:交叉轴的中点对齐。
|
|
237
|
+
baseline: 项目的第一行文字的基线对齐。
|
|
238
|
+
stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
|
|
239
|
+
*/
|
|
240
|
+
//上下居中
|
|
241
|
+
.w-flex-center {
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
}
|
|
245
|
+
//上下靠上
|
|
246
|
+
.w-flex-top {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: flex-start;
|
|
249
|
+
}
|
|
250
|
+
//上下靠下
|
|
251
|
+
.w-flex-bottom {
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: flex-end;
|
|
254
|
+
}
|
|
255
|
+
//上下靠下
|
|
256
|
+
.w-flex-baseline {
|
|
257
|
+
display: flex;
|
|
258
|
+
align-items: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 数字、字母超出换行
|
|
262
|
+
.w-word-wrap {
|
|
263
|
+
word-wrap: break-word
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.clearFix:after {
|
|
267
|
+
display: block;
|
|
268
|
+
content: "";
|
|
269
|
+
clear: both;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.w-text-over {
|
|
273
|
+
white-space: nowrap;
|
|
274
|
+
overflow: hidden;
|
|
275
|
+
text-overflow: ellipsis;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.w-text-over-two {
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
text-overflow: ellipsis;
|
|
281
|
+
display: -webkit-box;
|
|
282
|
+
-webkit-line-clamp: 2;
|
|
283
|
+
line-clamp: 2;
|
|
284
|
+
-webkit-box-orient: vertical;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.w-text-over-three {
|
|
288
|
+
overflow: hidden;
|
|
289
|
+
text-overflow: ellipsis;
|
|
290
|
+
display: -webkit-box;
|
|
291
|
+
-webkit-line-clamp: 3;
|
|
292
|
+
line-clamp: 3;
|
|
293
|
+
-webkit-box-orient: vertical;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.w-text-center {
|
|
297
|
+
text-align: center;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.w-text-right {
|
|
301
|
+
text-align: right;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.w-text-left {
|
|
305
|
+
text-align: left;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.w-float-left {
|
|
309
|
+
float: left;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.w-float-right {
|
|
313
|
+
float: right;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.w-default-wrap {
|
|
317
|
+
position: relative;
|
|
318
|
+
width: 100%;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.w-default-hover:hover {
|
|
322
|
+
color: #2d8cf0;
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.w-cursor-pointer {
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
outline: none;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* 动态生成padding和margin类
|
|
333
|
+
* 范围:0-50px
|
|
334
|
+
* 示例:
|
|
335
|
+
* .w-padding20 { padding: 20px !important; }
|
|
336
|
+
* .w-padding-left30 { padding-left: 30px !important; }
|
|
337
|
+
* .w-margin15 { margin: 15px !important; }
|
|
338
|
+
* .w-margin-top25 { margin-top: 25px !important; }
|
|
339
|
+
*/
|
|
340
|
+
@for $i from 0 through 60 {
|
|
341
|
+
// padding类
|
|
342
|
+
.w-padding#{$i} {
|
|
343
|
+
padding: #{$i}px !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.w-padding-left#{$i} {
|
|
347
|
+
padding-left: #{$i}px !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.w-padding-right#{$i} {
|
|
351
|
+
padding-right: #{$i}px !important;
|
|
352
|
+
}
|
|
353
|
+
.w-padding-lr#{$i} {
|
|
354
|
+
padding-left: #{$i}px !important;
|
|
355
|
+
padding-right: #{$i}px !important;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.w-padding-top#{$i} {
|
|
359
|
+
padding-top: #{$i}px !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.w-padding-bottom#{$i} {
|
|
363
|
+
padding-bottom: #{$i}px !important;
|
|
364
|
+
}
|
|
365
|
+
.w-padding-tb#{$i} {
|
|
366
|
+
padding-top: #{$i}px !important;
|
|
367
|
+
padding-bottom: #{$i}px !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// margin类
|
|
371
|
+
.w-margin#{$i} {
|
|
372
|
+
margin: #{$i}px !important;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.w-margin-left#{$i} {
|
|
376
|
+
margin-left: #{$i}px !important;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.w-margin-right#{$i} {
|
|
380
|
+
margin-right: #{$i}px !important;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.w-margin-lr#{$i} {
|
|
384
|
+
margin-left: #{$i}px !important;
|
|
385
|
+
margin-right: #{$i}px !important;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.w-margin-top#{$i} {
|
|
389
|
+
margin-top: #{$i}px !important;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.w-margin-bottom#{$i} {
|
|
393
|
+
margin-bottom: #{$i}px !important;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.w-margin-tb#{$i} {
|
|
397
|
+
margin-top: #{$i}px !important;
|
|
398
|
+
margin-bottom: #{$i}px !important;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* 动态生成字体大小类
|
|
404
|
+
* 范围:12-50px
|
|
405
|
+
* 示例:
|
|
406
|
+
* .w-font14 { font-size: 14px !important; }
|
|
407
|
+
* .w-font24 { font-size: 24px !important; }
|
|
408
|
+
*/
|
|
409
|
+
@for $i from 10 through 60 {
|
|
410
|
+
.w-font#{$i} {
|
|
411
|
+
font-size: #{$i}px !important;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.w-font-weight {
|
|
416
|
+
font-weight: bold;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* 动态生成字重类
|
|
421
|
+
* 范围:100-900,步进值100
|
|
422
|
+
* 示例:
|
|
423
|
+
* .w-font-weight400 { font-weight: 400 !important; } // Regular
|
|
424
|
+
* .w-font-weight700 { font-weight: 700 !important; } // Bold
|
|
425
|
+
*/
|
|
426
|
+
@for $i from 1 through 9 {
|
|
427
|
+
.w-font-weight#{$i * 100} {
|
|
428
|
+
font-weight: #{$i * 100} !important;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* 动态生成行高类
|
|
434
|
+
* 范围:10-100px
|
|
435
|
+
* 示例:
|
|
436
|
+
* .w-line-height32 { line-height: 32px !important; }
|
|
437
|
+
* .w-line-height40 { line-height: 40px !important; }
|
|
438
|
+
*/
|
|
439
|
+
@for $i from 10 through 100 {
|
|
440
|
+
.w-line-height#{$i} {
|
|
441
|
+
line-height: #{$i}px !important;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
//添加下划线
|
|
446
|
+
.w-text-underline {
|
|
447
|
+
text-decoration: underline
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// 定义颜色变量映射
|
|
451
|
+
$colors: (
|
|
452
|
+
'black': black,
|
|
453
|
+
'black3': #333333,
|
|
454
|
+
'black4': #444444,
|
|
455
|
+
'black5': #555555,
|
|
456
|
+
'black6': #666666,
|
|
457
|
+
'black7': #777777,
|
|
458
|
+
'black8': #888888,
|
|
459
|
+
'black85': rgba(0, 0, 0, 0.85),
|
|
460
|
+
'black9': #999,
|
|
461
|
+
'white': #FFFFFF,
|
|
462
|
+
'red': #FF5F5F,
|
|
463
|
+
'blue': #409EFF,
|
|
464
|
+
'yellow': #F2DA04,
|
|
465
|
+
'gray': #999999,
|
|
466
|
+
'green': #3d8050,
|
|
467
|
+
'green-min': #50B34B,
|
|
468
|
+
'deep-orange': #FF5722,
|
|
469
|
+
'orange': #FA7D00,
|
|
470
|
+
'purple': #b662ff,
|
|
471
|
+
'pink': #FF6B9A,
|
|
472
|
+
'teal': #20B2AA,
|
|
473
|
+
'cyan': #1BCDDF,
|
|
474
|
+
'brown': #A5673F,
|
|
475
|
+
'indigo': #6610F2,
|
|
476
|
+
'lime': #CDDC39,
|
|
477
|
+
'amber': #FFC107,
|
|
478
|
+
'navy': #001F3F,
|
|
479
|
+
'olive': #808000,
|
|
480
|
+
'maroon': #800000,
|
|
481
|
+
'coral': #FF7F50,
|
|
482
|
+
'turquoise': #40E0D0,
|
|
483
|
+
'violet': #EE82EE,
|
|
484
|
+
'gold': #FFD700
|
|
485
|
+
);
|
|
486
|
+
|
|
487
|
+
// 使用@each生成黑色系列颜色类
|
|
488
|
+
@each $name, $color in $colors {
|
|
489
|
+
.w-color-#{$name} {
|
|
490
|
+
@if $name == 'black' {
|
|
491
|
+
color: $color !important;
|
|
492
|
+
} @else {
|
|
493
|
+
color: $color;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* 动态生成边框类
|
|
500
|
+
* 样式:solid(实线)、dashed(虚线)、dotted(点线)
|
|
501
|
+
* 方向:all(四周)、top、right、bottom、left
|
|
502
|
+
* 粗细:1px(普通)、2px(粗体)
|
|
503
|
+
* 示例:
|
|
504
|
+
* .w-border-solid { border: 1px solid #E9E9E9; }
|
|
505
|
+
* .w-border-dashed-top { border-top: 1px dashed #E9E9E9; }
|
|
506
|
+
* .w-border-solid-bold-left { border-left: 2px solid #E9E9E9; }
|
|
507
|
+
*/
|
|
508
|
+
// 定义边框样式映射
|
|
509
|
+
$border-styles: (
|
|
510
|
+
'solid': solid,
|
|
511
|
+
'dashed': dashed,
|
|
512
|
+
'dotted': dotted
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
// 定义边框方向映射
|
|
516
|
+
$border-directions: (
|
|
517
|
+
'': 'all',
|
|
518
|
+
'-top': top,
|
|
519
|
+
'-right': right,
|
|
520
|
+
'-bottom': bottom,
|
|
521
|
+
'-left': left
|
|
522
|
+
);
|
|
523
|
+
|
|
524
|
+
// 生成边框类
|
|
525
|
+
@each $style-name, $style in $border-styles {
|
|
526
|
+
@each $direction-suffix, $direction in $border-directions {
|
|
527
|
+
// 1px边框
|
|
528
|
+
.w-border-#{$style-name}#{$direction-suffix} {
|
|
529
|
+
@if $direction == 'all' {
|
|
530
|
+
border: 1px #{$style} #E9E9E9;
|
|
531
|
+
} @else {
|
|
532
|
+
border-#{$direction}: 1px #{$style} #E9E9E9;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
@for $i from 2 through 10 {
|
|
537
|
+
.w-border-#{$style-name}#{$direction-suffix}#{$i} {
|
|
538
|
+
@if $direction == 'all' {
|
|
539
|
+
border: #{$i}px #{$style} #E9E9E9;
|
|
540
|
+
} @else {
|
|
541
|
+
border-#{$direction}: #{$i}px #{$style} #E9E9E9;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* 动态生成flex间隔类
|
|
551
|
+
* 范围:10-30px
|
|
552
|
+
* 示例:
|
|
553
|
+
* .w-flex-gap10 { gap: 10px !important; }
|
|
554
|
+
* .w-flex-column-gap20 { column-gap: 20px !important; }
|
|
555
|
+
* .w-flex-row-gap15 { row-gap: 15px !important; }
|
|
556
|
+
*/
|
|
557
|
+
@for $i from 1 through 50 {
|
|
558
|
+
// 普通间隔(行列间隔相同)
|
|
559
|
+
.w-flex-gap#{$i} {
|
|
560
|
+
display: flex;
|
|
561
|
+
gap: #{$i}px !important;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
// 列间隔(水平方向)
|
|
565
|
+
.w-flex-column-gap#{$i} {
|
|
566
|
+
display: flex;
|
|
567
|
+
column-gap: #{$i}px !important;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// 行间隔(垂直方向)
|
|
571
|
+
.w-flex-row-gap#{$i} {
|
|
572
|
+
display: flex;
|
|
573
|
+
row-gap: #{$i}px !important;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// 基础类名声明(用于编辑器自动补全)
|
|
578
|
+
.w-padding,
|
|
579
|
+
.w-padding-left,
|
|
580
|
+
.w-padding-right,
|
|
581
|
+
.w-padding-lr,
|
|
582
|
+
.w-padding-top,
|
|
583
|
+
.w-padding-bottom,
|
|
584
|
+
.w-padding-tb,
|
|
585
|
+
.w-margin,
|
|
586
|
+
.w-margin-left,
|
|
587
|
+
.w-margin-right,
|
|
588
|
+
.w-margin-top,
|
|
589
|
+
.w-margin-bottom,
|
|
590
|
+
.w-margin-lr,
|
|
591
|
+
.w-margin-tb,
|
|
592
|
+
.w-font-weight,
|
|
593
|
+
.w-color-black,
|
|
594
|
+
.w-line-height,
|
|
595
|
+
.w-border-solid,
|
|
596
|
+
.w-border-solid-top,
|
|
597
|
+
.w-border-solid-right,
|
|
598
|
+
.w-border-solid-bottom,
|
|
599
|
+
.w-border-solid-left,
|
|
600
|
+
.w-border-dashed,
|
|
601
|
+
.w-border-dashed-top,
|
|
602
|
+
.w-border-dashed-right,
|
|
603
|
+
.w-border-dashed-bottom,
|
|
604
|
+
.w-border-dashed-left,
|
|
605
|
+
.w-border-dotted,
|
|
606
|
+
.w-border-dotted-top,
|
|
607
|
+
.w-border-dotted-right,
|
|
608
|
+
.w-border-dotted-bottom,
|
|
609
|
+
.w-border-dotted-left,
|
|
610
|
+
.w-flex-gap,
|
|
611
|
+
.w-flex-column-gap,
|
|
612
|
+
.w-flex-row-gap,
|
|
613
|
+
.w-color-black,
|
|
614
|
+
.w-color-black3,
|
|
615
|
+
.w-color-black4,
|
|
616
|
+
.w-color-black5,
|
|
617
|
+
.w-color-black6,
|
|
618
|
+
.w-color-black7,
|
|
619
|
+
.w-color-black8,
|
|
620
|
+
.w-color-black85,
|
|
621
|
+
.w-color-black9,
|
|
622
|
+
.w-color-white,
|
|
623
|
+
.w-color-red,
|
|
624
|
+
.w-color-blue,
|
|
625
|
+
.w-color-yellow,
|
|
626
|
+
.w-color-gray,
|
|
627
|
+
.w-color-green,
|
|
628
|
+
.w-color-green-min,
|
|
629
|
+
.w-color-orange,
|
|
630
|
+
.w-color-purple,
|
|
631
|
+
.w-color-pink,
|
|
632
|
+
.w-color-teal,
|
|
633
|
+
.w-color-cyan,
|
|
634
|
+
.w-color-brown,
|
|
635
|
+
.w-color-indigo,
|
|
636
|
+
.w-color-lime,
|
|
637
|
+
.w-color-amber,
|
|
638
|
+
.w-color-deep-orange,
|
|
639
|
+
.w-color-navy,
|
|
640
|
+
.w-color-olive,
|
|
641
|
+
.w-color-maroon,
|
|
642
|
+
.w-color-coral,
|
|
643
|
+
.w-color-turquoise,
|
|
644
|
+
.w-color-violet,
|
|
645
|
+
.w-color-gold
|
|
646
|
+
{}
|
|
647
|
+
|
|
648
|
+
//覆盖elementUI相关组件样式,写在最下面
|
|
649
|
+
.el-timeline.is-start{
|
|
650
|
+
padding-left: 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.e-clear-tabs-border {
|
|
654
|
+
.el-tabs__nav-wrap::after {
|
|
655
|
+
display: none;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
//Message 消息提醒样式重写
|
|
660
|
+
.el-message {
|
|
661
|
+
min-width: 0 !important;
|
|
662
|
+
padding: 10px 16px !important;
|
|
663
|
+
background-color: #fff !important;
|
|
664
|
+
border-radius: 4px !important;
|
|
665
|
+
border: none !important;
|
|
666
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
|
|
667
|
+
display: inline-flex !important;
|
|
668
|
+
align-items: center !important;
|
|
669
|
+
|
|
670
|
+
.el-message__icon {
|
|
671
|
+
margin-right: 10px !important;
|
|
672
|
+
flex-shrink: 0 !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.el-message__content {
|
|
676
|
+
font-size: 14px !important;
|
|
677
|
+
color: rgba(0, 0, 0, 0.85) !important;
|
|
678
|
+
line-height: 1.5715 !important;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.el-message__closeBtn {
|
|
682
|
+
color: rgba(0, 0, 0, 0.45) !important;
|
|
683
|
+
font-size: 12px !important;
|
|
684
|
+
top: 50% !important;
|
|
685
|
+
transform: translateY(-50%) !important;
|
|
686
|
+
&:hover {
|
|
687
|
+
color: rgba(0, 0, 0, 0.75) !important;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
//MessageBox.confirm 样式重写
|
|
693
|
+
.el-message-box__header {
|
|
694
|
+
padding: 15px !important;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.el-message-box__content {
|
|
698
|
+
padding: 15px !important;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.el-message-box__btns button:nth-child(2) {
|
|
702
|
+
margin-left: 15px !important;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.el-message-box {
|
|
706
|
+
padding-bottom: 15px !important;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.el-message-box__title {
|
|
710
|
+
color: #4D4D4D !important;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.el-button{
|
|
714
|
+
border-radius: 4px;
|
|
715
|
+
}
|