@fangzhongya/fang-ui 0.0.54 → 0.0.56
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/dist/components/common/use.cjs +2 -0
- package/dist/components/common/use.js +2 -0
- package/dist/components/index.cjs +84 -80
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/list/index.cjs +9 -0
- package/dist/components/list/index.css +96 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/index.js +9 -0
- package/dist/components/list/src/data.cjs +97 -0
- package/dist/components/list/src/data.d.ts +100 -0
- package/dist/components/list/src/data.js +97 -0
- package/dist/components/list/src/index.cjs +4 -0
- package/dist/components/list/src/index.js +4 -0
- package/dist/components/list/src/index2.cjs +337 -0
- package/dist/components/list/src/index2.js +337 -0
- package/dist/components/lists/index.cjs +2 -2
- package/dist/components/lists/index.css +27 -72
- package/dist/components/lists/src/data.cjs +80 -49
- package/dist/components/lists/src/data.d.ts +103 -48
- package/dist/components/lists/src/data.js +81 -50
- package/dist/components/lists/src/index.cjs +2 -2
- package/dist/components/lists/src/index2.cjs +237 -303
- package/dist/components/lists/src/index2.js +237 -303
- package/dist/components/listsp/index.cjs +9 -0
- package/dist/components/listsp/index.css +86 -0
- package/dist/components/listsp/index.d.ts +2 -0
- package/dist/components/listsp/index.js +9 -0
- package/dist/components/listsp/src/data.d.ts +14 -0
- package/dist/components/listsp/src/index.cjs +4 -0
- package/dist/components/listsp/src/index.js +4 -0
- package/dist/components/listsp/src/index2.cjs +98 -0
- package/dist/components/listsp/src/index2.js +98 -0
- package/dist/components/page/index.css +35 -38
- package/dist/components/page/index.scss +1 -1
- package/dist/components/page/src/index2.cjs +2 -2
- package/dist/components/page/src/index2.js +2 -2
- package/dist/components/page/style/index2.scss +1 -1
- package/dist/components/tables/common/pagin.cjs +33 -15
- package/dist/components/tables/common/pagin.d.ts +14 -3
- package/dist/components/tables/common/pagin.js +33 -15
- package/dist/components/tables/index.css +1 -4
- package/dist/components/tablesp/index.css +1 -4
- package/dist/css/index.css +122 -46
- package/dist/css/list.css +96 -0
- package/dist/css/lists.css +27 -72
- package/dist/css/listsp.css +86 -0
- package/dist/css/page.css +35 -38
- package/dist/css/tables.css +1 -4
- package/dist/css/tablesp.css +1 -4
- package/dist/directives/scroll/index.cjs +36 -11
- package/dist/directives/scroll/index.js +36 -11
- package/dist/icons/index.css +36 -36
- package/dist/icons/index.json +15 -15
- package/dist/index.cjs +102 -98
- package/dist/index.css +122 -46
- package/dist/index.js +5 -1
- package/dist/type.d.ts +11 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/components/{cascader-panel → keep-com}/index.css +0 -0
- /package/dist/components/{lists → list}/src/setup.d.ts +0 -0
- /package/dist/components/{lists → list}/src/util.cjs +0 -0
- /package/dist/components/{lists → list}/src/util.d.ts +0 -0
- /package/dist/components/{lists → list}/src/util.js +0 -0
- /package/dist/components/{lists → tables}/common/img.cjs +0 -0
- /package/dist/components/{lists → tables}/common/img.js +0 -0
- /package/dist/components/{lists → tables}/common/img2.cjs +0 -0
- /package/dist/components/{lists → tables}/common/img2.js +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
- /package/dist/css/{cascader-panel.css → keep-com.css} +0 -0
|
@@ -69,7 +69,10 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
69
69
|
};
|
|
70
70
|
const pagconfig = ref(mpagconfig);
|
|
71
71
|
const paginat = reactive({
|
|
72
|
+
is: false,
|
|
73
|
+
cross: false,
|
|
72
74
|
front: false,
|
|
75
|
+
scroll: false,
|
|
73
76
|
current: 1,
|
|
74
77
|
pageSize: mpagconfig.pageSize,
|
|
75
78
|
order: "",
|
|
@@ -78,7 +81,10 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
78
81
|
const data = reactive({
|
|
79
82
|
total: 0,
|
|
80
83
|
list: [],
|
|
84
|
+
is: false,
|
|
85
|
+
cross: false,
|
|
81
86
|
front: false,
|
|
87
|
+
scroll: false,
|
|
82
88
|
current: 1,
|
|
83
89
|
pageSize: mpagconfig.pageSize,
|
|
84
90
|
order: "",
|
|
@@ -166,7 +172,10 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
166
172
|
paginat.prop = v.prop;
|
|
167
173
|
}
|
|
168
174
|
const pagin = config.paginat ?? {};
|
|
175
|
+
paginat.is = pagin.is || false;
|
|
169
176
|
paginat.front = pagin.front || false;
|
|
177
|
+
paginat.scroll = pagin.scroll || false;
|
|
178
|
+
paginat.cross = pagin.cross || false;
|
|
170
179
|
paginat.pageSize = pagin.size || mpagconfig.pageSize;
|
|
171
180
|
pagconfig.value = Object.assign({}, mpagconfig, pagin.config || {});
|
|
172
181
|
tableConfig.value = config;
|
|
@@ -208,8 +217,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
208
217
|
console.log("crossPageData", crossPageData);
|
|
209
218
|
}
|
|
210
219
|
function getCrossPageValue(sarr, index) {
|
|
211
|
-
|
|
212
|
-
const cross = (_a2 = tableConfig.value.config) == null ? void 0 : _a2.crossPage;
|
|
220
|
+
const cross = paginat.cross;
|
|
213
221
|
if (cross) {
|
|
214
222
|
if (typeof cross === "string") {
|
|
215
223
|
const sv = /* @__PURE__ */ new Set();
|
|
@@ -284,10 +292,9 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
284
292
|
}
|
|
285
293
|
}
|
|
286
294
|
function toggleCrossPage() {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
if (cross) {
|
|
295
|
+
const cross = paginat.cross;
|
|
296
|
+
if (paginat.is && cross && !paginat.scroll) {
|
|
297
|
+
const datas = data.list;
|
|
291
298
|
const vs = getCrossPageValue();
|
|
292
299
|
if (typeof cross == "string") {
|
|
293
300
|
const iss = vs.map((o) => o[cross]);
|
|
@@ -313,8 +320,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
313
320
|
}
|
|
314
321
|
}
|
|
315
322
|
function getSelectionValue(arr, i) {
|
|
316
|
-
|
|
317
|
-
if ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.crossPage) {
|
|
323
|
+
if (paginat.is && paginat.cross && !paginat.scroll) {
|
|
318
324
|
return getCrossPageValue(arr, i);
|
|
319
325
|
} else {
|
|
320
326
|
return arr;
|
|
@@ -330,13 +336,13 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
330
336
|
emit("selection", getSelectionValue(arr, paginat.current));
|
|
331
337
|
}
|
|
332
338
|
}
|
|
333
|
-
function onRowClick(row
|
|
339
|
+
function onRowClick(row) {
|
|
334
340
|
var _a2, _b2, _c, _d;
|
|
335
341
|
if (!((_a2 = tableConfig.value.config) == null ? void 0 : _a2.noRowSelect)) {
|
|
336
342
|
const selectable = (_b2 = tableConfig.value.config) == null ? void 0 : _b2.selectable;
|
|
337
343
|
if (selectable) {
|
|
338
|
-
const index = data.list.findIndex((
|
|
339
|
-
|
|
344
|
+
const index = data.list.findIndex((obj) => {
|
|
345
|
+
obj === row;
|
|
340
346
|
});
|
|
341
347
|
if (selectable(row, index)) {
|
|
342
348
|
if ((_c = tableConfig.value.config) == null ? void 0 : _c.isradio) {
|
|
@@ -430,9 +436,8 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
430
436
|
getData();
|
|
431
437
|
}
|
|
432
438
|
function onCurrentChange() {
|
|
433
|
-
var _a2;
|
|
434
439
|
console.log("onCurrentChange");
|
|
435
|
-
if (
|
|
440
|
+
if (paginat.cross) {
|
|
436
441
|
setCrossPage();
|
|
437
442
|
} else {
|
|
438
443
|
clean();
|
|
@@ -470,7 +475,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
470
475
|
}
|
|
471
476
|
function getFrontPaginatValue(obj) {
|
|
472
477
|
var _a2;
|
|
473
|
-
if (paginat.front) {
|
|
478
|
+
if (paginat.is && paginat.front) {
|
|
474
479
|
const list = obj.value;
|
|
475
480
|
const total = list.length;
|
|
476
481
|
const c = paginat.current;
|
|
@@ -524,7 +529,11 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
524
529
|
if (((_a3 = tableConfig.value.paginat) == null ? void 0 : _a3.is) && dlist.length > paginat.pageSize) {
|
|
525
530
|
dlist = dlist.slice(0, paginat.pageSize);
|
|
526
531
|
}
|
|
527
|
-
|
|
532
|
+
if (paginat.current != 1 && paginat.scroll) {
|
|
533
|
+
data.list.push(...dlist);
|
|
534
|
+
} else {
|
|
535
|
+
data.list = defaultSort(dlist);
|
|
536
|
+
}
|
|
528
537
|
data.total = (list == null ? void 0 : list.total) || dlist.length;
|
|
529
538
|
toggleCrossPage();
|
|
530
539
|
loading.value = false;
|
|
@@ -578,6 +587,14 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
578
587
|
var _a2;
|
|
579
588
|
return ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.height) ?? "auto";
|
|
580
589
|
});
|
|
590
|
+
const onScroll = () => {
|
|
591
|
+
if (paginat.is && paginat.scroll) {
|
|
592
|
+
if (data.total && data.pageSize * data.current < data.total) {
|
|
593
|
+
paginat.current++;
|
|
594
|
+
getData();
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
};
|
|
581
598
|
return {
|
|
582
599
|
height,
|
|
583
600
|
tableConfig,
|
|
@@ -589,6 +606,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
589
606
|
clean,
|
|
590
607
|
empty,
|
|
591
608
|
loading,
|
|
609
|
+
onScroll,
|
|
592
610
|
onSortChange,
|
|
593
611
|
onListEvents,
|
|
594
612
|
onSelect,
|
package/dist/css/index.css
CHANGED
|
@@ -401,97 +401,97 @@
|
|
|
401
401
|
height: 100%;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
.
|
|
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
|
-
.
|
|
416
|
+
.list-div .list-table td {
|
|
409
417
|
text-align: left;
|
|
410
418
|
}
|
|
411
|
-
.
|
|
419
|
+
.list-div .list-table th {
|
|
412
420
|
font-weight: initial;
|
|
413
421
|
}
|
|
414
|
-
.
|
|
422
|
+
.list-div .list-table .is-whole .list-table-auto {
|
|
415
423
|
width: 100%;
|
|
416
424
|
}
|
|
417
|
-
.
|
|
425
|
+
.list-div .list-table .is-whole .list-table-value {
|
|
418
426
|
width: 100%;
|
|
419
427
|
display: block;
|
|
420
428
|
}
|
|
421
|
-
.
|
|
422
|
-
.
|
|
429
|
+
.list-div .list-table .list-table-td,
|
|
430
|
+
.list-div .list-table .list-table-th {
|
|
423
431
|
padding: 6px;
|
|
424
432
|
}
|
|
425
|
-
.
|
|
433
|
+
.list-div .list-table .list-table-auto {
|
|
426
434
|
display: inline-flex;
|
|
427
435
|
align-items: center;
|
|
428
436
|
}
|
|
429
|
-
.
|
|
437
|
+
.list-div .list-table .list-table-auto .list-table-label {
|
|
430
438
|
white-space: nowrap;
|
|
431
439
|
}
|
|
432
|
-
.
|
|
440
|
+
.list-div .list-table .list-table-th {
|
|
433
441
|
text-align: left;
|
|
434
442
|
}
|
|
435
|
-
.
|
|
443
|
+
.list-div .list-table.right .list-table-th {
|
|
436
444
|
text-align: right;
|
|
437
445
|
}
|
|
438
|
-
.
|
|
446
|
+
.list-div .list-table.center .list-table-th {
|
|
439
447
|
text-align: center;
|
|
440
448
|
}
|
|
441
|
-
.
|
|
449
|
+
.list-div .list-table.auto .list-table-th {
|
|
442
450
|
padding-right: 0;
|
|
443
451
|
}
|
|
444
|
-
.
|
|
452
|
+
.list-div .list-table.top .list-table-th {
|
|
445
453
|
padding-bottom: 0;
|
|
446
454
|
}
|
|
447
|
-
.
|
|
455
|
+
.list-div .list-table.is-aliquots {
|
|
448
456
|
table-layout: fixed;
|
|
449
457
|
}
|
|
450
|
-
.
|
|
451
|
-
border-right: 1px solid var(--
|
|
452
|
-
border-top: 1px solid var(--
|
|
453
|
-
border-bottom: 1px solid var(--
|
|
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
|
-
.
|
|
456
|
-
border-bottom: 1px solid var(--
|
|
457
|
-
border-left: 1px solid var(--
|
|
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
|
-
.
|
|
460
|
-
border-right: 1px solid var(--
|
|
467
|
+
.list-div .list-table.is-border > tr > td:last-child {
|
|
468
|
+
border-right: 1px solid var(--list-border-color);
|
|
461
469
|
}
|
|
462
|
-
.
|
|
463
|
-
border-left: 1px solid var(--
|
|
464
|
-
border-bottom: 1px solid var(--
|
|
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
|
-
.
|
|
467
|
-
border-right: 1px solid var(--
|
|
474
|
+
.list-div .list-table.is-border > tr > th:last-child {
|
|
475
|
+
border-right: 1px solid var(--list-border-color);
|
|
468
476
|
}
|
|
469
|
-
.
|
|
477
|
+
.list-div .list-table.is-border > tr:last-child > td {
|
|
470
478
|
border-bottom: 0;
|
|
471
479
|
}
|
|
472
|
-
.
|
|
480
|
+
.list-div .list-table.is-border > tr:last-child > th {
|
|
473
481
|
border-bottom: 0;
|
|
474
482
|
}
|
|
475
|
-
.
|
|
483
|
+
.list-div .list-table.is-border.top > tr > th {
|
|
476
484
|
border-bottom: 0;
|
|
477
485
|
}
|
|
478
|
-
.
|
|
486
|
+
.list-div .list-table .list-com {
|
|
479
487
|
display: flex;
|
|
480
488
|
align-items: center;
|
|
481
489
|
}
|
|
482
|
-
.
|
|
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
|
-
|
|
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);
|
|
@@ -992,4 +1046,26 @@
|
|
|
992
1046
|
left: 0;
|
|
993
1047
|
z-index: 1;
|
|
994
1048
|
opacity: 0;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.tablesvp {
|
|
1052
|
+
width: 100%;
|
|
1053
|
+
height: var(--tablesvp-height);
|
|
1054
|
+
display: flex;
|
|
1055
|
+
flex-direction: column;
|
|
1056
|
+
}
|
|
1057
|
+
.tablesvp-main {
|
|
1058
|
+
display: flex;
|
|
1059
|
+
flex-direction: column;
|
|
1060
|
+
flex: 1;
|
|
1061
|
+
width: 100%;
|
|
1062
|
+
}
|
|
1063
|
+
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1064
|
+
display: none;
|
|
1065
|
+
}
|
|
1066
|
+
.tablesvp-paginat {
|
|
1067
|
+
overflow: hidden;
|
|
1068
|
+
}
|
|
1069
|
+
.tablesvp-paginat .el-pagination {
|
|
1070
|
+
justify-content: flex-end;
|
|
995
1071
|
}
|
|
@@ -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
|
+
}
|
package/dist/css/lists.css
CHANGED
|
@@ -12,85 +12,40 @@
|
|
|
12
12
|
--g-main-bg: var(--bg-color-page);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.lists
|
|
15
|
+
.lists {
|
|
16
16
|
width: 100%;
|
|
17
|
-
height:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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-
|
|
71
|
-
|
|
24
|
+
.lists-list {
|
|
25
|
+
padding: 0 var(--lists-interval);
|
|
72
26
|
}
|
|
73
|
-
.lists-
|
|
74
|
-
|
|
75
|
-
|
|
27
|
+
.lists-list.is-absolute {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
overflow-y: auto;
|
|
76
31
|
}
|
|
77
|
-
.lists-
|
|
78
|
-
|
|
32
|
+
.lists-list--column .lists-list-item {
|
|
33
|
+
display: inline-block;
|
|
79
34
|
}
|
|
80
|
-
.lists-
|
|
81
|
-
|
|
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-
|
|
84
|
-
|
|
40
|
+
.lists-list-item:last-child {
|
|
41
|
+
margin-bottom: calc(var(--lists-interval) * 2);
|
|
85
42
|
}
|
|
86
|
-
.lists-
|
|
87
|
-
|
|
43
|
+
.lists-list-item.is-active {
|
|
44
|
+
background-color: rgb(250, 235, 215);
|
|
88
45
|
}
|
|
89
|
-
.lists-
|
|
90
|
-
|
|
91
|
-
align-items: center;
|
|
46
|
+
.lists-list-item.is-selected {
|
|
47
|
+
background-color: rgb(215, 250, 224);
|
|
92
48
|
}
|
|
93
|
-
.lists-
|
|
94
|
-
|
|
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
|
+
}
|