vsyswin-ui 0.2.59 → 0.2.62
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/lib/vsyswin-ui.common.js +368 -62
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +368 -62
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +39 -39
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/button-ellipsis/index.js +14 -0
- package/packages/button-ellipsis/src/button-container.vue +68 -0
- package/packages/button-ellipsis/src/button-item.vue +15 -0
- package/packages/button-ellipsis/src/button-list.vue +30 -0
- package/packages/index.js +7 -1
- package/packages/paging/src/paging.vue +5 -0
- package/packages/search-bar/src/search-bar.vue +12 -0
- package/packages/styles/common-old.scss +506 -0
- package/packages/styles/common.scss +440 -470
- package/packages/styles/variables.scss +52 -2
|
@@ -1,506 +1,476 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
-
// 重置样式
|
|
3
|
-
* {
|
|
4
|
-
margin: 0;
|
|
5
|
-
padding: 0;
|
|
6
|
-
}
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
// 基础边框border
|
|
4
|
+
// 颜色即当前元素color
|
|
5
|
+
// 例:.border-1 { border: 1px solid currentColor }
|
|
6
|
+
@for $i from 1 through 5 {
|
|
7
|
+
.border-#{$i} { border: $i+px solid currentColor; }
|
|
8
|
+
.border-top-#{$i} { border-top: $i+px solid currentColor; }
|
|
9
|
+
.border-bottom-#{$i} { border-bottom: $i+px solid currentColor; }
|
|
10
|
+
.border-left-#{$i} { border-left: $i+px solid currentColor; }
|
|
11
|
+
.border-right-#{$i} { border-right: $i+px solid currentColor; }
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
background: #fff;
|
|
17
|
-
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
|
|
18
|
-
-webkit-font-smoothing: antialiased;
|
|
19
|
-
-webkit-text-size-adjust: none;
|
|
20
|
-
font-size: 14px;
|
|
13
|
+
// 基础阴影
|
|
14
|
+
.box-shadow {
|
|
15
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
21
16
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
// 基础内外边距margin/padding
|
|
18
|
+
// 例:.margin-10 { margin: 10px }
|
|
19
|
+
$pixel: 10, 15, 20, 25, 30;
|
|
20
|
+
@each $i in $pixel {
|
|
21
|
+
.margin-#{$i} { margin: $i+px; }
|
|
22
|
+
.margin-top-#{$i} { margin-top: $i+px; }
|
|
23
|
+
.margin-bottom-#{$i} { margin-bottom: $i+px; }
|
|
24
|
+
.margin-left-#{$i} { margin-left: $i+px; }
|
|
25
|
+
.margin-right-#{$i} { margin-right: $i+px; }
|
|
26
|
+
|
|
27
|
+
.padding-#{$i} { padding: $i+px; }
|
|
28
|
+
.padding-top-#{$i} { padding-top: $i+px; }
|
|
29
|
+
.padding-bottom-#{$i} { padding-bottom: $i+px; }
|
|
30
|
+
.padding-left-#{$i} { padding-left: $i+px; }
|
|
31
|
+
.padding-right-#{$i} { padding-right: $i+px; }
|
|
27
32
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width: 8px;
|
|
33
|
-
height: 8px;
|
|
33
|
+
// 基础font-size, 12-40
|
|
34
|
+
// 例:.fz-12 { font-size: 12 }
|
|
35
|
+
@for $i from 12 through 40 {
|
|
36
|
+
.fz-#{$i} { font-size: $i+px; }
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
// 文字对齐
|
|
39
|
+
// 例:.text-left { text-align: left }
|
|
40
|
+
$alien: left, center, right;
|
|
41
|
+
@each $i in $alien {
|
|
42
|
+
.text-#{$i} { text-align: $i;}
|
|
39
43
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
// 单行文字垂直居中
|
|
45
|
+
// 省去设置line-height的烦恼
|
|
46
|
+
// 例 <div class="vertical-center">单行文字垂直居中</div>
|
|
47
|
+
.vertical-center,
|
|
48
|
+
.syswin-button {
|
|
49
|
+
&:before {
|
|
50
|
+
content:'';
|
|
51
|
+
display: inline-block;
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
44
55
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
// 文本溢出显示省略号
|
|
57
|
+
.vertical-center,
|
|
58
|
+
.text-overflow {
|
|
59
|
+
display: block;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
text-overflow: ellipsis;
|
|
49
63
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
// 按钮样式
|
|
65
|
+
// 默认按钮 <button class="syswin-button">取消</button>
|
|
66
|
+
// 确定按钮 <button class="syswin-button primary">确定</button>
|
|
67
|
+
// 文字按钮 <button class="syswin-button is-text">文字按钮</button>
|
|
68
|
+
// 朴素按钮(类似资产租赁合同管理添加附件的按钮样式) <button class="syswin-button is-plain">朴素按钮</button>
|
|
69
|
+
// 禁用效果 增加disabled 如 <button class="syswin-button primary disabled">确定</button>
|
|
70
|
+
.syswin-button {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
line-height: 1;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
background: #fff;
|
|
76
|
+
border: 1px solid #dcdfe6;
|
|
77
|
+
color: #606266;
|
|
78
|
+
text-align: center;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
outline: none;
|
|
81
|
+
margin: 0;
|
|
82
|
+
transition: .1s;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
user-select: none;
|
|
85
|
+
padding: 9px 15px;
|
|
86
|
+
font-size: 12px;
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
& + .syswin-button {
|
|
89
|
+
margin-left: 10px;
|
|
90
|
+
}
|
|
91
|
+
&:hover {
|
|
92
|
+
color: $primary-color;
|
|
93
|
+
border-color: #b3d7ff;
|
|
94
|
+
background-color: $light-color;
|
|
95
|
+
}
|
|
96
|
+
&.disabled {
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
color: $disable-text-color;
|
|
99
|
+
background: #fff;
|
|
100
|
+
border-color: $disable-border-color;
|
|
101
|
+
}
|
|
102
|
+
&.primary {
|
|
103
|
+
color: #fff;
|
|
104
|
+
background: $primary-color;
|
|
105
|
+
border-color: $primary-color;
|
|
106
|
+
&:hover, &:focus {
|
|
107
|
+
background: $primary-hover-color;
|
|
108
|
+
border-color: $primary-hover-color;
|
|
109
|
+
}
|
|
110
|
+
&.disabled {
|
|
111
|
+
background: $primary-disabled-color;
|
|
112
|
+
border-color: $primary-disabled-color;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&.success {
|
|
116
|
+
color: #fff;
|
|
117
|
+
background: $success-color;
|
|
118
|
+
border-color: $success-color;
|
|
119
|
+
}
|
|
120
|
+
&.warning {
|
|
121
|
+
color: #fff;
|
|
122
|
+
background: $warning-color;
|
|
123
|
+
border-color: $warning-color;
|
|
124
|
+
}
|
|
125
|
+
&.danger {
|
|
126
|
+
color: #fff;
|
|
127
|
+
background: $danger-color;
|
|
128
|
+
border-color: $danger-color;
|
|
129
|
+
}
|
|
130
|
+
&.is-plain {
|
|
131
|
+
color: $primary-color;
|
|
132
|
+
background: #fff;
|
|
133
|
+
border-color: $primary-color;
|
|
134
|
+
height: 20px;
|
|
135
|
+
padding: 0 10px;
|
|
136
|
+
min-width: 60px;
|
|
137
|
+
&:hover {
|
|
138
|
+
color: #fff;
|
|
139
|
+
background: $primary-color;
|
|
140
|
+
border-color: $primary-color;
|
|
141
|
+
}
|
|
142
|
+
&.disabled {
|
|
143
|
+
cursor: not-allowed;
|
|
144
|
+
color: $disable-text-color;
|
|
145
|
+
background: #fff;
|
|
146
|
+
border-color: $disable-border-color;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
&.is-text {
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
border-color: transparent;
|
|
152
|
+
color: $primary-color;
|
|
153
|
+
background: transparent;
|
|
154
|
+
padding: 0;
|
|
155
|
+
&.disabled {
|
|
156
|
+
color: $disable-text-color;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// 页面容器
|
|
161
|
+
.syswin-page {
|
|
162
|
+
padding: 0 24px 20px;
|
|
163
|
+
background-color: $page-bg;
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
& > .syswin-container {
|
|
166
|
+
padding: 0 20px;
|
|
167
|
+
background-color: #fff;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// 页面头部
|
|
171
|
+
.syswin-top {
|
|
65
172
|
height: 44px;
|
|
66
173
|
display: flex;
|
|
67
|
-
padding: 0 20px;
|
|
68
174
|
align-items: center;
|
|
175
|
+
padding: 0 20px;
|
|
176
|
+
background-color: $page-bg;
|
|
69
177
|
justify-content: space-between;
|
|
70
|
-
>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
padding: 4px 20px 10px;
|
|
178
|
+
& > .title,
|
|
179
|
+
& > .name {
|
|
180
|
+
font-size: 14px;
|
|
181
|
+
color: #000;
|
|
182
|
+
font-weight: 700;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
// 布局容器
|
|
186
|
+
.syswin-page,
|
|
187
|
+
.syswin-container {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex: 1;
|
|
190
|
+
height: 100%;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
position: relative;
|
|
86
193
|
box-sizing: border-box;
|
|
87
|
-
|
|
88
|
-
&.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
border-right: 1px solid #e3e3e3;
|
|
106
|
-
// overflow-x: scroll;
|
|
107
|
-
position: relative;
|
|
108
|
-
transition: all 0.5s;
|
|
109
|
-
.west-tree-content {
|
|
110
|
-
position: absolute;
|
|
111
|
-
width: 100%;
|
|
112
|
-
height: 100%;
|
|
113
|
-
padding: 0;
|
|
114
|
-
overflow-x: hidden;
|
|
115
|
-
overflow-y: auto;
|
|
116
|
-
box-sizing: border-box;
|
|
117
|
-
}
|
|
118
|
-
.pick-left {
|
|
194
|
+
// 横向布局
|
|
195
|
+
&.horizontal {
|
|
196
|
+
flex-direction: row;
|
|
197
|
+
}
|
|
198
|
+
// 纵向布局
|
|
199
|
+
&.vertical {
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
}
|
|
202
|
+
// 侧边栏
|
|
203
|
+
.syswin-aside {
|
|
204
|
+
width: 260px;
|
|
205
|
+
position: relative;
|
|
206
|
+
&.hidden {
|
|
207
|
+
width: 0;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
// 侧边栏展开收起按钮
|
|
211
|
+
.syswin-aside__expand {
|
|
119
212
|
position: absolute;
|
|
120
213
|
width: 21px;
|
|
121
214
|
height: 54px;
|
|
122
215
|
right: 0;
|
|
123
216
|
top: 50%;
|
|
124
|
-
margin-top: -27px;
|
|
125
217
|
cursor: pointer;
|
|
126
|
-
|
|
218
|
+
transform: translateY(-50%);
|
|
219
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAA2CAYAAAAoL9IOAAACCElEQVRYhe3YQWsTQRjG8f9kk1ysSTw0N9uKiogWEU8W/BZiP0BvXqQohUAxUAhUStVD6kEvHjxU24PfRMSjYrOJYJvQltII3WZ3x0NNOk1nd5PduQh5IIdsyJPf5p0ZQkRz9wCDGQeqaYOFD4E1oJgyUDYOfAQ2gCJAUmlPp16MKz2nUxNHqtWpGUYaqlMzqDRSpyZKOrBOTZh0KJ0anTSWTk2/NLZOTVeaWKcmjSGdGtHcPZCmyroxcaCMSkelSrQHytzjeWp2nVRKRBb4vuTG9Wu8ef2id027+H9v7+C6LlKzLYSAI8fh8LANgGVZFPI5Jicuh0svFfJ0Oi6iTyqlBAljYxcQIvgutKVPFhb5/uNn4Jvu3b3DSqUMwPsP69iNX5RLz8JLXy0v4Xl+YKmVtrDrDcqVFex6g+lbN6Ol2WyWTscNLM1k0giRIpvJAOD7ZwHa0lK5wpev3wj62h7M3Od56Slvq6usb35mq1Y/87p2+s7xMc6Rox2GlJJc7mLgXQRK9/b28TzvZNp9EUKw02rRbv/pPS/kc0xNToSXLi4ts1WzQzVqrl6Z4t3ay9MPHp38o9L/pHQWaJku/QTc5uTHmbFSgCbw6N+jaaq0mw1gmoRq3aASq8OmH1sdtaRiqQddp0Oph1n8A6vj7KhIddxtGqpOuve1ahMHyjm1MPzHTBGo/gVyOKbfrsOPTQAAAABJRU5ErkJggg==');
|
|
220
|
+
&.is-collapse {
|
|
221
|
+
transform: rotateY(180deg) translate(-100%, -50%);
|
|
222
|
+
}
|
|
127
223
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
padding: 0;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
224
|
+
// 页面头部
|
|
225
|
+
.syswin-header {
|
|
226
|
+
flex-shrink: 0;
|
|
227
|
+
padding: 16px 0;
|
|
228
|
+
}
|
|
229
|
+
// 页面底部
|
|
230
|
+
.syswin-footer {
|
|
231
|
+
flex-shrink: 0;
|
|
232
|
+
padding: 10px 0;
|
|
233
|
+
}
|
|
234
|
+
// 页面主体
|
|
235
|
+
.syswin-main {
|
|
236
|
+
width: 100%;
|
|
237
|
+
flex-basis: auto;
|
|
238
|
+
flex: 1;
|
|
239
|
+
overflow: auto;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// 表单样式(使用el-form添加 class=syswin-form)
|
|
243
|
+
// .col-i 表单分 i 列, i值支持 1-5
|
|
244
|
+
// .col-i 加在 syswin-form 上控制整个表单,加在 el-form-item 上,单独控制某一项
|
|
245
|
+
// 例:
|
|
246
|
+
// <el-form class="syswin-form col-2">
|
|
247
|
+
// <el-form-item></el-form-item>
|
|
248
|
+
// <el-form-item></el-form-item>
|
|
249
|
+
// <el-form-item class="col-2"></el-form-item>
|
|
250
|
+
// </el-form>
|
|
251
|
+
.syswin-form {
|
|
252
|
+
@for $i from 1 through 5 {
|
|
253
|
+
&.col-#{$i} {
|
|
254
|
+
& > .el-form-item {
|
|
255
|
+
float: left;
|
|
256
|
+
width: calc(100/#{$i}*1%);
|
|
257
|
+
margin-right: 0;
|
|
258
|
+
padding-right: 15px;
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
& > .el-form-item.col-#{$i} {
|
|
263
|
+
width: calc(100/#{$i}*1%)!important;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
&:after {
|
|
267
|
+
content: '.';
|
|
268
|
+
display: block;
|
|
269
|
+
height: 0;
|
|
270
|
+
clear: both;
|
|
271
|
+
visibility: hidden;
|
|
272
|
+
}
|
|
273
|
+
.el-form-item__content {
|
|
274
|
+
display: flex;
|
|
275
|
+
}
|
|
276
|
+
.el-select,
|
|
277
|
+
.el-textarea,
|
|
278
|
+
.el-cascader,
|
|
279
|
+
.el-input {
|
|
280
|
+
flex: 1;
|
|
281
|
+
width: 100%;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// 滑块(使用el-switch 添加 class=syswin-switch)
|
|
286
|
+
// 通过给 el-switch 组件添加active-label 和 inactive-label 属性,滑块内文字描述
|
|
287
|
+
// active-label,switch 关闭时的文字描述
|
|
288
|
+
// inactive-label,switch 关闭时的文字描述
|
|
289
|
+
// 例:<el-switch v-model="value" active-label="启用" inactive-label="禁用" class="syswin-switch"></el-switch>
|
|
290
|
+
.syswin-switch {
|
|
291
|
+
position: relative;
|
|
292
|
+
height: 26px;
|
|
293
|
+
line-height: 26px;
|
|
294
|
+
&::before {
|
|
295
|
+
content: attr(inactive-label);
|
|
296
|
+
color: #b3b5b9;
|
|
139
297
|
position: absolute;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
left: 0;
|
|
143
|
-
top: 50%;
|
|
144
|
-
margin-top: -27px;
|
|
145
|
-
cursor: pointer;
|
|
146
|
-
}
|
|
298
|
+
left: 26px;
|
|
299
|
+
z-index: 2;
|
|
147
300
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
301
|
+
.el-switch__core {
|
|
302
|
+
box-sizing: border-box;
|
|
303
|
+
width: 64px!important;
|
|
304
|
+
height: 26px;
|
|
305
|
+
line-height: 26px;
|
|
306
|
+
border-radius: 13px;
|
|
307
|
+
background: #f7faff;
|
|
308
|
+
}
|
|
309
|
+
.el-switch__core::before {
|
|
310
|
+
display: none;
|
|
311
|
+
}
|
|
312
|
+
.el-switch__core::after {
|
|
313
|
+
height: 20px;
|
|
314
|
+
width: 20px;
|
|
315
|
+
background: #e0e5ed;
|
|
316
|
+
left: 2px;
|
|
317
|
+
top: 2px;
|
|
318
|
+
}
|
|
319
|
+
&.is-checked::before {
|
|
320
|
+
content: attr(active-label);
|
|
321
|
+
color: $active-color;
|
|
322
|
+
left: 8px;
|
|
323
|
+
}
|
|
324
|
+
&.is-checked {
|
|
325
|
+
.el-switch__core {
|
|
326
|
+
background-color: #fff !important;
|
|
327
|
+
&::after {
|
|
328
|
+
margin-left: -22px !important;
|
|
329
|
+
background: #4a8df0 !important;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
// dialog 弹出框 (使用el-dialog 添加 class=syswin-dialog)
|
|
335
|
+
// 底部操作按钮放slot="footer" 插槽中
|
|
336
|
+
// 例:
|
|
337
|
+
// <el-dialog title="标题" :visible="visible" class="syswin-dialog" width="1200px">
|
|
338
|
+
// ...
|
|
339
|
+
// <div class="dialog-footer" slot="footer">
|
|
340
|
+
// <el-button type="primary">确定</el-button>
|
|
341
|
+
// <el-button>取消</el-button>
|
|
342
|
+
// </div>
|
|
343
|
+
// </el-dialog>
|
|
344
|
+
.syswin-dialog {
|
|
154
345
|
display: flex;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
height: 100%;
|
|
162
|
-
background: #fff;
|
|
163
|
-
border-right: 1px solid #e3e3e3;
|
|
164
|
-
// overflow-x: scroll;
|
|
165
|
-
position: relative;
|
|
166
|
-
transition: all 0.5s;
|
|
167
|
-
.pick-left {
|
|
168
|
-
position: absolute;
|
|
169
|
-
width: 21px;
|
|
170
|
-
height: 54px;
|
|
171
|
-
right: 0;
|
|
172
|
-
top: 50%;
|
|
173
|
-
margin-top: -27px;
|
|
174
|
-
cursor: pointer;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
.east-content {
|
|
178
|
-
/* 右侧表格内容区域盒子 */
|
|
179
|
-
height: 100%;
|
|
180
|
-
transition: all 0.5s;
|
|
181
|
-
position: relative;
|
|
182
|
-
.pick-right {
|
|
183
|
-
position: absolute;
|
|
184
|
-
width: 21px;
|
|
185
|
-
height: 54px;
|
|
186
|
-
left: 0;
|
|
187
|
-
top: 50%;
|
|
188
|
-
margin-top: -27px;
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
.tab-bd {
|
|
193
|
-
/* 还是需要改成 calc计算的方式 vxe-table的max-height才会生效有滚动条*/
|
|
194
|
-
height: calc(100% - 0px);
|
|
195
|
-
padding: 4px 20px 10px;
|
|
196
|
-
box-sizing: border-box;
|
|
197
|
-
background-color: #fff;
|
|
198
|
-
.tab-search {
|
|
199
|
-
height: 46px;
|
|
346
|
+
align-items: center;
|
|
347
|
+
.el-dialog {
|
|
348
|
+
max-height: 90%;
|
|
349
|
+
margin-top: 0 !important;
|
|
350
|
+
margin-bottom: 0;
|
|
351
|
+
flex-direction: column;
|
|
200
352
|
display: flex;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
353
|
+
//统一控制dialog弹窗样式
|
|
354
|
+
.el-dialog__header {
|
|
355
|
+
padding: 0;
|
|
356
|
+
border-bottom: 1px solid $borderColor;
|
|
357
|
+
.el-dialog__title {
|
|
358
|
+
font-size: 14px;
|
|
359
|
+
line-height: 42px;
|
|
360
|
+
height: 42px;
|
|
361
|
+
display: block;
|
|
362
|
+
padding: 0 24px;
|
|
363
|
+
font-weight: 700;
|
|
364
|
+
}
|
|
365
|
+
.el-dialog__headerbtn {
|
|
366
|
+
top: 12px;
|
|
367
|
+
right: 17px;
|
|
368
|
+
}
|
|
207
369
|
}
|
|
208
|
-
.
|
|
209
|
-
|
|
210
|
-
|
|
370
|
+
.el-dialog__body {
|
|
371
|
+
padding: 20px 12px;
|
|
372
|
+
overflow: auto;
|
|
373
|
+
}
|
|
374
|
+
.el-dialog__footer {
|
|
375
|
+
border-top: 1px solid $borderColor;
|
|
376
|
+
padding: 15px 20px;
|
|
377
|
+
text-align: center;
|
|
211
378
|
}
|
|
212
|
-
}
|
|
213
|
-
.tab-footer-btns {
|
|
214
|
-
padding-top: 16px;
|
|
215
|
-
text-align: center;
|
|
216
|
-
}
|
|
217
379
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
.sub-bd {
|
|
224
|
-
height: 100%;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
.sub-hd {
|
|
228
|
-
height: 44px;
|
|
229
|
-
display: flex;
|
|
230
|
-
padding: 0 20px;
|
|
231
|
-
align-items: center;
|
|
232
|
-
justify-content: space-between;
|
|
233
|
-
background-color: $main-bg-color;
|
|
234
|
-
> h2 {
|
|
235
|
-
font-size: 14px;
|
|
236
|
-
margin: 0;
|
|
237
|
-
color: $header-color;
|
|
238
|
-
font-weight: 700;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
.sub-bd {
|
|
242
|
-
height: calc(100% - 44px);
|
|
243
|
-
box-sizing: border-box;
|
|
244
|
-
background-color: #fff;
|
|
245
|
-
.sub-main {
|
|
246
|
-
height: calc(100% - 0px);
|
|
247
|
-
.sub-scroll-wrapper {
|
|
248
|
-
height: 100%;
|
|
249
|
-
overflow: hidden;
|
|
380
|
+
// 全屏弹窗,支持设置el-dialog的fullscreen属性或者直接设置class="syswin-dialog fullscreen"
|
|
381
|
+
&.fullscreen {
|
|
382
|
+
.el-dialog {
|
|
383
|
+
width: 100%;
|
|
384
|
+
height: 100%;
|
|
250
385
|
}
|
|
251
|
-
}
|
|
252
386
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
387
|
+
&.fullscreen .el-dialog,
|
|
388
|
+
.is-fullscreen {
|
|
389
|
+
max-height: 100%;
|
|
390
|
+
.el-dialog__body {
|
|
391
|
+
height: 100%;
|
|
392
|
+
padding: 0;
|
|
393
|
+
overflow: hidden;
|
|
394
|
+
}
|
|
261
395
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
padding-right: 20px;
|
|
273
|
-
.el-tabs__active-bar {
|
|
274
|
-
background-color: $primary-color;
|
|
275
|
-
}
|
|
276
|
-
.el-tabs__item {
|
|
277
|
-
height: 44px;
|
|
278
|
-
line-height: 44px;
|
|
279
|
-
font-weight: 600;
|
|
280
|
-
&.is-active,
|
|
281
|
-
&:hover {
|
|
282
|
-
color: $primary-color;
|
|
396
|
+
// 禁止弹窗body滚动
|
|
397
|
+
&.no-scroll {
|
|
398
|
+
.el-dialog {
|
|
399
|
+
height: 90%
|
|
400
|
+
}
|
|
401
|
+
.el-dialog__body {
|
|
402
|
+
display: flex;
|
|
403
|
+
flex: 1;
|
|
404
|
+
flex-direction: column;
|
|
405
|
+
overflow: hidden;
|
|
283
406
|
}
|
|
284
|
-
}
|
|
285
|
-
.el-tabs__nav-wrap::after {
|
|
286
|
-
background-color: transparent;
|
|
287
|
-
}
|
|
288
407
|
}
|
|
289
|
-
|
|
290
|
-
|
|
408
|
+
&.is-inner {
|
|
409
|
+
.el-dialog__title {
|
|
410
|
+
text-align: center;
|
|
411
|
+
}
|
|
291
412
|
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// 简单搜栏样式
|
|
296
|
-
.header-filter {
|
|
297
|
-
display: flex;
|
|
298
|
-
align-items: center;
|
|
299
|
-
justify-content: space-between;
|
|
300
|
-
// padding-top: 6px;
|
|
301
|
-
margin-bottom: 16px;
|
|
302
|
-
.el-input-group__append {
|
|
303
|
-
background-color: $primary-color !important;
|
|
304
|
-
border: 1px solid $primary-color !important;
|
|
305
|
-
.el-button {
|
|
306
|
-
padding-left: 12px;
|
|
307
|
-
padding-right: 10px;
|
|
308
|
-
color: #fff;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
.el-input__icon {
|
|
312
|
-
line-height: 32px;
|
|
313
|
-
}
|
|
314
|
-
.header-filter-btns {
|
|
315
|
-
min-height: 40px;
|
|
316
|
-
.el-button--text {
|
|
317
|
-
color: $primary-color;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
.el-input__inner {
|
|
321
|
-
height: 32px !important;
|
|
322
|
-
line-height: 32px !important;
|
|
323
|
-
border-radius: 0px !important;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.dialog-inner-content {
|
|
328
|
-
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
329
|
-
padding: 40px 20px 10px;
|
|
330
|
-
position: relative;
|
|
331
|
-
box-sizing: border-box;
|
|
332
|
-
> h3 {
|
|
333
|
-
position: absolute;
|
|
334
|
-
left: 0;
|
|
335
|
-
top: 0;
|
|
336
|
-
right: 0;
|
|
337
|
-
height: 40px;
|
|
338
|
-
line-height: 40px;
|
|
339
|
-
background-color: rgba(0, 0, 0, 0.08);
|
|
340
|
-
padding-left: 20px;
|
|
341
|
-
color: $primary-color;
|
|
342
|
-
font-weight: 600;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.vxe-modal--wrapper.type--modal.no-body-scroll .vxe-modal--body .vxe-modal--content {
|
|
347
|
-
overflow: hidden;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.dialog-footer-btns {
|
|
351
|
-
text-align: center;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.accessory {
|
|
355
|
-
// 上传附件的样式
|
|
356
|
-
.title {
|
|
357
|
-
height: 40px;
|
|
358
|
-
line-height: 40px;
|
|
359
|
-
.label {
|
|
360
|
-
float: left;
|
|
361
|
-
font-size: 14px;
|
|
362
|
-
color: #777e8c;
|
|
363
|
-
}
|
|
364
|
-
.upload {
|
|
365
|
-
float: right;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// 弹出选择窗口
|
|
371
|
-
.el-input-group__append.select-append {
|
|
372
|
-
padding: 0 8px;
|
|
373
|
-
.el-button {
|
|
374
|
-
margin-left: -8px;
|
|
375
|
-
margin-right: -8px;
|
|
376
|
-
padding-left: 5px;
|
|
377
|
-
padding-right: 5px;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/* 自定义分页样式 */
|
|
382
|
-
|
|
383
|
-
.el-pagination.cus-pagination .el-input__inner {
|
|
384
|
-
padding-left: 0px !important;
|
|
385
413
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
.
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
.el-
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
.el-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
.el-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
.
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
font-size: 14px;
|
|
449
|
-
+ span {
|
|
450
|
-
margin-left: 5px;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
+ .el-dropdown {
|
|
454
|
-
// 此样式主要是searchbar 右侧的下拉按钮
|
|
455
|
-
margin-left: 10px;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
// 表格的操作按钮样式
|
|
460
|
-
.operation-a {
|
|
461
|
-
color: $primary-color;
|
|
462
|
-
cursor: pointer;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.operation-a + .operation-a {
|
|
466
|
-
margin-left: 10px;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
.search-condition-list {
|
|
470
|
-
// 搜索条件的标签列表
|
|
471
|
-
.el-tag {
|
|
472
|
-
margin-bottom: 10px;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.tags:not(:first-child) {
|
|
476
|
-
margin-left: 6px;
|
|
477
|
-
}
|
|
478
|
-
.tags.clearall {
|
|
479
|
-
cursor: pointer;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
// 右上角的选择年份
|
|
484
|
-
.drop-select-year {
|
|
485
|
-
position: relative;
|
|
486
|
-
.el-input--prefix .el-input__inner {
|
|
487
|
-
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
|
|
488
|
-
padding-left: 10px;
|
|
489
|
-
padding-right: 10px;
|
|
490
|
-
border: none;
|
|
491
|
-
background: none;
|
|
492
|
-
cursor: pointer;
|
|
493
|
-
color: #000;
|
|
494
|
-
font-weight: 600;
|
|
495
|
-
}
|
|
496
|
-
.el-input__icon {
|
|
497
|
-
width: 0;
|
|
498
|
-
display: none;
|
|
499
|
-
}
|
|
500
|
-
.right-p {
|
|
501
|
-
position: absolute;
|
|
502
|
-
top: 9px;
|
|
503
|
-
right: -2px;
|
|
504
|
-
color: #000;
|
|
505
|
-
}
|
|
414
|
+
// 侧滑窗(使用el-drawer, direction=rtl 添加 class=syswin-drawer)
|
|
415
|
+
// 例:
|
|
416
|
+
// <el-drawer title="我是标题" :visible.sync="drawer" :direction="rtl" class="syswin-drawer">
|
|
417
|
+
// <div class="drawer-main"></div>
|
|
418
|
+
// <div class="drawer-footer"></div>
|
|
419
|
+
// </el-drawer>
|
|
420
|
+
// 4种尺寸 mini 400px small 50%宽度 large 80%宽度 fullscreen全屏
|
|
421
|
+
.syswin-drawer {
|
|
422
|
+
&.mini {
|
|
423
|
+
.el-drawer {
|
|
424
|
+
width: 400px;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
&.small {
|
|
428
|
+
.el-drawer {
|
|
429
|
+
width: 50%;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
&.large {
|
|
433
|
+
.el-drawer {
|
|
434
|
+
width: 80%;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
// 全屏侧滑窗
|
|
438
|
+
&.fullscreen {
|
|
439
|
+
.el-drawer {
|
|
440
|
+
width: 100%;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
.el-drawer {
|
|
444
|
+
top: 0;
|
|
445
|
+
bottom: 0;
|
|
446
|
+
height: auto;
|
|
447
|
+
}
|
|
448
|
+
.el-drawer__header {
|
|
449
|
+
font-size: 14px;
|
|
450
|
+
line-height: 42px;
|
|
451
|
+
height: 42px;
|
|
452
|
+
color:#333;
|
|
453
|
+
padding: 0 24px;
|
|
454
|
+
font-weight: 700;
|
|
455
|
+
margin-bottom: 0;
|
|
456
|
+
border-bottom: 1px solid $borderColor;
|
|
457
|
+
.el-drawer__close-btn {
|
|
458
|
+
padding: 0;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
.el-drawer__body {
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
overflow: hidden;
|
|
465
|
+
}
|
|
466
|
+
// 侧滑窗主体内容
|
|
467
|
+
.drawer-main {
|
|
468
|
+
flex: 1;
|
|
469
|
+
}
|
|
470
|
+
// 侧滑窗底部
|
|
471
|
+
.drawer-footer {
|
|
472
|
+
text-align: center;
|
|
473
|
+
padding: 15px 20px;
|
|
474
|
+
border-top: 1px solid $borderColor;
|
|
475
|
+
}
|
|
506
476
|
}
|