@lx-frontend/wrap-element-ui 0.4.6-beta.2 → 1.0.0-beta

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.
Files changed (73) hide show
  1. package/dist/AddMembers/index.vue.d.ts +31 -0
  2. package/dist/AuditSteps/index.vue.d.ts +46 -0
  3. package/dist/DemoComponent/index.vue.d.ts +2 -0
  4. package/dist/EditableTable/index.vue.d.ts +186 -0
  5. package/dist/EditableTable/types.d.ts +123 -0
  6. package/dist/EditableTable/useCellHover.d.ts +11 -0
  7. package/dist/EditableTable/useColumnHeaderOperation.d.ts +106 -0
  8. package/dist/EditableTable/useDefaultOperation.d.ts +22 -0
  9. package/dist/EditableTable/useDragSort.d.ts +15 -0
  10. package/dist/EditableTable/usePagination.d.ts +13 -0
  11. package/dist/EditableTable/useRowBgColor.d.ts +16 -0
  12. package/dist/EditableTable/useViewSetting.d.ts +58 -0
  13. package/dist/Ellipsis/MultilineEllipsis.vue.d.ts +91 -0
  14. package/dist/Ellipsis/index.vue.d.ts +89 -0
  15. package/dist/LxTable/index.vue.d.ts +2 -0
  16. package/dist/PopoverForm/index.vue.d.ts +50 -0
  17. package/dist/SearchForm/index.vue.d.ts +105 -0
  18. package/dist/SearchSelect/index.vue.d.ts +53 -0
  19. package/dist/index.css +1 -0
  20. package/dist/index.d.ts +11 -0
  21. package/dist/index.mjs +40808 -0
  22. package/dist/singleMessage/index.d.ts +4 -0
  23. package/package.json +60 -36
  24. package/{packages/AddMembers/src/AddMembers.vue → src/components/AddMembers/index.vue} +35 -13
  25. package/{packages/AuditSteps/src/AuditSteps.vue → src/components/AuditSteps/index.vue} +55 -0
  26. package/{packages/DemoComponent/src/DemoComponent.vue → src/components/DemoComponent/index.vue} +11 -0
  27. package/src/components/EditableTable/README.md +147 -0
  28. package/src/components/EditableTable/index.less +716 -0
  29. package/src/components/EditableTable/index.vue +842 -0
  30. package/src/components/EditableTable/pin-top.png +0 -0
  31. package/src/components/EditableTable/types.ts +94 -0
  32. package/src/components/EditableTable/useCellHover.ts +72 -0
  33. package/src/components/EditableTable/useColumnHeaderOperation.ts +188 -0
  34. package/src/components/EditableTable/useDefaultOperation.ts +96 -0
  35. package/src/components/EditableTable/useDragSort.ts +292 -0
  36. package/src/components/EditableTable/usePagination.ts +34 -0
  37. package/src/components/EditableTable/useRowBgColor.ts +51 -0
  38. package/src/components/EditableTable/useViewSetting.ts +67 -0
  39. package/{packages/Ellipsis/src → src/components/Ellipsis}/MultilineEllipsis.vue +1 -1
  40. package/{packages/Ellipsis/src/Ellipsis.vue → src/components/Ellipsis/index.vue} +5 -5
  41. package/src/components/LxTable/index.vue +296 -0
  42. package/{packages/SearchForm/src/SearchForm.vue → src/components/SearchForm/index.vue} +47 -21
  43. package/{packages/SearchSelect/src/SearchSelect.vue → src/components/SearchSelect/index.vue} +7 -4
  44. package/src/components/index.ts +22 -0
  45. package/babel.config.js +0 -5
  46. package/global.d.ts +0 -23
  47. package/packages/AddMembers/index.js +0 -11
  48. package/packages/AuditSteps/index.js +0 -7
  49. package/packages/DemoComponent/index.js +0 -7
  50. package/packages/Ellipsis/index.js +0 -7
  51. package/packages/LxTable/index.js +0 -11
  52. package/packages/LxTable/src/LxTable.vue +0 -296
  53. package/packages/PopoverForm/index.js +0 -7
  54. package/packages/SearchForm/index.js +0 -7
  55. package/packages/SearchSelect/index.js +0 -7
  56. package/packages/index.js +0 -59
  57. package/packages/theme-default/gulpfile.js +0 -25
  58. package/packages/theme-default/lib/AuditSteps.css +0 -1
  59. package/packages/theme-default/lib/DemoComponent.css +0 -1
  60. package/packages/theme-default/lib/index.css +0 -1
  61. package/packages/theme-default/package.json +0 -23
  62. package/packages/theme-default/src/AuditSteps.scss +0 -52
  63. package/packages/theme-default/src/DemoComponent.scss +0 -9
  64. package/packages/theme-default/src/common/var.scss +0 -0
  65. package/packages/theme-default/src/fonts/.gitkeep +0 -0
  66. package/packages/theme-default/src/index.css +0 -11
  67. package/packages/theme-default/src/index.scss +0 -2
  68. package/packages/utils/.gitkeep +0 -0
  69. package/plugins/wrap.js +0 -22
  70. package/postcss.config.js +0 -5
  71. package/tsconfig.json +0 -41
  72. /package/{packages/PopoverForm/src/PopoverForm.vue → src/components/PopoverForm/index.vue} +0 -0
  73. /package/{packages → src/components}/singleMessage/index.ts +0 -0
