@fangzhongya/fang-ui 0.0.53 → 0.0.55

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 (85) hide show
  1. package/dist/components/common/use.cjs +2 -0
  2. package/dist/components/common/use.js +2 -0
  3. package/dist/components/index.cjs +84 -80
  4. package/dist/components/index.d.ts +3 -1
  5. package/dist/components/index.js +5 -1
  6. package/dist/components/index.scss +3 -1
  7. package/dist/components/index2.scss +3 -1
  8. package/dist/components/list/index.cjs +9 -0
  9. package/dist/components/list/index.css +96 -0
  10. package/dist/components/list/index.d.ts +2 -0
  11. package/dist/components/list/index.js +9 -0
  12. package/dist/components/list/index.scss +110 -0
  13. package/dist/components/list/src/data.cjs +97 -0
  14. package/dist/components/list/src/data.d.ts +100 -0
  15. package/dist/components/list/src/data.js +97 -0
  16. package/dist/components/list/src/index.cjs +4 -0
  17. package/dist/components/list/src/index.js +4 -0
  18. package/dist/components/list/src/index2.cjs +337 -0
  19. package/dist/components/list/src/index2.js +337 -0
  20. package/dist/components/lists/index.cjs +2 -2
  21. package/dist/components/lists/index.css +27 -72
  22. package/dist/components/lists/index.scss +30 -98
  23. package/dist/components/lists/src/data.cjs +80 -49
  24. package/dist/components/lists/src/data.d.ts +103 -48
  25. package/dist/components/lists/src/data.js +81 -50
  26. package/dist/components/lists/src/index.cjs +2 -2
  27. package/dist/components/lists/src/index2.cjs +237 -303
  28. package/dist/components/lists/src/index2.js +237 -303
  29. package/dist/components/listsp/index.cjs +9 -0
  30. package/dist/components/listsp/index.css +86 -0
  31. package/dist/components/listsp/index.d.ts +2 -0
  32. package/dist/components/listsp/index.js +9 -0
  33. package/dist/components/listsp/index.scss +23 -0
  34. package/dist/components/listsp/src/data.d.ts +14 -0
  35. package/dist/components/listsp/src/index.cjs +4 -0
  36. package/dist/components/listsp/src/index.js +4 -0
  37. package/dist/components/listsp/src/index2.cjs +98 -0
  38. package/dist/components/listsp/src/index2.js +98 -0
  39. package/dist/components/listsp/style/index2.scss +4 -0
  40. package/dist/components/page/index.css +35 -38
  41. package/dist/components/page/index.scss +1 -1
  42. package/dist/components/page/src/index2.cjs +2 -2
  43. package/dist/components/page/src/index2.js +2 -2
  44. package/dist/components/page/style/index2.scss +1 -1
  45. package/dist/components/scss/function.scss +1 -1
  46. package/dist/components/tables/common/pagin.cjs +23 -7
  47. package/dist/components/tables/common/pagin.d.ts +8 -1
  48. package/dist/components/tables/common/pagin.js +23 -7
  49. package/dist/components/tables/index.css +1 -4
  50. package/dist/components/tables/index.scss +1 -4
  51. package/dist/components/tablesp/index.css +1 -4
  52. package/dist/css/index.css +100 -46
  53. package/dist/css/list.css +96 -0
  54. package/dist/css/lists.css +27 -72
  55. package/dist/css/listsp.css +86 -0
  56. package/dist/css/page.css +35 -38
  57. package/dist/css/tables.css +1 -4
  58. package/dist/css/tablesp.css +1 -4
  59. package/dist/directives/scroll/index.cjs +36 -11
  60. package/dist/directives/scroll/index.js +36 -11
  61. package/dist/expand/{chunk-LSKJOV4K.cjs → chunk-S7R2FI5L.cjs} +6 -2
  62. package/dist/expand/{chunk-ZS2GF6MH.js → chunk-VCOMWNQB.js} +6 -2
  63. package/dist/expand/components.cjs +5 -5
  64. package/dist/expand/components.js +1 -1
  65. package/dist/expand/config.cjs +2 -2
  66. package/dist/expand/config.js +1 -1
  67. package/dist/icons/index.css +32 -32
  68. package/dist/icons/index.json +10 -10
  69. package/dist/index.cjs +102 -98
  70. package/dist/index.css +100 -46
  71. package/dist/index.js +5 -1
  72. package/dist/type.d.ts +7 -0
  73. package/package.json +4 -4
  74. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  75. /package/dist/components/{cascader-panel → keep-com}/index.css +0 -0
  76. /package/dist/components/{lists → list}/src/setup.d.ts +0 -0
  77. /package/dist/components/{lists → list}/src/util.cjs +0 -0
  78. /package/dist/components/{lists → list}/src/util.d.ts +0 -0
  79. /package/dist/components/{lists → list}/src/util.js +0 -0
  80. /package/dist/components/{lists → tables}/common/img.cjs +0 -0
  81. /package/dist/components/{lists → tables}/common/img.js +0 -0
  82. /package/dist/components/{lists → tables}/common/img2.cjs +0 -0
  83. /package/dist/components/{lists → tables}/common/img2.js +0 -0
  84. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  85. /package/dist/css/{cascader-panel.css → keep-com.css} +0 -0
