ylwl-cpscoms 1.0.0 → 1.1.0

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.
@@ -48,7 +48,8 @@ export default {
48
48
  align-items: center;
49
49
  }
50
50
  .message-row {
51
- font-size: 12px;
51
+ font-size: 14px;
52
+ color: #606266;
52
53
  }
53
54
 
54
55
  </style>
@@ -361,5 +361,146 @@ export default {
361
361
  </script>
362
362
 
363
363
  <style scoped >
364
- @import url('./index.css');
364
+ .yl-form-item {
365
+ display: flex;
366
+ align-items: center;
367
+
368
+ }
369
+ ::v-deep .el-form-item__content {
370
+ display: flex;
371
+ flex: 1;
372
+ margin: 0 !important;
373
+ }
374
+
375
+ .yl-form-fullitem .el-form-item__content {
376
+ flex: 1;
377
+ }
378
+
379
+ .yl-form-item {
380
+ display: inline-flex !important;
381
+ /* margin-bottom: 20px; */
382
+ }
383
+ .yl-form-item .yl-form-item-grid .el-form-item__content {
384
+ font-size: 0;
385
+ }
386
+ /* .content-box {
387
+ position: absolute;
388
+ right: 0;
389
+ top: 0;
390
+ background-color: rgba(255, 255, 255, 0.5);
391
+ padding: 10px;
392
+ height: 100%;
393
+ box-shadow: 0 0 5px rgb(223, 222, 222);
394
+ } */
395
+ .item-label {
396
+ display: inline-block;
397
+ width: auto;
398
+ overflow: hidden;
399
+ text-overflow: ellipsis;
400
+ white-space: nowrap;
401
+ vertical-align: middle;
402
+ }
403
+ .yl-form-box-shrink {
404
+ padding: 10px;
405
+ overflow: hidden;
406
+ /* border: 1px solid #c1c1c1; */
407
+ background-color: #f1f1f1;
408
+ /* box-shadow: inset 0 0 5px #c1c1c1; */
409
+ }
410
+ .yl-form-drawericon {
411
+ display: inline-block;
412
+ vertical-align: top;
413
+ }
414
+ .yl-form-drawericon-float {
415
+ position: absolute;
416
+ right: 0;
417
+ top: 0;
418
+ /* transform: translateY(-50%); */
419
+ padding: 10px;
420
+ z-index: 10;
421
+ background-image: linear-gradient(to left, #ffa140, rgba(255, 255, 255, 0));
422
+ opacity: 0.9;
423
+ padding-left: 80px;
424
+ }
425
+ .yl-i-lebel {
426
+ line-height: 12px;
427
+ font-size: 12px;
428
+ z-index: 5;
429
+ right: 0;
430
+ background-color: #979797;
431
+ /* background-image: linear-gradient(to right,#dcdfe6 ,#fff); */
432
+ padding: 2px 8px 4px 10px;
433
+ border-radius: 4px 4px 0 0;
434
+ color: #fff;
435
+ width: auto;
436
+ position: absolute;
437
+ right: 0;
438
+ top: 0;
439
+ /* border: 1px solid #dcdfe6; */
440
+ /* transform: scale(0.7); */
441
+ border-radius: 0 4px 0px 10px;
442
+ transform-origin: 100% 0;
443
+ transform: scale(0.8);
444
+ }
445
+ .yl-r-icon {
446
+ color: red;
447
+ position: absolute;
448
+ left: 0;
449
+ top: 50%;
450
+ z-index: 5;
451
+ padding: 5px;
452
+ line-height: 35px;
453
+ transform: translateY(-50%);
454
+ }
455
+ .yl-form-slider {
456
+ border: 1px solid #dcdfe6;
457
+ border-radius: 4px;
458
+ display: flex;
459
+ padding: 0 20px 0 10px;
460
+ line-height: 35px;
461
+ }
462
+ .yl-form-slider-span {
463
+ padding-right: 15px;
464
+ color: #c0c4cc;
465
+ }
466
+ .yl-form-box {
467
+ white-space: normal;
468
+ position: relative;
469
+ transition: all 0.2s ease-out;
470
+ border-radius: 4px;
471
+ }
472
+ .yl-form-item {
473
+ white-space: nowrap;
474
+ position: relative;
475
+ }
476
+ .yl-form-range-input {
477
+ border-radius: 4px;
478
+ border: 1px solid #dcdfe6;
479
+ padding: 0 10px;
480
+ /* line-height: 38px; */
481
+ }
482
+ /* .yl-form-range-input input:nth-of-type(1){
483
+ margin-right: 10px;
484
+ } */
485
+ .yl-form-range-input input {
486
+ width: 70px;
487
+ border: none;
488
+ height: 100%;
489
+ outline: none;
490
+ /* background-color: #dcdfe6; */
491
+ padding: 7px;
492
+ text-align: center;
493
+ border-radius: 4px;
494
+ }
495
+ .yl-form-range-input input:focus {
496
+ /* box-shadow: inset 0 0 2px #5c85e6; */
497
+ }
498
+ .yl-form-range-input input::placeholder {
499
+ color: #c0c4cc;
500
+ }
501
+
502
+ .el-radio {
503
+ margin-bottom: 0px!important;
504
+ }
505
+
365
506
  </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <main :style="{ padding: notShowPadding ? '' : '20px' }" class="content-box">
2
+ <main :style="{ padding: notShowPadding ? '' : '20px' }" class="main-box">
3
3
  <div class="sl-form">
4
4
  <transition-group name="fade" tag="span" >
5
5
  <slForm key="slForm" ref="slForm" v-model="form" :data="filterForm" :showlabel="false" :form-props="{ inline: true, size: 'small', labelStyle: { textAlign: 'left' }, labelWidth: 'auto' }" />
@@ -261,6 +261,43 @@ export default {
261
261
  }
262
262
  </script>
263
263
  <style scoped >
264
- @import url('./index.css');
264
+ .main-box {
265
+ display: flex;
266
+ flex-direction: column;
267
+ height: 100%;
268
+ width: 100%;
269
+ }
270
+
271
+ .sl-form {
272
+ flex: 1 0 1;
273
+ transition: all 0.3s ease-in-out;
274
+ /* display: flex; */
275
+ /* justify-content: space-between; */
276
+ }
277
+
278
+ .yl-form-box {
279
+ display: inline;
280
+ }
281
+
282
+ .search-btn {
283
+ float: right;
284
+ /* display: inline-block; */
285
+ margin-left: 20px;
286
+ /* margin-top: 5px; */
287
+ }
288
+
289
+ .fade-enter-active, .fade-leave-active {
290
+ transition: opacity 0.3s;
291
+ }
292
+ .fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
293
+ opacity: 0;
294
+ }
295
+
296
+ .sl-table-header {
297
+ display: flex;
298
+ justify-content: space-between;
299
+ margin: 10px 0;
300
+ }
301
+
265
302
  </style>
266
303
 
package/src/index.js CHANGED
@@ -8,6 +8,7 @@ import SlGuide from './SlGuide/index.vue'
8
8
  import SlPage from './SlPage/index.vue'
9
9
  import SlTable from './SlTable/index.vue'
10
10
  import SlTitle from './SlTitle/index.vue'
11
+ import DtTable from './DtTable/index.vue'
11
12
 
12
13
  export { createCommandDialog } from './SlDialog/index.js'
13
14
  export { createCommandDialogPlus } from './SlDialog/dialogPlus.js'
@@ -23,7 +24,8 @@ const components = {
23
24
  SlGuide,
24
25
  SlPage,
25
26
  SlTable,
26
- SlTitle
27
+ SlTitle,
28
+ DtTable
27
29
  }
28
30
 
29
31
  function install(Vue, options = {}) {
@@ -1,141 +0,0 @@
1
- .yl-form-item {
2
- display: flex;
3
- align-items: center;
4
-
5
- }
6
- ::v-deep .el-form-item__content {
7
- display: flex;
8
- flex: 1;
9
- margin: 0 !important;
10
- }
11
-
12
- .yl-form-fullitem .el-form-item__content {
13
- flex: 1;
14
- }
15
-
16
- .yl-form-item {
17
- display: inline-flex !important;
18
- /* margin-bottom: 20px; */
19
- }
20
- .yl-form-item .yl-form-item-grid .el-form-item__content {
21
- font-size: 0;
22
- }
23
- .content-box {
24
- position: absolute;
25
- right: 0;
26
- top: 0;
27
- background-color: rgba(255, 255, 255, 0.5);
28
- padding: 10px;
29
- height: 100%;
30
- box-shadow: 0 0 5px rgb(223, 222, 222);
31
- }
32
- .item-label {
33
- display: inline-block;
34
- width: auto;
35
- overflow: hidden;
36
- text-overflow: ellipsis;
37
- white-space: nowrap;
38
- vertical-align: middle;
39
- }
40
- .yl-form-box-shrink {
41
- padding: 10px;
42
- overflow: hidden;
43
- /* border: 1px solid #c1c1c1; */
44
- background-color: #f1f1f1;
45
- /* box-shadow: inset 0 0 5px #c1c1c1; */
46
- }
47
- .yl-form-drawericon {
48
- display: inline-block;
49
- vertical-align: top;
50
- }
51
- .yl-form-drawericon-float {
52
- position: absolute;
53
- right: 0;
54
- top: 0;
55
- /* transform: translateY(-50%); */
56
- padding: 10px;
57
- z-index: 10;
58
- background-image: linear-gradient(to left, #ffa140, rgba(255, 255, 255, 0));
59
- opacity: 0.9;
60
- padding-left: 80px;
61
- }
62
- .yl-i-lebel {
63
- line-height: 12px;
64
- font-size: 12px;
65
- z-index: 5;
66
- right: 0;
67
- background-color: #979797;
68
- /* background-image: linear-gradient(to right,#dcdfe6 ,#fff); */
69
- padding: 2px 8px 4px 10px;
70
- border-radius: 4px 4px 0 0;
71
- color: #fff;
72
- width: auto;
73
- position: absolute;
74
- right: 0;
75
- top: 0;
76
- /* border: 1px solid #dcdfe6; */
77
- /* transform: scale(0.7); */
78
- border-radius: 0 4px 0px 10px;
79
- transform-origin: 100% 0;
80
- transform: scale(0.8);
81
- }
82
- .yl-r-icon {
83
- color: red;
84
- position: absolute;
85
- left: 0;
86
- top: 50%;
87
- z-index: 5;
88
- padding: 5px;
89
- line-height: 35px;
90
- transform: translateY(-50%);
91
- }
92
- .yl-form-slider {
93
- border: 1px solid #dcdfe6;
94
- border-radius: 4px;
95
- display: flex;
96
- padding: 0 20px 0 10px;
97
- line-height: 35px;
98
- }
99
- .yl-form-slider-span {
100
- padding-right: 15px;
101
- color: #c0c4cc;
102
- }
103
- .yl-form-box {
104
- white-space: normal;
105
- position: relative;
106
- transition: all 0.2s ease-out;
107
- border-radius: 4px;
108
- }
109
- .yl-form-item {
110
- white-space: nowrap;
111
- position: relative;
112
- }
113
- .yl-form-range-input {
114
- border-radius: 4px;
115
- border: 1px solid #dcdfe6;
116
- padding: 0 10px;
117
- /* line-height: 38px; */
118
- }
119
- /* .yl-form-range-input input:nth-of-type(1){
120
- margin-right: 10px;
121
- } */
122
- .yl-form-range-input input {
123
- width: 70px;
124
- border: none;
125
- height: 100%;
126
- outline: none;
127
- /* background-color: #dcdfe6; */
128
- padding: 7px;
129
- text-align: center;
130
- border-radius: 4px;
131
- }
132
- .yl-form-range-input input:focus {
133
- /* box-shadow: inset 0 0 2px #5c85e6; */
134
- }
135
- .yl-form-range-input input::placeholder {
136
- color: #c0c4cc;
137
- }
138
-
139
- .el-radio {
140
- margin-bottom: 0px!important;
141
- }
@@ -1,38 +0,0 @@
1
- .content-box {
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- width: 100%;
6
- }
7
-
8
- .sl-form {
9
- flex: 1 0 1;
10
- transition: all 0.3s ease-in-out;
11
- /* display: flex; */
12
- /* justify-content: space-between; */
13
- }
14
-
15
- .yl-form-box {
16
- display: inline;
17
- }
18
-
19
-
20
- .search-btn {
21
- float: right;
22
- /* display: inline-block; */
23
- margin-left: 20px;
24
- /* margin-top: 5px; */
25
- }
26
-
27
- .fade-enter-active, .fade-leave-active {
28
- transition: opacity 0.3s;
29
- }
30
- .fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
31
- opacity: 0;
32
- }
33
-
34
- .sl-table-header {
35
- display: flex;
36
- justify-content: space-between;
37
- margin: 10px 0;
38
- }