eoss-ui 0.4.49 → 0.4.51
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/data-table.js +16 -11
- package/lib/eoss-ui.common.js +29 -21
- package/lib/index.js +1 -1
- package/lib/table-form.js +8 -5
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +11 -5
- package/packages/form/src/table.vue +2 -1
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/form.scss +6 -130
- package/src/index.js +1 -1
- package/CHANGELOG.md +0 -929
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@import './common/var.scss';
|
|
2
|
-
|
|
3
2
|
.es-form {
|
|
4
3
|
background-color: #ffffff;
|
|
5
|
-
|
|
6
4
|
.es-form-content {
|
|
7
5
|
&::after {
|
|
8
6
|
content: '';
|
|
@@ -10,10 +8,8 @@
|
|
|
10
8
|
height: 0;
|
|
11
9
|
clear: both;
|
|
12
10
|
}
|
|
13
|
-
|
|
14
11
|
.el-scrollbar__view {
|
|
15
12
|
padding: 12px 24px 0 12px;
|
|
16
|
-
|
|
17
13
|
&::after {
|
|
18
14
|
content: '';
|
|
19
15
|
display: block;
|
|
@@ -21,12 +17,10 @@
|
|
|
21
17
|
clear: both;
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
&.es-form-padding {
|
|
26
21
|
padding: 12px 24px 0 12px;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
|
-
|
|
30
24
|
.es-form-item-caption {
|
|
31
25
|
display: inline-block;
|
|
32
26
|
width: 100%;
|
|
@@ -40,7 +34,6 @@
|
|
|
40
34
|
margin-bottom: 22px;
|
|
41
35
|
border-bottom: 1px solid $--border-color-base;
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
.el-autocomplete,
|
|
45
38
|
.el-input-number,
|
|
46
39
|
.el-select,
|
|
@@ -48,46 +41,37 @@
|
|
|
48
41
|
width: 100%;
|
|
49
42
|
display: block;
|
|
50
43
|
}
|
|
51
|
-
|
|
52
44
|
.is-without-controls {
|
|
53
45
|
.el-input__inner {
|
|
54
46
|
text-align: left;
|
|
55
47
|
}
|
|
56
48
|
}
|
|
57
|
-
|
|
58
49
|
.el-form-item {
|
|
59
50
|
.es-label-box {
|
|
60
51
|
display: flex;
|
|
61
52
|
}
|
|
62
|
-
|
|
63
53
|
&.is-required:not(.is-no-asterisk) {
|
|
64
54
|
.required-after {
|
|
65
55
|
position: relative;
|
|
66
|
-
|
|
67
56
|
&::before {
|
|
68
57
|
content: none !important;
|
|
69
58
|
}
|
|
70
|
-
|
|
71
59
|
&::after {
|
|
72
60
|
content: '*';
|
|
73
61
|
color: $--color-danger;
|
|
74
62
|
}
|
|
75
|
-
|
|
76
63
|
&.required-position::after {
|
|
77
64
|
position: absolute;
|
|
78
65
|
}
|
|
79
|
-
|
|
80
66
|
&.es-label-box::after {
|
|
81
67
|
right: 4px;
|
|
82
68
|
}
|
|
83
69
|
}
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
.es-toolbar {
|
|
87
72
|
border: 0;
|
|
88
73
|
}
|
|
89
74
|
}
|
|
90
|
-
|
|
91
75
|
.es-input__inner {
|
|
92
76
|
display: block;
|
|
93
77
|
flex: 1;
|
|
@@ -98,13 +82,11 @@
|
|
|
98
82
|
border-radius: $--input-border-radius;
|
|
99
83
|
color: $--input-font-color;
|
|
100
84
|
}
|
|
101
|
-
|
|
102
85
|
div.es-input__inner {
|
|
103
86
|
text-overflow: ellipsis;
|
|
104
87
|
white-space: nowrap;
|
|
105
88
|
overflow: hidden;
|
|
106
89
|
}
|
|
107
|
-
|
|
108
90
|
.es-textarea__inner {
|
|
109
91
|
min-height: 40px;
|
|
110
92
|
padding: 5px 15px;
|
|
@@ -117,34 +99,27 @@
|
|
|
117
99
|
display: flex;
|
|
118
100
|
align-items: center;
|
|
119
101
|
}
|
|
120
|
-
|
|
121
102
|
.es-input {
|
|
122
103
|
display: block;
|
|
123
104
|
line-height: 40px;
|
|
124
105
|
}
|
|
125
|
-
|
|
126
106
|
.es-textarea {
|
|
127
107
|
min-height: 40px;
|
|
128
108
|
}
|
|
129
|
-
|
|
130
109
|
.el-form-item__content {
|
|
131
110
|
line-height: normal;
|
|
132
|
-
|
|
133
111
|
.el-upload {
|
|
134
112
|
line-height: 40px;
|
|
135
113
|
}
|
|
136
114
|
}
|
|
137
|
-
|
|
138
115
|
.es-form-button {
|
|
139
116
|
text-align: center;
|
|
140
117
|
padding: 8px 12px;
|
|
141
118
|
}
|
|
142
|
-
|
|
143
119
|
&.es-form-group:not(.es-form-search-nobtn) {
|
|
144
120
|
.el-form-item {
|
|
145
121
|
margin-right: 0;
|
|
146
122
|
float: left;
|
|
147
|
-
|
|
148
123
|
.el-input__inner {
|
|
149
124
|
border-radius: 0;
|
|
150
125
|
border-right: 0;
|
|
@@ -159,42 +134,34 @@
|
|
|
159
134
|
border-bottom-left-radius: $--input-border-radius;
|
|
160
135
|
}
|
|
161
136
|
}
|
|
162
|
-
|
|
163
137
|
&:last-child {
|
|
164
138
|
.el-input__inner {
|
|
165
139
|
border-top-right-radius: $--input-border-radius;
|
|
166
140
|
border-bottom-right-radius: $--input-border-radius;
|
|
167
141
|
}
|
|
168
|
-
|
|
169
142
|
.el-button:first-child {
|
|
170
143
|
border-top-left-radius: 0;
|
|
171
144
|
border-bottom-left-radius: 0;
|
|
172
145
|
}
|
|
173
146
|
}
|
|
174
|
-
|
|
175
147
|
.el-form-item__label {
|
|
176
148
|
display: none;
|
|
177
149
|
}
|
|
178
150
|
}
|
|
179
|
-
|
|
180
151
|
.es-form-button {
|
|
181
152
|
display: inline-block;
|
|
182
153
|
text-align: center;
|
|
183
154
|
}
|
|
184
155
|
}
|
|
185
|
-
|
|
186
156
|
.es-collapse {
|
|
187
157
|
border: 0;
|
|
188
|
-
|
|
189
158
|
.es-collapse-item {
|
|
190
159
|
border-top: 0;
|
|
191
|
-
|
|
192
160
|
.el-collapse-item__header {
|
|
193
161
|
padding-left: 14px;
|
|
194
162
|
font-size: 16px;
|
|
195
163
|
font-weight: bold;
|
|
196
164
|
border-bottom-color: $--border-color-base;
|
|
197
|
-
|
|
198
165
|
&::before {
|
|
199
166
|
content: '';
|
|
200
167
|
width: 4px;
|
|
@@ -203,38 +170,31 @@
|
|
|
203
170
|
margin-right: 2px;
|
|
204
171
|
}
|
|
205
172
|
}
|
|
206
|
-
|
|
207
173
|
.el-collapse-item__wrap {
|
|
208
174
|
padding-top: 16px;
|
|
209
175
|
border-bottom: 0;
|
|
210
176
|
}
|
|
211
|
-
|
|
212
177
|
&.es-collapse-readonly {
|
|
213
178
|
.el-collapse-item__header {
|
|
214
179
|
cursor: default;
|
|
215
180
|
}
|
|
216
181
|
}
|
|
217
|
-
|
|
218
182
|
&.is-active {
|
|
219
183
|
&.es-collapse-readonly {
|
|
220
184
|
border-top: 0;
|
|
221
185
|
}
|
|
222
186
|
}
|
|
223
|
-
|
|
224
187
|
&:last-child {
|
|
225
188
|
margin-bottom: 0;
|
|
226
189
|
}
|
|
227
|
-
|
|
228
190
|
&.es-collapse-caption {
|
|
229
191
|
.el-collapse-item__wrap {
|
|
230
192
|
padding-top: 0;
|
|
231
193
|
}
|
|
232
194
|
}
|
|
233
195
|
}
|
|
234
|
-
|
|
235
196
|
.el-collapse-item__content {
|
|
236
197
|
padding: 0 12px;
|
|
237
|
-
|
|
238
198
|
&::after {
|
|
239
199
|
content: '';
|
|
240
200
|
display: table;
|
|
@@ -242,65 +202,51 @@
|
|
|
242
202
|
}
|
|
243
203
|
}
|
|
244
204
|
}
|
|
245
|
-
|
|
246
205
|
.es-plain {
|
|
247
206
|
border: 0;
|
|
248
|
-
|
|
249
207
|
.es-input__inner,
|
|
250
208
|
.es-textarea__inner {
|
|
251
209
|
border: 0;
|
|
252
210
|
}
|
|
253
211
|
}
|
|
254
|
-
|
|
255
212
|
.es-form-item-table {
|
|
256
213
|
.el-form-item__content {
|
|
257
214
|
margin-left: 0 !important;
|
|
258
215
|
}
|
|
259
|
-
|
|
260
216
|
.es-data-table-content,
|
|
261
217
|
.el-scrollbar__view {
|
|
262
218
|
padding: 0 !important;
|
|
263
219
|
}
|
|
264
220
|
}
|
|
265
|
-
|
|
266
221
|
.es-form-table-data {
|
|
267
222
|
.es-data-form {
|
|
268
223
|
margin: -1px;
|
|
269
224
|
}
|
|
270
225
|
}
|
|
271
|
-
|
|
272
226
|
.es-form-item-inline {
|
|
273
227
|
.el-form-item__content {
|
|
274
228
|
display: flex;
|
|
275
|
-
align-items: center;
|
|
276
|
-
|
|
277
229
|
.es-range {
|
|
278
230
|
padding: 0 8px;
|
|
279
231
|
color: #c0c4cc;
|
|
280
232
|
line-height: 40px;
|
|
281
233
|
}
|
|
282
|
-
|
|
283
234
|
& > div:not(.es-range):not(.es-flex-none) {
|
|
284
235
|
flex: 1;
|
|
285
|
-
height: 100%;
|
|
286
236
|
}
|
|
287
237
|
}
|
|
288
|
-
|
|
289
238
|
.el-form-item__error {
|
|
290
239
|
bottom: -16px;
|
|
291
240
|
}
|
|
292
241
|
}
|
|
293
|
-
|
|
294
242
|
.es-form-item-onrow {
|
|
295
243
|
.el-form-item__content {
|
|
296
244
|
margin-right: 50%;
|
|
297
245
|
}
|
|
298
246
|
}
|
|
299
|
-
|
|
300
247
|
.es-table-form {
|
|
301
248
|
margin-bottom: 24px;
|
|
302
249
|
border: $--border-base;
|
|
303
|
-
|
|
304
250
|
.es-table-caption {
|
|
305
251
|
text-align: left;
|
|
306
252
|
font-size: 15px;
|
|
@@ -309,169 +255,117 @@
|
|
|
309
255
|
line-height: 42px;
|
|
310
256
|
padding: 0 8px;
|
|
311
257
|
}
|
|
312
|
-
|
|
313
258
|
td {
|
|
314
259
|
&.es-table-form-item {
|
|
315
260
|
padding: 0;
|
|
316
261
|
position: relative;
|
|
317
262
|
vertical-align: top;
|
|
318
|
-
|
|
319
|
-
|
|
263
|
+
&.td-disabled{
|
|
264
|
+
background-color: #f5f5f5
|
|
265
|
+
}
|
|
320
266
|
.el-input__inner,
|
|
321
267
|
.el-textarea__inner {
|
|
322
268
|
border-width: 0;
|
|
323
269
|
}
|
|
324
|
-
|
|
325
270
|
.el-input-number__decrease,
|
|
326
271
|
.el-input-number__increase {
|
|
327
272
|
top: 0;
|
|
328
273
|
bottom: 0;
|
|
329
274
|
border-radius: 0;
|
|
330
275
|
}
|
|
331
|
-
|
|
332
276
|
.el-input-number__decrease {
|
|
333
277
|
left: 0;
|
|
334
278
|
}
|
|
335
|
-
|
|
336
279
|
.el-input-number__increase {
|
|
337
280
|
right: 0;
|
|
338
281
|
}
|
|
339
|
-
|
|
340
282
|
.el-form-item {
|
|
341
283
|
margin: 0;
|
|
342
|
-
height: 100%;
|
|
343
|
-
|
|
344
284
|
&.is-error {
|
|
345
285
|
.el-input__inner,
|
|
346
286
|
.el-textarea__inner {
|
|
347
287
|
border-width: 1px;
|
|
348
288
|
border-radius: 4px;
|
|
349
289
|
}
|
|
350
|
-
|
|
351
290
|
.el-input-number__decrease,
|
|
352
291
|
.el-input-number__increase {
|
|
353
292
|
top: 1px;
|
|
354
293
|
bottom: 1px;
|
|
355
294
|
}
|
|
356
|
-
|
|
357
295
|
.el-input-number__decrease {
|
|
358
296
|
left: 1px;
|
|
359
297
|
border-radius: 4px 0 0 4px;
|
|
360
298
|
}
|
|
361
|
-
|
|
362
299
|
.el-input-number__increase {
|
|
363
300
|
border-radius: 0 4px 4px 0;
|
|
364
301
|
right: 1px;
|
|
365
302
|
}
|
|
366
303
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
.el-form-item__content {
|
|
370
|
-
height: 100%;
|
|
371
|
-
|
|
372
|
-
.el-select {
|
|
373
|
-
height: 100%;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.el-form-item__content {
|
|
379
|
-
height: 100%;
|
|
380
|
-
|
|
381
|
-
& > div:not(.el-select):not(.es-range) {
|
|
382
|
-
transform: translateY(-50%);
|
|
383
|
-
top: 50%;
|
|
384
|
-
position: relative;
|
|
385
|
-
height: 100%;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.is-disabled {
|
|
389
|
-
height: 100%;
|
|
390
|
-
|
|
391
|
-
input,
|
|
392
|
-
textarea {
|
|
393
|
-
height: 100%;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
304
|
+
.is-disabled .el-input__inner,.is-disabled .el-textarea__inner {
|
|
305
|
+
background-color: #F5F5F5;
|
|
396
306
|
}
|
|
397
307
|
}
|
|
398
|
-
|
|
399
308
|
.el-form-item__error {
|
|
400
309
|
z-index: 1001;
|
|
401
310
|
background-color: #e4e7ed;
|
|
402
311
|
}
|
|
403
|
-
|
|
404
312
|
.es-upload {
|
|
405
313
|
padding: 40px 8px 8px;
|
|
406
314
|
position: relative;
|
|
407
|
-
|
|
408
315
|
&.es-upload-readonly {
|
|
409
316
|
padding-top: 8px;
|
|
410
317
|
}
|
|
411
|
-
|
|
412
318
|
.el-upload {
|
|
413
319
|
line-height: normal;
|
|
414
320
|
position: absolute;
|
|
415
321
|
right: 8px;
|
|
416
322
|
top: 8px;
|
|
417
323
|
}
|
|
418
|
-
|
|
419
324
|
.el-upload-list--text {
|
|
420
325
|
margin-top: 0;
|
|
421
326
|
}
|
|
422
327
|
}
|
|
423
|
-
|
|
424
328
|
.el-checkbox-group,
|
|
425
329
|
.el-radio-group,
|
|
426
330
|
.es-switch-content {
|
|
427
331
|
padding: 0 8px;
|
|
428
332
|
}
|
|
429
|
-
|
|
430
333
|
.es-input__inner,
|
|
431
334
|
.es-textarea__inner {
|
|
432
335
|
border: 0;
|
|
433
336
|
}
|
|
434
|
-
|
|
435
337
|
.es-select-ganged {
|
|
436
338
|
.el-select {
|
|
437
339
|
margin-left: 0;
|
|
438
340
|
}
|
|
439
341
|
}
|
|
440
|
-
|
|
441
342
|
.el-input-group__append,
|
|
442
343
|
.el-input-group__prepend {
|
|
443
344
|
border: 0;
|
|
444
345
|
border-radius: 0;
|
|
445
346
|
}
|
|
446
347
|
}
|
|
447
|
-
|
|
448
348
|
&.es-align-middle {
|
|
449
349
|
vertical-align: middle;
|
|
450
350
|
}
|
|
451
|
-
|
|
452
351
|
&.es-table-form-data {
|
|
453
352
|
padding: 0;
|
|
454
|
-
|
|
455
353
|
.es-data-table {
|
|
456
354
|
.es-table {
|
|
457
355
|
border: 0;
|
|
458
|
-
|
|
459
356
|
&::before {
|
|
460
357
|
height: 0;
|
|
461
358
|
}
|
|
462
359
|
}
|
|
463
360
|
}
|
|
464
|
-
|
|
465
361
|
.el-scrollbar__view {
|
|
466
362
|
padding: 0;
|
|
467
363
|
}
|
|
468
364
|
}
|
|
469
|
-
|
|
470
365
|
&.es-table-td-caption {
|
|
471
366
|
padding: 0;
|
|
472
367
|
position: relative;
|
|
473
368
|
height: 40px;
|
|
474
|
-
|
|
475
369
|
.es-table-caption {
|
|
476
370
|
position: absolute;
|
|
477
371
|
left: -1px;
|
|
@@ -482,100 +376,82 @@
|
|
|
482
376
|
}
|
|
483
377
|
}
|
|
484
378
|
}
|
|
485
|
-
|
|
486
379
|
.es-table-form-label {
|
|
487
380
|
padding: 2px 10px;
|
|
488
381
|
line-height: 36px;
|
|
489
382
|
background-color: #fafafa;
|
|
490
383
|
}
|
|
491
|
-
|
|
492
384
|
& ~ .es-data-table {
|
|
493
385
|
margin-bottom: 24px;
|
|
494
386
|
}
|
|
495
387
|
}
|
|
496
|
-
|
|
497
388
|
.el-input__prefix,
|
|
498
389
|
.el-input__suffix {
|
|
499
390
|
line-height: 38px;
|
|
500
391
|
}
|
|
501
|
-
|
|
502
392
|
&.es-form-table {
|
|
503
393
|
.el-scrollbar__view {
|
|
504
394
|
padding: 12px 12px 0 12px;
|
|
505
395
|
}
|
|
506
|
-
|
|
507
396
|
.es-form-padding {
|
|
508
397
|
padding: 12px 12px 0 12px;
|
|
509
398
|
}
|
|
510
399
|
}
|
|
511
|
-
|
|
512
400
|
&.es-form-inside-dialog {
|
|
513
401
|
.es-form-button {
|
|
514
402
|
text-align: right;
|
|
515
403
|
}
|
|
516
404
|
}
|
|
517
405
|
}
|
|
518
|
-
|
|
519
406
|
.es-form-item-label-hide {
|
|
520
407
|
.el-form-item__label {
|
|
521
408
|
display: none;
|
|
522
409
|
}
|
|
523
|
-
|
|
524
410
|
.el-form-item__content {
|
|
525
411
|
margin-left: 0 !important;
|
|
526
412
|
}
|
|
527
413
|
}
|
|
528
|
-
|
|
529
414
|
.es-input-button-prefix {
|
|
530
415
|
.el-input__inner {
|
|
531
416
|
padding-left: 70px;
|
|
532
417
|
}
|
|
533
418
|
}
|
|
534
|
-
|
|
535
419
|
.es-input-button-suffix {
|
|
536
420
|
.el-input__inner {
|
|
537
421
|
padding-right: 60px;
|
|
538
422
|
}
|
|
539
423
|
}
|
|
540
|
-
|
|
541
424
|
.es-select-button-prefix {
|
|
542
425
|
.el-input__inner {
|
|
543
426
|
padding-left: 60px;
|
|
544
427
|
}
|
|
545
428
|
}
|
|
546
|
-
|
|
547
429
|
.es-select-button-suffix {
|
|
548
430
|
.el-input__inner {
|
|
549
431
|
padding-right: 70px;
|
|
550
432
|
}
|
|
551
433
|
}
|
|
552
|
-
|
|
553
434
|
.es-collapse-title,
|
|
554
435
|
.es-collapse-title-handler {
|
|
555
436
|
display: flex;
|
|
556
437
|
align-items: center;
|
|
557
|
-
|
|
558
438
|
.es-label {
|
|
559
439
|
white-space: nowrap;
|
|
560
440
|
}
|
|
561
|
-
|
|
562
441
|
span ~ span,
|
|
563
442
|
span ~ div,
|
|
564
443
|
span ~ i {
|
|
565
444
|
margin-left: 8px;
|
|
566
445
|
}
|
|
567
|
-
|
|
568
446
|
.es-icon-delete,
|
|
569
447
|
.el-icon-delete {
|
|
570
448
|
color: $--color-primary;
|
|
571
449
|
cursor: pointer;
|
|
572
450
|
}
|
|
573
451
|
}
|
|
574
|
-
|
|
575
452
|
.es-collapse-title-handler + .es-collapse-title-handler {
|
|
576
453
|
margin-left: 8px;
|
|
577
454
|
}
|
|
578
|
-
|
|
579
455
|
.es-form-inline {
|
|
580
456
|
display: flex;
|
|
581
|
-
}
|
|
457
|
+
}
|