@@ -70,6 +70,7 @@ const useInit = (props2, emit, refTable, isEl) => {
70
70
  const pagconfig = ref(mpagconfig);
71
71
  const paginat = reactive({
72
72
  front: false,
73
+ scroll: false,
73
74
  current: 1,
74
75
  pageSize: mpagconfig.pageSize,
75
76
  order: "",
@@ -79,6 +80,7 @@ const useInit = (props2, emit, refTable, isEl) => {
79
80
  total: 0,
80
81
  list: [],
81
82
  front: false,
83
+ scroll: false,
82
84
  current: 1,
83
85
  pageSize: mpagconfig.pageSize,
84
86
  order: "",
@@ -167,6 +169,7 @@ const useInit = (props2, emit, refTable, isEl) => {
167
169
  }
168
170
  const pagin = config.paginat ?? {};
169
171
  paginat.front = pagin.front || false;
172
+ paginat.scroll = pagin.scroll || false;
170
173
  paginat.pageSize = pagin.size || mpagconfig.pageSize;
171
174
  pagconfig.value = Object.assign({}, mpagconfig, pagin.config || {});
172
175
  tableConfig.value = config;
@@ -285,9 +288,9 @@ const useInit = (props2, emit, refTable, isEl) => {
285
288
  }
286
289
  function toggleCrossPage() {
287
290
  var _a2;
288
- const datas = data.list;
289
291
  const cross = (_a2 = tableConfig.value.config) == null ? void 0 : _a2.crossPage;
290
- if (cross) {
292
+ if (cross && !paginat.scroll) {
293
+ const datas = data.list;
291
294
  const vs = getCrossPageValue();
292
295
  if (typeof cross == "string") {
293
296
  const iss = vs.map((o) => o[cross]);
@@ -314,7 +317,7 @@ const useInit = (props2, emit, refTable, isEl) => {
314
317
  }
315
318
  function getSelectionValue(arr, i) {
316
319
  var _a2;
317
- if ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.crossPage) {
320
+ if (((_a2 = tableConfig.value.config) == null ? void 0 : _a2.crossPage) && !paginat.scroll) {
318
321
  return getCrossPageValue(arr, i);
319
322
  } else {
320
323
  return arr;
@@ -330,13 +333,13 @@ const useInit = (props2, emit, refTable, isEl) => {
330
333
  emit("selection", getSelectionValue(arr, paginat.current));
331
334
  }
332
335
  }
333
- function onRowClick(row, obj) {
336
+ function onRowClick(row) {
334
337
  var _a2, _b2, _c, _d;
335
338
  if (!((_a2 = tableConfig.value.config) == null ? void 0 : _a2.noRowSelect)) {
336
339
  const selectable = (_b2 = tableConfig.value.config) == null ? void 0 : _b2.selectable;
337
340
  if (selectable) {
338
- const index = data.list.findIndex((obj2) => {
339
- obj2 === row;
341
+ const index = data.list.findIndex((obj) => {
342
+ obj === row;
340
343
  });
341
344
  if (selectable(row, index)) {
342
345
  if ((_c = tableConfig.value.config) == null ? void 0 : _c.isradio) {
@@ -524,7 +527,11 @@ const useInit = (props2, emit, refTable, isEl) => {
524
527
  if (((_a3 = tableConfig.value.paginat) == null ? void 0 : _a3.is) && dlist.length > paginat.pageSize) {
525
528
  dlist = dlist.slice(0, paginat.pageSize);
526
529
  }
527
- data.list = defaultSort(dlist);
530
+ if (paginat.current != 1 && paginat.scroll) {
531
+ data.list.push(...dlist);
532
+ } else {
533
+ data.list = defaultSort(dlist);
534
+ }
528
535
  data.total = (list == null ? void 0 : list.total) || dlist.length;
529
536
  toggleCrossPage();
530
537
  loading.value = false;
@@ -578,6 +585,14 @@ const useInit = (props2, emit, refTable, isEl) => {
578
585
  var _a2;
579
586
  return ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.height) ?? "auto";
580
587
  });
588
+ const onScroll = () => {
589
+ if (paginat.scroll) {
590
+ if (data.total && data.pageSize * data.current < data.total) {
591
+ paginat.current++;
592
+ getData();
593
+ }
594
+ }
595
+ };
581
596
  return {
582
597
  height,
583
598
  tableConfig,
@@ -589,6 +604,7 @@ const useInit = (props2, emit, refTable, isEl) => {
589
604
  clean,
590
605
  empty,
591
606
  loading,
607
+ onScroll,
592
608
  onSortChange,
593
609
  onListEvents,
594
610
  onSelect,
@@ -26,8 +26,5 @@
26
26
  }
27
27
  .tables-table.is-absolute {
28
28
  position: absolute;
29
- top: 0;
30
- right: 0;
31
- bottom: 0;
32
- left: 0;
29
+ inset: 0;
33
30
  }
@@ -12,10 +12,7 @@ $tables: 'tables';
12
12
  &-table {
13
13
  &.#{is('absolute')} {
14
14
  position: absolute;
15
- top: 0;
16
- right: 0;
17
- bottom: 0;
18
- left: 0;
15
+ inset: 0;
19
16
  }
20
17
  // flex: 1;
21
18
  // width: 100%;
@@ -26,10 +26,7 @@
26
26
  }
27
27
  .tables-table.is-absolute {
28
28
  position: absolute;
29
- top: 0;
30
- right: 0;
31
- bottom: 0;
32
- left: 0;
29
+ inset: 0;
33
30
  }
34
31
 
35
32
  .paging {
@@ -401,97 +401,97 @@
401
401
  height: 100%;
402
402
  }
403
403
 
404
- .lists-div .lists-table {
404
+ .menus .menu-li-item {
405
+ display: flex;
406
+ align-items: center;
407
+ }
408
+ .menus .menu-li-icon {
409
+ margin-right: 10px;
410
+ }
411
+
412
+ .list-div .list-table {
405
413
  width: 100%;
406
414
  height: 100%;
407
415
  }
408
- .lists-div .lists-table td {
416
+ .list-div .list-table td {
409
417
  text-align: left;
410
418
  }
411
- .lists-div .lists-table th {
419
+ .list-div .list-table th {
412
420
  font-weight: initial;
413
421
  }
414
- .lists-div .lists-table .is-whole .lists-table-auto {
422
+ .list-div .list-table .is-whole .list-table-auto {
415
423
  width: 100%;
416
424
  }
417
- .lists-div .lists-table .is-whole .lists-table-value {
425
+ .list-div .list-table .is-whole .list-table-value {
418
426
  width: 100%;
419
427
  display: block;
420
428
  }
421
- .lists-div .lists-table .lists-table-td,
422
- .lists-div .lists-table .lists-table-th {
429
+ .list-div .list-table .list-table-td,
430
+ .list-div .list-table .list-table-th {
423
431
  padding: 6px;
424
432
  }
425
- .lists-div .lists-table .lists-table-auto {
433
+ .list-div .list-table .list-table-auto {
426
434
  display: inline-flex;
427
435
  align-items: center;
428
436
  }
429
- .lists-div .lists-table .lists-table-auto .lists-table-label {
437
+ .list-div .list-table .list-table-auto .list-table-label {
430
438
  white-space: nowrap;
431
439
  }
432
- .lists-div .lists-table .lists-table-th {
440
+ .list-div .list-table .list-table-th {
433
441
  text-align: left;
434
442
  }
435
- .lists-div .lists-table.right .lists-table-th {
443
+ .list-div .list-table.right .list-table-th {
436
444
  text-align: right;
437
445
  }
438
- .lists-div .lists-table.center .lists-table-th {
446
+ .list-div .list-table.center .list-table-th {
439
447
  text-align: center;
440
448
  }
441
- .lists-div .lists-table.auto .lists-table-th {
449
+ .list-div .list-table.auto .list-table-th {
442
450
  padding-right: 0;
443
451
  }
444
- .lists-div .lists-table.top .lists-table-th {
452
+ .list-div .list-table.top .list-table-th {
445
453
  padding-bottom: 0;
446
454
  }
447
- .lists-div .lists-table.is-aliquots {
455
+ .list-div .list-table.is-aliquots {
448
456
  table-layout: fixed;
449
457
  }
450
- .lists-div .lists-table.is-border {
451
- border-right: 1px solid var(--lists-border-color);
452
- border-top: 1px solid var(--lists-border-color);
453
- border-bottom: 1px solid var(--lists-border-color);
458
+ .list-div .list-table.is-border {
459
+ border-right: 1px solid var(--list-border-color);
460
+ border-top: 1px solid var(--list-border-color);
461
+ border-bottom: 1px solid var(--list-border-color);
454
462
  }
455
- .lists-div .lists-table.is-border > tr > td {
456
- border-bottom: 1px solid var(--lists-border-color);
457
- border-left: 1px solid var(--lists-border-color);
463
+ .list-div .list-table.is-border > tr > td {
464
+ border-bottom: 1px solid var(--list-border-color);
465
+ border-left: 1px solid var(--list-border-color);
458
466
  }
459
- .lists-div .lists-table.is-border > tr > td:last-child {
460
- border-right: 1px solid var(--lists-border-color);
467
+ .list-div .list-table.is-border > tr > td:last-child {
468
+ border-right: 1px solid var(--list-border-color);
461
469
  }
462
- .lists-div .lists-table.is-border > tr > th {
463
- border-left: 1px solid var(--lists-border-color);
464
- border-bottom: 1px solid var(--lists-border-color);
470
+ .list-div .list-table.is-border > tr > th {
471
+ border-left: 1px solid var(--list-border-color);
472
+ border-bottom: 1px solid var(--list-border-color);
465
473
  }
466
- .lists-div .lists-table.is-border > tr > th:last-child {
467
- border-right: 1px solid var(--lists-border-color);
474
+ .list-div .list-table.is-border > tr > th:last-child {
475
+ border-right: 1px solid var(--list-border-color);
468
476
  }
469
- .lists-div .lists-table.is-border > tr:last-child > td {
477
+ .list-div .list-table.is-border > tr:last-child > td {
470
478
  border-bottom: 0;
471
479
  }
472
- .lists-div .lists-table.is-border > tr:last-child > th {
480
+ .list-div .list-table.is-border > tr:last-child > th {
473
481
  border-bottom: 0;
474
482
  }
475
- .lists-div .lists-table.is-border.top > tr > th {
483
+ .list-div .list-table.is-border.top > tr > th {
476
484
  border-bottom: 0;
477
485
  }
478
- .lists-div .lists-table .lists-com {
486
+ .list-div .list-table .list-com {
479
487
  display: flex;
480
488
  align-items: center;
481
489
  }
482
- .lists-div .lists-table .lists-com-img {
490
+ .list-div .list-table .list-com-img {
483
491
  width: 50px;
484
492
  height: 50px;
485
493
  }
486
494
 
487
- .menus .menu-li-item {
488
- display: flex;
489
- align-items: center;
490
- }
491
- .menus .menu-li-icon {
492
- margin-right: 10px;
493
- }
494
-
495
495
  .tables {
496
496
  width: 100%;
497
497
  min-height: 100px;
@@ -506,10 +506,7 @@
506
506
  }
507
507
  .tables-table.is-absolute {
508
508
  position: absolute;
509
- top: 0;
510
- right: 0;
511
- bottom: 0;
512
- left: 0;
509
+ inset: 0;
513
510
  }
514
511
 
515
512
  .paging {
@@ -892,6 +889,63 @@
892
889
  height: 100%;
893
890
  }
894
891
 
892
+ .lists {
893
+ width: 100%;
894
+ min-height: 100px;
895
+ position: relative;
896
+ flex: 1;
897
+ display: flex;
898
+ flex-direction: column;
899
+ background-color: #eee;
900
+ }
901
+ .lists-list {
902
+ padding: 0 var(--lists-interval);
903
+ }
904
+ .lists-list.is-absolute {
905
+ position: absolute;
906
+ inset: 0;
907
+ overflow-y: auto;
908
+ }
909
+ .lists-list--column .lists-list-item {
910
+ display: inline-block;
911
+ }
912
+ .lists-list-item {
913
+ background-color: #fff;
914
+ margin: 0 var(--lists-interval);
915
+ margin-top: calc(var(--lists-interval) * 2);
916
+ }
917
+ .lists-list-item:last-child {
918
+ margin-bottom: calc(var(--lists-interval) * 2);
919
+ }
920
+ .lists-list-item.is-active {
921
+ background-color: rgb(250, 235, 215);
922
+ }
923
+ .lists-list-item.is-selected {
924
+ background-color: rgb(215, 250, 224);
925
+ }
926
+ .lists-list-item .el-card {
927
+ background-color: transparent;
928
+ }
929
+
930
+ .listsp {
931
+ width: 100%;
932
+ height: var(--listsp-height);
933
+ display: flex;
934
+ flex-direction: column;
935
+ }
936
+ .listsp-main {
937
+ display: flex;
938
+ flex-direction: column;
939
+ flex: 1;
940
+ width: 100%;
941
+ }
942
+ .listsp-paginat {
943
+ overflow: hidden;
944
+ }
945
+ .listsp-paginat .el-pagination {
946
+ justify-content: flex-end;
947
+ }
948
+
895
949
  .tabless {
896
950
  width: 100%;
897
951
  height: var(--tabless-height);
@@ -0,0 +1,96 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #fff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ }
14
+
15
+ .list-div .list-table {
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+ .list-div .list-table td {
20
+ text-align: left;
21
+ }
22
+ .list-div .list-table th {
23
+ font-weight: initial;
24
+ }
25
+ .list-div .list-table .is-whole .list-table-auto {
26
+ width: 100%;
27
+ }
28
+ .list-div .list-table .is-whole .list-table-value {
29
+ width: 100%;
30
+ display: block;
31
+ }
32
+ .list-div .list-table .list-table-td,
33
+ .list-div .list-table .list-table-th {
34
+ padding: 6px;
35
+ }
36
+ .list-div .list-table .list-table-auto {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ }
40
+ .list-div .list-table .list-table-auto .list-table-label {
41
+ white-space: nowrap;
42
+ }
43
+ .list-div .list-table .list-table-th {
44
+ text-align: left;
45
+ }
46
+ .list-div .list-table.right .list-table-th {
47
+ text-align: right;
48
+ }
49
+ .list-div .list-table.center .list-table-th {
50
+ text-align: center;
51
+ }
52
+ .list-div .list-table.auto .list-table-th {
53
+ padding-right: 0;
54
+ }
55
+ .list-div .list-table.top .list-table-th {
56
+ padding-bottom: 0;
57
+ }
58
+ .list-div .list-table.is-aliquots {
59
+ table-layout: fixed;
60
+ }
61
+ .list-div .list-table.is-border {
62
+ border-right: 1px solid var(--list-border-color);
63
+ border-top: 1px solid var(--list-border-color);
64
+ border-bottom: 1px solid var(--list-border-color);
65
+ }
66
+ .list-div .list-table.is-border > tr > td {
67
+ border-bottom: 1px solid var(--list-border-color);
68
+ border-left: 1px solid var(--list-border-color);
69
+ }
70
+ .list-div .list-table.is-border > tr > td:last-child {
71
+ border-right: 1px solid var(--list-border-color);
72
+ }
73
+ .list-div .list-table.is-border > tr > th {
74
+ border-left: 1px solid var(--list-border-color);
75
+ border-bottom: 1px solid var(--list-border-color);
76
+ }
77
+ .list-div .list-table.is-border > tr > th:last-child {
78
+ border-right: 1px solid var(--list-border-color);
79
+ }
80
+ .list-div .list-table.is-border > tr:last-child > td {
81
+ border-bottom: 0;
82
+ }
83
+ .list-div .list-table.is-border > tr:last-child > th {
84
+ border-bottom: 0;
85
+ }
86
+ .list-div .list-table.is-border.top > tr > th {
87
+ border-bottom: 0;
88
+ }
89
+ .list-div .list-table .list-com {
90
+ display: flex;
91
+ align-items: center;
92
+ }
93
+ .list-div .list-table .list-com-img {
94
+ width: 50px;
95
+ height: 50px;
96
+ }
@@ -12,85 +12,40 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
- .lists-div .lists-table {
15
+ .lists {
16
16
  width: 100%;
17
- height: 100%;
18
- }
19
- .lists-div .lists-table td {
20
- text-align: left;
21
- }
22
- .lists-div .lists-table th {
23
- font-weight: initial;
24
- }
25
- .lists-div .lists-table .is-whole .lists-table-auto {
26
- width: 100%;
27
- }
28
- .lists-div .lists-table .is-whole .lists-table-value {
29
- width: 100%;
30
- display: block;
31
- }
32
- .lists-div .lists-table .lists-table-td,
33
- .lists-div .lists-table .lists-table-th {
34
- padding: 6px;
35
- }
36
- .lists-div .lists-table .lists-table-auto {
37
- display: inline-flex;
38
- align-items: center;
39
- }
40
- .lists-div .lists-table .lists-table-auto .lists-table-label {
41
- white-space: nowrap;
42
- }
43
- .lists-div .lists-table .lists-table-th {
44
- text-align: left;
45
- }
46
- .lists-div .lists-table.right .lists-table-th {
47
- text-align: right;
48
- }
49
- .lists-div .lists-table.center .lists-table-th {
50
- text-align: center;
51
- }
52
- .lists-div .lists-table.auto .lists-table-th {
53
- padding-right: 0;
54
- }
55
- .lists-div .lists-table.top .lists-table-th {
56
- padding-bottom: 0;
57
- }
58
- .lists-div .lists-table.is-aliquots {
59
- table-layout: fixed;
60
- }
61
- .lists-div .lists-table.is-border {
62
- border-right: 1px solid var(--lists-border-color);
63
- border-top: 1px solid var(--lists-border-color);
64
- border-bottom: 1px solid var(--lists-border-color);
65
- }
66
- .lists-div .lists-table.is-border > tr > td {
67
- border-bottom: 1px solid var(--lists-border-color);
68
- border-left: 1px solid var(--lists-border-color);
17
+ min-height: 100px;
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ background-color: #eee;
69
23
  }
70
- .lists-div .lists-table.is-border > tr > td:last-child {
71
- border-right: 1px solid var(--lists-border-color);
24
+ .lists-list {
25
+ padding: 0 var(--lists-interval);
72
26
  }
73
- .lists-div .lists-table.is-border > tr > th {
74
- border-left: 1px solid var(--lists-border-color);
75
- border-bottom: 1px solid var(--lists-border-color);
27
+ .lists-list.is-absolute {
28
+ position: absolute;
29
+ inset: 0;
30
+ overflow-y: auto;
76
31
  }
77
- .lists-div .lists-table.is-border > tr > th:last-child {
78
- border-right: 1px solid var(--lists-border-color);
32
+ .lists-list--column .lists-list-item {
33
+ display: inline-block;
79
34
  }
80
- .lists-div .lists-table.is-border > tr:last-child > td {
81
- border-bottom: 0;
35
+ .lists-list-item {
36
+ background-color: #fff;
37
+ margin: 0 var(--lists-interval);
38
+ margin-top: calc(var(--lists-interval) * 2);
82
39
  }
83
- .lists-div .lists-table.is-border > tr:last-child > th {
84
- border-bottom: 0;
40
+ .lists-list-item:last-child {
41
+ margin-bottom: calc(var(--lists-interval) * 2);
85
42
  }
86
- .lists-div .lists-table.is-border.top > tr > th {
87
- border-bottom: 0;
43
+ .lists-list-item.is-active {
44
+ background-color: rgb(250, 235, 215);
88
45
  }
89
- .lists-div .lists-table .lists-com {
90
- display: flex;
91
- align-items: center;
46
+ .lists-list-item.is-selected {
47
+ background-color: rgb(215, 250, 224);
92
48
  }
93
- .lists-div .lists-table .lists-com-img {
94
- width: 50px;
95
- height: 50px;
49
+ .lists-list-item .el-card {
50
+ background-color: transparent;
96
51
  }
@@ -0,0 +1,86 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #fff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ }
14
+
15
+ .lists {
16
+ width: 100%;
17
+ min-height: 100px;
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ background-color: #eee;
23
+ }
24
+ .lists-list {
25
+ padding: 0 var(--lists-interval);
26
+ }
27
+ .lists-list.is-absolute {
28
+ position: absolute;
29
+ inset: 0;
30
+ overflow-y: auto;
31
+ }
32
+ .lists-list--column .lists-list-item {
33
+ display: inline-block;
34
+ }
35
+ .lists-list-item {
36
+ background-color: #fff;
37
+ margin: 0 var(--lists-interval);
38
+ margin-top: calc(var(--lists-interval) * 2);
39
+ }
40
+ .lists-list-item:last-child {
41
+ margin-bottom: calc(var(--lists-interval) * 2);
42
+ }
43
+ .lists-list-item.is-active {
44
+ background-color: rgb(250, 235, 215);
45
+ }
46
+ .lists-list-item.is-selected {
47
+ background-color: rgb(215, 250, 224);
48
+ }
49
+ .lists-list-item .el-card {
50
+ background-color: transparent;
51
+ }
52
+
53
+ .paging {
54
+ padding: 10px;
55
+ }
56
+ .paging-slot {
57
+ padding-left: 10px;
58
+ font-size: 14px;
59
+ font-weight: 400;
60
+ color: #9b9b9b;
61
+ white-space: pre-wrap;
62
+ }
63
+ .paging .el-pagination__total {
64
+ font-size: 14px;
65
+ font-weight: 400;
66
+ color: #9b9b9b;
67
+ }
68
+
69
+ .listsp {
70
+ width: 100%;
71
+ height: var(--listsp-height);
72
+ display: flex;
73
+ flex-direction: column;
74
+ }
75
+ .listsp-main {
76
+ display: flex;
77
+ flex-direction: column;
78
+ flex: 1;
79
+ width: 100%;
80
+ }
81
+ .listsp-paginat {
82
+ overflow: hidden;
83
+ }
84
+ .listsp-paginat .el-pagination {
85
+ justify-content: flex-end;
86
+ }