@@ -0,0 +1,716 @@
1
+ @--theme-blue--: #2468f2;
2
+
3
+ .editable-table {
4
+ &__selected-color {
5
+ position: absolute;
6
+ left: 0;
7
+ top: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+ }
11
+
12
+ &__color-title {
13
+ text-align: center;
14
+ width: 28px;
15
+ padding: 0 !important;
16
+ }
17
+
18
+ &__color-icon {
19
+ padding: 0 !important;
20
+ margin-left: 8px;
21
+ width: 8px;
22
+ height: 8px;
23
+ border-radius: 50%;
24
+ // left: 5px;
25
+ position: relative;
26
+ background-color: #fcae46;
27
+ cursor: pointer;
28
+ overflow: visible !important;
29
+
30
+ &::before {
31
+ background-color: #fc6559;
32
+ left: -10px;
33
+ z-index: 2;
34
+ }
35
+
36
+ &::after {
37
+ background-color: #409eff;
38
+ left: -5px;
39
+ z-index: 1;
40
+ }
41
+
42
+ &::before,
43
+ &::after {
44
+ content: "";
45
+ width: 8px;
46
+ height: 8px;
47
+ border-radius: 50%;
48
+ position: absolute;
49
+ top: 0;
50
+ }
51
+ }
52
+
53
+ &__color-column,
54
+ &__drag-cell {
55
+ padding: 0 !important;
56
+
57
+ & .cell {
58
+ padding: 0 !important;
59
+ height: 100%;
60
+
61
+ display: flex !important;
62
+ justify-content: center;
63
+ align-items: center;
64
+ text-align: center;
65
+ }
66
+ }
67
+
68
+ &__color-column {
69
+ & .cell {
70
+ padding: 0 !important;
71
+ border: none !important;
72
+ }
73
+ }
74
+
75
+ &__drag-line {
76
+ border: none;
77
+ border-top: 1px solid #13161b;
78
+ height: 4px;
79
+ width: 15px;
80
+
81
+ &:last-child {
82
+ height: 1px;
83
+ }
84
+ }
85
+
86
+ &__drag-icon {
87
+ width: 100%;
88
+ height: 100%;
89
+ min-height: 45px;
90
+ cursor: grab;
91
+ display: flex;
92
+ flex-direction: column;
93
+ justify-content: center;
94
+ align-items: center;
95
+ }
96
+
97
+ &__sort-icon {
98
+ position: relative;
99
+ width: 12px;
100
+ height: 12px;
101
+ border: 1px solid #7b7b7b;
102
+ padding: 0 !important;
103
+ margin-left: 4px;
104
+ border-radius: 50%;
105
+
106
+ &::after {
107
+ position: absolute;
108
+ top: 50%;
109
+ left: 50%;
110
+ content: "";
111
+ width: 3px;
112
+ height: 3px;
113
+ border-bottom: 1px solid;
114
+ border-left: 1px solid;
115
+ border-color: #7b7b7b;
116
+ transform: translate(-50%, -55%) rotate(-45deg);
117
+ }
118
+
119
+ &--active {
120
+ border: 1px solid @--theme-blue--;
121
+
122
+ &::after {
123
+ border-color: @--theme-blue--;
124
+ }
125
+ }
126
+ }
127
+
128
+ &__sort-reference {
129
+ display: inline-flex;
130
+ justify-content: flex-start;
131
+ align-items: center;
132
+
133
+ &:hover {
134
+ cursor: pointer;
135
+ }
136
+
137
+ &--active {
138
+ color: @--theme-blue--;
139
+ }
140
+ }
141
+
142
+ &__sort-filter {
143
+ padding: 0 !important;
144
+ }
145
+
146
+ &__pin-top {
147
+ width: 24px;
148
+ height: 24px;
149
+ color: white;
150
+ background-color: #969ca4;
151
+ }
152
+
153
+ & .el-table td,
154
+ .el-table th.is-leaf {
155
+ border-bottom: 1px solid #dfe3ec;
156
+ }
157
+
158
+ & .el-table {
159
+ &__expanded-cell {
160
+ background-color: #fafafa;
161
+ }
162
+ }
163
+
164
+ & .el-table tr td {
165
+ min-height: 45px;
166
+ border-top: none;
167
+ border-left: none;
168
+ border-right: none;
169
+ }
170
+
171
+ & thead tr th {
172
+ background-color: #f3f4f8 !important;
173
+ border-right: none !important;
174
+
175
+ & .cell {
176
+ color: #13161b;
177
+ }
178
+
179
+ &:not(:last-child) .cell {
180
+ border-right: 2px #e4e8ef solid;
181
+ }
182
+ }
183
+ }
184
+
185
+ .view-setting {
186
+ &__btn-wrapper {
187
+ display: flex;
188
+ justify-content: flex-end;
189
+ }
190
+
191
+ &__btn {
192
+ display: flex;
193
+ justify-content: flex-end;
194
+ align-items: center;
195
+ font-weight: 400;
196
+ font-size: 14px;
197
+ color: @--theme-blue--;
198
+ margin-bottom: 17px;
199
+ margin-right: 20px;
200
+ }
201
+
202
+ &__btn-text {
203
+ margin-left: 4px;
204
+ }
205
+
206
+ &__dialog {
207
+ padding: 0px;
208
+
209
+ .el-dialog__body {
210
+ max-height: 800px;
211
+ }
212
+
213
+ .el-dialog__body {
214
+ padding: 0;
215
+ }
216
+
217
+ & .el-button--primary {
218
+ background-color: @--theme-blue-- !important;
219
+ border-color: @--theme-blue-- !important;
220
+ }
221
+
222
+ & .el-checkbox.is-checked:not(.is-disabled) {
223
+ .el-checkbox__input .el-checkbox__inner {
224
+ background-color: @--theme-blue-- !important;
225
+ border-color: @--theme-blue-- !important;
226
+ }
227
+ .el-checkbox__label {
228
+ color: @--theme-blue-- !important;
229
+ }
230
+ }
231
+
232
+ & .el-button {
233
+ border-radius: 2px;
234
+ }
235
+ }
236
+
237
+ &__content {
238
+ display: flex;
239
+ min-height: 500px;
240
+ }
241
+
242
+ &__content-left {
243
+ min-width: 417px;
244
+ width: 417px;
245
+
246
+ display: flex;
247
+ flex-direction: column;
248
+ justify-content: flex-start;
249
+ align-items: flex-start;
250
+ }
251
+
252
+ &__content-left-item {
253
+ width: 130px;
254
+ margin-bottom: 15px;
255
+ }
256
+
257
+ &__content-right {
258
+ border-left: 1px solid #d9d9d9;
259
+ display: flex;
260
+ flex-direction: column;
261
+ justify-content: flex-start;
262
+ align-items: flex-start;
263
+ }
264
+
265
+ &__content-right-title,
266
+ &__content-left-title {
267
+ border-bottom: 1px solid #d9d9d9;
268
+ width: 100%;
269
+ height: 46px;
270
+ display: flex;
271
+ justify-content: flex-start;
272
+ align-items: center;
273
+ padding-left: 20px;
274
+ }
275
+
276
+ &__selected-count {
277
+ margin-left: 20px;
278
+ }
279
+
280
+ &__checkbox-wrapper {
281
+ padding-left: 37px;
282
+ padding-top: 24px;
283
+ }
284
+
285
+ &__content-right {
286
+ flex-grow: 1;
287
+ }
288
+
289
+ &__content-right-frize {
290
+ width: 100%;
291
+ display: flex;
292
+ justify-content: flex-start;
293
+ align-items: center;
294
+ height: 50px;
295
+ border-bottom: 1px solid #d9d9d9;
296
+ padding-left: 20px;
297
+ }
298
+
299
+ &__content-right-input {
300
+ width: 140px;
301
+ margin: 0 4px;
302
+
303
+ .el-input__inner {
304
+ height: 28px;
305
+ line-height: 28px;
306
+ }
307
+ }
308
+
309
+ &__content-right-selected {
310
+ display: flex;
311
+ justify-content: flex-start;
312
+ flex-direction: column;
313
+ align-items: flex-start;
314
+ width: 100%;
315
+ flex-grow: 1;
316
+ padding-left: 18px;
317
+ padding-top: 17px;
318
+ padding-right: 23px;
319
+ }
320
+
321
+ &__selected-item-left {
322
+ display: flex;
323
+ justify-content: flex-start;
324
+ align-items: center;
325
+ }
326
+
327
+ &__icon-wrapper {
328
+ width: 14px;
329
+ height: 14px;
330
+ line-height: 14px;
331
+ padding: 2px 4px;
332
+ margin-right: 10px;
333
+ cursor: grab;
334
+ display: flex;
335
+ flex-direction: column;
336
+ justify-content: center;
337
+ align-items: center;
338
+ }
339
+
340
+ &__selected-item {
341
+ display: flex;
342
+ justify-content: space-between;
343
+ align-items: center;
344
+ line-height: 30px;
345
+ height: 30px;
346
+ width: 100%;
347
+ }
348
+
349
+ &__selected-item-close {
350
+ cursor: pointer;
351
+ &--disabled {
352
+ cursor: not-allowed;
353
+ color: #989ea9;
354
+ }
355
+ }
356
+ }
357
+
358
+ .color-popover {
359
+ min-width: 102px;
360
+ width: 102px;
361
+ padding: 0;
362
+
363
+ & .popper__arrow::after {
364
+ left: 0 !important;
365
+ }
366
+ }
367
+
368
+ .color-list {
369
+ color: #fff;
370
+ width: 102px;
371
+ border-radius: 5px;
372
+ overflow: hidden;
373
+ &__item {
374
+ display: inline-block;
375
+ width: 100%;
376
+ height: 27px;
377
+ line-height: 27px;
378
+ padding-left: 6px;
379
+ }
380
+ }
381
+
382
+ .sort-filter {
383
+ width: 258px;
384
+ padding: 0;
385
+
386
+ &__column-title {
387
+ font-size: 14px;
388
+ font-weight: 600;
389
+ height: 40px;
390
+ line-height: 40px;
391
+ text-align: center;
392
+ border-bottom: 1px solid #d6dbe3;
393
+ }
394
+
395
+ &__filter,
396
+ &__sort,
397
+ &__search {
398
+ padding: 14px;
399
+ }
400
+
401
+ &__filter {
402
+ padding-top: 0;
403
+ }
404
+
405
+ &__filter-title,
406
+ &__sort-title,
407
+ &__search-title {
408
+ font-weight: 600;
409
+ font-size: 14px;
410
+ color: #1f1f1f;
411
+ margin-bottom: 10px;
412
+ }
413
+
414
+ &__search-input {
415
+ & .el-input__inner {
416
+ height: 32px;
417
+ }
418
+ }
419
+
420
+ &__filter-title {
421
+ border-top: 1px solid #f3f3f3;
422
+ padding-top: 14px;
423
+ }
424
+
425
+ &__sort-btns {
426
+ display: flex;
427
+ justify-content: space-between;
428
+ align-items: center;
429
+
430
+ & .el-button {
431
+ border: none;
432
+ }
433
+ }
434
+
435
+ &__sort-btn {
436
+ width: 112px;
437
+ height: 28px;
438
+ padding: 4px 42px;
439
+ display: inline-block;
440
+ background-color: #f4f4f4;
441
+ color: #4a4a4a;
442
+
443
+ &:hover {
444
+ background-color: #fafafa;
445
+ }
446
+
447
+ &--active {
448
+ color: @--theme-blue--;
449
+ border-color: #eef3ff;
450
+ background: #f4f7fe;
451
+
452
+ &:hover {
453
+ background-color: #f4f7fe;
454
+ }
455
+ }
456
+ }
457
+
458
+ &__filter-checkbox-group {
459
+ display: flex;
460
+ flex-direction: column;
461
+ justify-content: flex-start;
462
+ align-items: flex-start;
463
+ }
464
+
465
+ &__filter-checkbox {
466
+ margin-top: 10px;
467
+ font-size: 14px;
468
+
469
+ &:first-child {
470
+ margin-top: 0;
471
+ }
472
+ }
473
+
474
+ &__footer {
475
+ display: flex;
476
+ height: 47px;
477
+ border-top: 1px solid #d6dbe3;
478
+ justify-content: flex-end;
479
+ align-items: center;
480
+ padding: 0 15px;
481
+ }
482
+
483
+ &__reset-btn,
484
+ &__confirm-btn {
485
+ width: 50px;
486
+ height: 28px;
487
+ margin-left: 10px;
488
+ display: flex;
489
+ justify-content: center;
490
+ align-items: center;
491
+ border-radius: 2px;
492
+ font-size: 14px;
493
+ font-weight: 400;
494
+ }
495
+
496
+ &__confirm-btn {
497
+ background-color: @--theme-blue--;
498
+ border-color: @--theme-blue--;
499
+ }
500
+ }
501
+
502
+ .btn-pointer {
503
+ cursor: pointer;
504
+ }
505
+
506
+ .operation-popover {
507
+ min-width: 120px;
508
+ padding: 0;
509
+
510
+ &__operation {
511
+ display: flex;
512
+ flex-direction: column;
513
+ justify-content: space-between;
514
+ align-items: center;
515
+ }
516
+
517
+ &__operation-reference {
518
+ display: inline-block;
519
+
520
+ &--active {
521
+ color: @--theme-blue--;
522
+ }
523
+
524
+ .el-button {
525
+ background: transparent;
526
+ border: none;
527
+ padding: 0;
528
+ font-weight: 400;
529
+ color: #13161b;
530
+ font-size: 14px;
531
+
532
+ &:focus {
533
+ color: @--theme-blue--;
534
+ }
535
+ }
536
+ }
537
+
538
+ &__operation-item {
539
+ height: 40px;
540
+ line-height: 40px;
541
+ width: 100%;
542
+ text-align: center;
543
+ color: #1f1f1f;
544
+ cursor: pointer;
545
+
546
+ &:hover {
547
+ background: #f4f7fe;
548
+ }
549
+ }
550
+
551
+ &__save-cancel {
552
+ display: flex;
553
+ justify-content: flex-start;
554
+ align-items: center;
555
+ color: @--theme-blue--;
556
+ }
557
+
558
+ &__btn {
559
+ cursor: pointer;
560
+ &:first-child {
561
+ margin-right: 15px;
562
+ }
563
+ }
564
+
565
+ &__operation-btn {
566
+ &--active {
567
+ color: @--theme-blue-- !important;
568
+ }
569
+ }
570
+ }
571
+
572
+ .pagination-wrap {
573
+ display: flex;
574
+ justify-content: space-between;
575
+ align-items: center;
576
+ margin-top: 12px;
577
+
578
+ & .el-pagination {
579
+ .el-pager li.number {
580
+ background-color: #fff;
581
+ border: 1px solid #d6dbe3;
582
+ font-weight: 400;
583
+ font-size: 14px;
584
+
585
+ &.active {
586
+ background-color: @--theme-blue--;
587
+ color: #fff;
588
+ }
589
+ }
590
+
591
+ & .btn-prev,
592
+ & .btn-next,
593
+ & .el-icon-more {
594
+ background-color: #fff !important;
595
+ }
596
+ }
597
+ }
598
+
599
+ .custom-row-classname-pinned {
600
+ & td:last-child {
601
+ background-image: url("./pin-top.png");
602
+ background-repeat: no-repeat;
603
+ background-size: 24px 24px;
604
+ background-position: right 0 top 0;
605
+ }
606
+ }
607
+
608
+ .el-table__body tr.current-row > td,
609
+ .el-table__body tr.hover-row > td {
610
+ background-color: #fafafa;
611
+ }
612
+
613
+ .el-table-filter,
614
+ th.el-table__cell .el-table__column-filter-trigger,
615
+ th.is-sortable .caret-wrapper {
616
+ display: none;
617
+ }
618
+
619
+ table tbody tr td {
620
+ & .el-date-editor.el-input {
621
+ width: 100%;
622
+ }
623
+
624
+ & .cell {
625
+ font-size: 14px;
626
+ }
627
+ }
628
+
629
+ .editable-table {
630
+ & table th {
631
+ font-size: 14px;
632
+ font-weight: bold;
633
+ }
634
+
635
+ & table td {
636
+ font-size: 12px;
637
+ color: #13161b;
638
+ }
639
+ }
640
+
641
+ .no-inner-cell-border {
642
+ & .cell {
643
+ border: none !important;
644
+ }
645
+ }
646
+
647
+ .editable-table-drag-icon {
648
+ position: relative;
649
+ width: 5px;
650
+ height: 2px;
651
+ border-left: 2px solid #989ea9;
652
+ border-right: 2px solid #989ea9;
653
+ cursor: grab;
654
+
655
+ &::after,
656
+ &::before {
657
+ position: absolute;
658
+ content: "";
659
+ box-sizing: border-box;
660
+ left: -2px;
661
+ display: block;
662
+ width: 5px;
663
+ height: 2px;
664
+ border-left: 2px solid #989ea9;
665
+ border-right: 2px solid #989ea9;
666
+ }
667
+
668
+ &::after {
669
+ top: -4px;
670
+ }
671
+
672
+ &::before {
673
+ bottom: -4px;
674
+ }
675
+ }
676
+
677
+ .el-select-dropdown {
678
+ &__item {
679
+ text-align: center;
680
+ }
681
+ }
682
+
683
+ .el-dialog__header {
684
+ display: flex;
685
+ justify-content: space-between;
686
+ align-items: center;
687
+ font-size: 14px;
688
+ background-color: #eeeeee;
689
+ height: 36px;
690
+ line-height: 36px;
691
+ padding: 0 20px;
692
+ }
693
+
694
+ .el-dialog__headerbtn {
695
+ position: inherit;
696
+ }
697
+
698
+ .el-dialog__title {
699
+ font-size: 14px;
700
+ line-height: 20px;
701
+ color: #333333;
702
+ }
703
+
704
+ .el-dialog__footer {
705
+ background-color: #eeeeee;
706
+ height: 42px;
707
+ line-height: 42px;
708
+ padding: 0 20px;
709
+
710
+ & .el-button {
711
+ height: 24px;
712
+ // line-height: 24px;
713
+ font-size: 12px;
714
+ padding: 5px 12px;
715
+ }
716
+ }