@fangzhongya/fang-ui 0.0.52 → 0.0.54
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/index.scss +3 -1
- package/dist/components/index2.scss +3 -1
- package/dist/components/list/index.scss +110 -0
- package/dist/components/lists/index.scss +30 -98
- package/dist/components/listsp/index.scss +23 -0
- package/dist/components/listsp/style/index2.scss +4 -0
- package/dist/components/scss/function.scss +1 -1
- package/dist/components/tables/common/pagin.cjs +35 -18
- package/dist/components/tables/common/pagin.d.ts +4 -0
- package/dist/components/tables/common/pagin.js +35 -18
- package/dist/components/tables/index.scss +1 -4
- package/dist/expand/{chunk-LSKJOV4K.cjs → chunk-S7R2FI5L.cjs} +6 -2
- package/dist/expand/{chunk-ZS2GF6MH.js → chunk-VCOMWNQB.js} +6 -2
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/icons/index.css +42 -42
- package/dist/icons/index.json +15 -15
- package/dist/type.d.ts +3 -0
- package/package.json +6 -6
- /package/dist/components/{collapse-item → cascader-panel}/index.css +0 -0
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /package/dist/css/{collapse-item.css → cascader-panel.css} +0 -0
- /package/dist/css/{forms-items.css → forms-item.css} +0 -0
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
@use './icon/index.scss' as *;
|
|
62
62
|
@use './iframe/index.scss' as *;
|
|
63
63
|
@use './keep-com/index.scss' as *;
|
|
64
|
-
@use './lists/index.scss' as *;
|
|
65
64
|
@use './menus/index.scss' as *;
|
|
66
65
|
@use './page/index.scss' as *;
|
|
67
66
|
@use './retract/index.scss' as *;
|
|
@@ -78,6 +77,9 @@
|
|
|
78
77
|
@use './selects/index.scss' as *;
|
|
79
78
|
@use './switchs/index.scss' as *;
|
|
80
79
|
@use './text/index.scss' as *;
|
|
80
|
+
@use './list/index.scss' as *;
|
|
81
|
+
@use './lists/index.scss' as *;
|
|
82
|
+
@use './listsp/index.scss' as *;
|
|
81
83
|
@use './paging/index.scss' as *;
|
|
82
84
|
@use './tables/index.scss' as *;
|
|
83
85
|
@use './tablesp/index.scss' as *;
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
@use './icon/style/index2.scss' as *;
|
|
62
62
|
@use './iframe/style/index.scss' as *;
|
|
63
63
|
@use './keep-com/style/index.scss' as *;
|
|
64
|
-
@use './lists/style/index.scss' as *;
|
|
65
64
|
@use './menus/style/index2.scss' as *;
|
|
66
65
|
@use './page/style/index2.scss' as *;
|
|
67
66
|
@use './retract/style/index.scss' as *;
|
|
@@ -78,6 +77,9 @@
|
|
|
78
77
|
@use './selects/style/index2.scss' as *;
|
|
79
78
|
@use './switchs/style/index2.scss' as *;
|
|
80
79
|
@use './text/style/index.scss' as *;
|
|
80
|
+
@use './list/style/index.scss' as *;
|
|
81
|
+
@use './lists/style/index.scss' as *;
|
|
82
|
+
@use './listsp/style/index2.scss' as *;
|
|
81
83
|
@use './paging/style/index2.scss' as *;
|
|
82
84
|
@use './tables/style/index2.scss' as *;
|
|
83
85
|
@use './tablesp/style/index2.scss' as *;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
|
|
3
|
+
$list: 'list';
|
|
4
|
+
@include b($list) {
|
|
5
|
+
&-div {
|
|
6
|
+
.#{z($list, 'table')} {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
td {
|
|
10
|
+
text-align: left;
|
|
11
|
+
}
|
|
12
|
+
th {
|
|
13
|
+
font-weight: initial;
|
|
14
|
+
}
|
|
15
|
+
.is-whole {
|
|
16
|
+
.#{z($list, 'table-auto')} {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
.#{z($list, 'table-value')} {
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.#{z($list, 'table-td')},
|
|
25
|
+
.#{z($list, 'table-th')} {
|
|
26
|
+
padding: 6px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.#{z($list, 'table-auto')} {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
.#{z($list, 'table-label')} {
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.#{z($list, 'table-th')} {
|
|
37
|
+
text-align: left;
|
|
38
|
+
}
|
|
39
|
+
&.right {
|
|
40
|
+
.#{z($list, 'table-th')} {
|
|
41
|
+
text-align: right;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&.center {
|
|
45
|
+
.#{z($list, 'table-th')} {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.auto {
|
|
51
|
+
.#{z($list, 'table-th')} {
|
|
52
|
+
padding-right: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&.top {
|
|
56
|
+
.#{z($list, 'table-th')} {
|
|
57
|
+
padding-bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.is-aliquots {
|
|
62
|
+
table-layout: fixed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.is-border {
|
|
66
|
+
border-right: 1px solid var(vdm('border-color', $list));
|
|
67
|
+
border-top: 1px solid var(vdm('border-color', $list));
|
|
68
|
+
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
69
|
+
& > tr > td {
|
|
70
|
+
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
71
|
+
border-left: 1px solid var(vdm('border-color', $list));
|
|
72
|
+
&:last-child {
|
|
73
|
+
border-right: 1px solid var(vdm('border-color', $list));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
& > tr > th {
|
|
77
|
+
border-left: 1px solid var(vdm('border-color', $list));
|
|
78
|
+
border-bottom: 1px solid var(vdm('border-color', $list));
|
|
79
|
+
&:last-child {
|
|
80
|
+
border-right: 1px solid var(vdm('border-color', $list));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
& > tr {
|
|
84
|
+
&:last-child {
|
|
85
|
+
> td {
|
|
86
|
+
border-bottom: 0;
|
|
87
|
+
}
|
|
88
|
+
> th {
|
|
89
|
+
border-bottom: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&.top {
|
|
94
|
+
& > tr > th {
|
|
95
|
+
border-bottom: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.#{z('list-com')} {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
&-img {
|
|
104
|
+
width: 50px;
|
|
105
|
+
height: 50px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -2,108 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
$lists: 'lists';
|
|
4
4
|
@include b($lists) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.#{z($lists, 'table-td')},
|
|
25
|
-
.#{z($lists, 'table-th')} {
|
|
26
|
-
padding: 6px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.#{z($lists, 'table-auto')} {
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
.#{z($lists, 'table-label')} {
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
.#{z($lists, 'table-th')} {
|
|
37
|
-
text-align: left;
|
|
38
|
-
}
|
|
39
|
-
&.right {
|
|
40
|
-
.#{z($lists, 'table-th')} {
|
|
41
|
-
text-align: right;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
&.center {
|
|
45
|
-
.#{z($lists, 'table-th')} {
|
|
46
|
-
text-align: center;
|
|
47
|
-
}
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 100px;
|
|
7
|
+
position: relative;
|
|
8
|
+
flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
background-color: #eee;
|
|
12
|
+
&-list {
|
|
13
|
+
padding: 0 var(vdm('interval', $lists));
|
|
14
|
+
&.#{is('absolute')} {
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
&--column {
|
|
20
|
+
.#{z($lists, 'list-item')} {
|
|
21
|
+
display: inline-block;
|
|
48
22
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
23
|
+
}
|
|
24
|
+
&-item {
|
|
25
|
+
&:last-child {
|
|
26
|
+
margin-bottom: calc(var(vdm('interval', $lists)) * 2);
|
|
54
27
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
margin: 0 var(vdm('interval', $lists));
|
|
30
|
+
margin-top: calc(var(vdm('interval', $lists)) * 2);
|
|
31
|
+
&.#{is('active')} {
|
|
32
|
+
background-color: rgb(250, 235, 215);
|
|
59
33
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
table-layout: fixed;
|
|
34
|
+
&.#{is('selected')} {
|
|
35
|
+
background-color: rgb(215, 250, 224);
|
|
63
36
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
border-right: 1px solid var(vdm('border-color', $lists));
|
|
67
|
-
border-top: 1px solid var(vdm('border-color', $lists));
|
|
68
|
-
border-bottom: 1px solid var(vdm('border-color', $lists));
|
|
69
|
-
& > tr > td {
|
|
70
|
-
border-bottom: 1px solid var(vdm('border-color', $lists));
|
|
71
|
-
border-left: 1px solid var(vdm('border-color', $lists));
|
|
72
|
-
&:last-child {
|
|
73
|
-
border-right: 1px solid var(vdm('border-color', $lists));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
& > tr > th {
|
|
77
|
-
border-left: 1px solid var(vdm('border-color', $lists));
|
|
78
|
-
border-bottom: 1px solid var(vdm('border-color', $lists));
|
|
79
|
-
&:last-child {
|
|
80
|
-
border-right: 1px solid var(vdm('border-color', $lists));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
& > tr {
|
|
84
|
-
&:last-child {
|
|
85
|
-
> td {
|
|
86
|
-
border-bottom: 0;
|
|
87
|
-
}
|
|
88
|
-
> th {
|
|
89
|
-
border-bottom: 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
&.top {
|
|
94
|
-
& > tr > th {
|
|
95
|
-
border-bottom: 0;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.#{z('lists-com')} {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
&-img {
|
|
104
|
-
width: 50px;
|
|
105
|
-
height: 50px;
|
|
106
|
-
}
|
|
37
|
+
.#{el('card')} {
|
|
38
|
+
background-color: transparent;
|
|
107
39
|
}
|
|
108
40
|
}
|
|
109
41
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
@use '../lists/index.scss' as *;
|
|
3
|
+
@use '../paging/index.scss' as *;
|
|
4
|
+
$listsp: 'listsp';
|
|
5
|
+
@include b($listsp) {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(#{vdm('height', $listsp)});
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
&-main {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
flex: 1;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
&-paginat {
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
.#{e()}pagination {
|
|
20
|
+
justify-content: flex-end;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -29,7 +29,7 @@ $cssname: m();
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
@function el($block, $blockSuffix, $element, $modifier) {
|
|
32
|
+
@function el($block, $blockSuffix: '', $element: '', $modifier: '') {
|
|
33
33
|
$cls: #{e() + $block};
|
|
34
34
|
@if ($blockSuffix != '') {
|
|
35
35
|
$cls: #{$cls + $common-separator + $blockSuffix};
|
|
@@ -71,6 +71,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
71
71
|
};
|
|
72
72
|
const pagconfig = vue.ref(mpagconfig);
|
|
73
73
|
const paginat = vue.reactive({
|
|
74
|
+
front: false,
|
|
74
75
|
current: 1,
|
|
75
76
|
pageSize: mpagconfig.pageSize,
|
|
76
77
|
order: "",
|
|
@@ -79,6 +80,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
79
80
|
const data = vue.reactive({
|
|
80
81
|
total: 0,
|
|
81
82
|
list: [],
|
|
83
|
+
front: false,
|
|
82
84
|
current: 1,
|
|
83
85
|
pageSize: mpagconfig.pageSize,
|
|
84
86
|
order: "",
|
|
@@ -166,6 +168,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
166
168
|
paginat.prop = v.prop;
|
|
167
169
|
}
|
|
168
170
|
const pagin = config.paginat ?? {};
|
|
171
|
+
paginat.front = pagin.front || false;
|
|
169
172
|
paginat.pageSize = pagin.size || mpagconfig.pageSize;
|
|
170
173
|
pagconfig.value = Object.assign({}, mpagconfig, pagin.config || {});
|
|
171
174
|
tableConfig.value = config;
|
|
@@ -456,12 +459,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
456
459
|
}
|
|
457
460
|
function getParam(param) {
|
|
458
461
|
var _a2;
|
|
459
|
-
const arr = [
|
|
460
|
-
"current",
|
|
461
|
-
"pageSize",
|
|
462
|
-
"prop",
|
|
463
|
-
"order"
|
|
464
|
-
];
|
|
462
|
+
const arr = ["current", "pageSize", "prop", "order"];
|
|
465
463
|
let data2 = {};
|
|
466
464
|
if (typeof tableConfig.value.ajax === "object") {
|
|
467
465
|
data2 = ((_a2 = tableConfig.value.ajax) == null ? void 0 : _a2.data) ?? {};
|
|
@@ -472,6 +470,26 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
472
470
|
}
|
|
473
471
|
return param;
|
|
474
472
|
}
|
|
473
|
+
function getFrontPaginatValue(obj) {
|
|
474
|
+
var _a2;
|
|
475
|
+
if (paginat.front) {
|
|
476
|
+
const list = obj.value;
|
|
477
|
+
const total = list.length;
|
|
478
|
+
const c = paginat.current;
|
|
479
|
+
const z = paginat.pageSize;
|
|
480
|
+
const data2 = list.slice((c - 1) * z, c * z);
|
|
481
|
+
const value = {};
|
|
482
|
+
let ajaxData = {};
|
|
483
|
+
if (typeof tableConfig.value.ajax === "object") {
|
|
484
|
+
ajaxData = ((_a2 = tableConfig.value.ajax) == null ? void 0 : _a2.data) ?? {};
|
|
485
|
+
}
|
|
486
|
+
const l = (ajaxData == null ? void 0 : ajaxData.list) ?? mpagconfig.data.list;
|
|
487
|
+
const t = (ajaxData == null ? void 0 : ajaxData.total) ?? mpagconfig.data.total;
|
|
488
|
+
objValue.setObjValue(value, l, data2);
|
|
489
|
+
objValue.setObjValue(value, t, total);
|
|
490
|
+
obj.value = value;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
475
493
|
function getData(p = {}, callback) {
|
|
476
494
|
var _a2, _b2;
|
|
477
495
|
loading.value = true;
|
|
@@ -483,19 +501,18 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
483
501
|
} else {
|
|
484
502
|
ajax = ajax ?? tableConfig.value.ajax;
|
|
485
503
|
}
|
|
486
|
-
data
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
504
|
+
Object.assign(data, paginat);
|
|
505
|
+
const propsParame = {
|
|
506
|
+
onRequestBefore: inParamFilter,
|
|
507
|
+
onRequestAfter: inDataFilter,
|
|
508
|
+
ajax,
|
|
509
|
+
ajaxConfig,
|
|
510
|
+
value: props2.value,
|
|
511
|
+
param: {}
|
|
512
|
+
};
|
|
513
|
+
getFrontPaginatValue(propsParame);
|
|
490
514
|
urls.comHandle(
|
|
491
|
-
|
|
492
|
-
onRequestBefore: inParamFilter,
|
|
493
|
-
onRequestAfter: inDataFilter,
|
|
494
|
-
ajax,
|
|
495
|
-
ajaxConfig,
|
|
496
|
-
value: props2.value,
|
|
497
|
-
param: {}
|
|
498
|
-
},
|
|
515
|
+
propsParame,
|
|
499
516
|
getParam({
|
|
500
517
|
...props2.param,
|
|
501
518
|
...p
|
|
@@ -102,6 +102,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
|
|
|
102
102
|
paginat?: {
|
|
103
103
|
is?: boolean | undefined;
|
|
104
104
|
size?: number | undefined;
|
|
105
|
+
front?: boolean | undefined;
|
|
105
106
|
config?: {
|
|
106
107
|
[key: string]: any;
|
|
107
108
|
} | undefined;
|
|
@@ -156,6 +157,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
|
|
|
156
157
|
paginat?: {
|
|
157
158
|
is?: boolean | undefined;
|
|
158
159
|
size?: number | undefined;
|
|
160
|
+
front?: boolean | undefined;
|
|
159
161
|
config?: {
|
|
160
162
|
[key: string]: any;
|
|
161
163
|
} | undefined;
|
|
@@ -296,12 +298,14 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
|
|
|
296
298
|
onSizeChange: () => void;
|
|
297
299
|
onCurrentChange: () => void;
|
|
298
300
|
paginat: {
|
|
301
|
+
front: boolean;
|
|
299
302
|
current: number;
|
|
300
303
|
pageSize: number;
|
|
301
304
|
order: string;
|
|
302
305
|
prop: string;
|
|
303
306
|
};
|
|
304
307
|
data: {
|
|
308
|
+
front: boolean;
|
|
305
309
|
current: number;
|
|
306
310
|
pageSize: number;
|
|
307
311
|
order: string;
|
|
@@ -69,6 +69,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
69
69
|
};
|
|
70
70
|
const pagconfig = ref(mpagconfig);
|
|
71
71
|
const paginat = reactive({
|
|
72
|
+
front: false,
|
|
72
73
|
current: 1,
|
|
73
74
|
pageSize: mpagconfig.pageSize,
|
|
74
75
|
order: "",
|
|
@@ -77,6 +78,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
77
78
|
const data = reactive({
|
|
78
79
|
total: 0,
|
|
79
80
|
list: [],
|
|
81
|
+
front: false,
|
|
80
82
|
current: 1,
|
|
81
83
|
pageSize: mpagconfig.pageSize,
|
|
82
84
|
order: "",
|
|
@@ -164,6 +166,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
164
166
|
paginat.prop = v.prop;
|
|
165
167
|
}
|
|
166
168
|
const pagin = config.paginat ?? {};
|
|
169
|
+
paginat.front = pagin.front || false;
|
|
167
170
|
paginat.pageSize = pagin.size || mpagconfig.pageSize;
|
|
168
171
|
pagconfig.value = Object.assign({}, mpagconfig, pagin.config || {});
|
|
169
172
|
tableConfig.value = config;
|
|
@@ -454,12 +457,7 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
454
457
|
}
|
|
455
458
|
function getParam(param) {
|
|
456
459
|
var _a2;
|
|
457
|
-
const arr = [
|
|
458
|
-
"current",
|
|
459
|
-
"pageSize",
|
|
460
|
-
"prop",
|
|
461
|
-
"order"
|
|
462
|
-
];
|
|
460
|
+
const arr = ["current", "pageSize", "prop", "order"];
|
|
463
461
|
let data2 = {};
|
|
464
462
|
if (typeof tableConfig.value.ajax === "object") {
|
|
465
463
|
data2 = ((_a2 = tableConfig.value.ajax) == null ? void 0 : _a2.data) ?? {};
|
|
@@ -470,6 +468,26 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
470
468
|
}
|
|
471
469
|
return param;
|
|
472
470
|
}
|
|
471
|
+
function getFrontPaginatValue(obj) {
|
|
472
|
+
var _a2;
|
|
473
|
+
if (paginat.front) {
|
|
474
|
+
const list = obj.value;
|
|
475
|
+
const total = list.length;
|
|
476
|
+
const c = paginat.current;
|
|
477
|
+
const z = paginat.pageSize;
|
|
478
|
+
const data2 = list.slice((c - 1) * z, c * z);
|
|
479
|
+
const value = {};
|
|
480
|
+
let ajaxData = {};
|
|
481
|
+
if (typeof tableConfig.value.ajax === "object") {
|
|
482
|
+
ajaxData = ((_a2 = tableConfig.value.ajax) == null ? void 0 : _a2.data) ?? {};
|
|
483
|
+
}
|
|
484
|
+
const l = (ajaxData == null ? void 0 : ajaxData.list) ?? mpagconfig.data.list;
|
|
485
|
+
const t = (ajaxData == null ? void 0 : ajaxData.total) ?? mpagconfig.data.total;
|
|
486
|
+
setObjValue(value, l, data2);
|
|
487
|
+
setObjValue(value, t, total);
|
|
488
|
+
obj.value = value;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
473
491
|
function getData(p = {}, callback) {
|
|
474
492
|
var _a2, _b2;
|
|
475
493
|
loading.value = true;
|
|
@@ -481,19 +499,18 @@ const useInit = (props2, emit, refTable, isEl) => {
|
|
|
481
499
|
} else {
|
|
482
500
|
ajax = ajax ?? tableConfig.value.ajax;
|
|
483
501
|
}
|
|
484
|
-
data
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
502
|
+
Object.assign(data, paginat);
|
|
503
|
+
const propsParame = {
|
|
504
|
+
onRequestBefore: inParamFilter,
|
|
505
|
+
onRequestAfter: inDataFilter,
|
|
506
|
+
ajax,
|
|
507
|
+
ajaxConfig,
|
|
508
|
+
value: props2.value,
|
|
509
|
+
param: {}
|
|
510
|
+
};
|
|
511
|
+
getFrontPaginatValue(propsParame);
|
|
488
512
|
comHandle(
|
|
489
|
-
|
|
490
|
-
onRequestBefore: inParamFilter,
|
|
491
|
-
onRequestAfter: inDataFilter,
|
|
492
|
-
ajax,
|
|
493
|
-
ajaxConfig,
|
|
494
|
-
value: props2.value,
|
|
495
|
-
param: {}
|
|
496
|
-
},
|
|
513
|
+
propsParame,
|
|
497
514
|
getParam({
|
|
498
515
|
...props2.param,
|
|
499
516
|
...p
|
|
@@ -73,7 +73,6 @@ var config_default = {
|
|
|
73
73
|
"icon-picker",
|
|
74
74
|
"iframe",
|
|
75
75
|
"keep-com",
|
|
76
|
-
"lists",
|
|
77
76
|
"menus",
|
|
78
77
|
"page",
|
|
79
78
|
"retract",
|
|
@@ -107,6 +106,9 @@ var config_default = {
|
|
|
107
106
|
"selects",
|
|
108
107
|
"switchs",
|
|
109
108
|
"text",
|
|
109
|
+
"list",
|
|
110
|
+
"lists",
|
|
111
|
+
"listsp",
|
|
110
112
|
"paging",
|
|
111
113
|
"tables",
|
|
112
114
|
"tablesp",
|
|
@@ -127,7 +129,6 @@ var config_default = {
|
|
|
127
129
|
"global-config",
|
|
128
130
|
"iframe",
|
|
129
131
|
"keep-com",
|
|
130
|
-
"lists",
|
|
131
132
|
"menus",
|
|
132
133
|
"page",
|
|
133
134
|
"retract",
|
|
@@ -163,6 +164,9 @@ var config_default = {
|
|
|
163
164
|
"selects",
|
|
164
165
|
"switchs",
|
|
165
166
|
"text",
|
|
167
|
+
"list",
|
|
168
|
+
"lists",
|
|
169
|
+
"listsp",
|
|
166
170
|
"paging",
|
|
167
171
|
"tables",
|
|
168
172
|
"tablesp",
|
|
@@ -73,7 +73,6 @@ var config_default = {
|
|
|
73
73
|
"icon-picker",
|
|
74
74
|
"iframe",
|
|
75
75
|
"keep-com",
|
|
76
|
-
"lists",
|
|
77
76
|
"menus",
|
|
78
77
|
"page",
|
|
79
78
|
"retract",
|
|
@@ -107,6 +106,9 @@ var config_default = {
|
|
|
107
106
|
"selects",
|
|
108
107
|
"switchs",
|
|
109
108
|
"text",
|
|
109
|
+
"list",
|
|
110
|
+
"lists",
|
|
111
|
+
"listsp",
|
|
110
112
|
"paging",
|
|
111
113
|
"tables",
|
|
112
114
|
"tablesp",
|
|
@@ -127,7 +129,6 @@ var config_default = {
|
|
|
127
129
|
"global-config",
|
|
128
130
|
"iframe",
|
|
129
131
|
"keep-com",
|
|
130
|
-
"lists",
|
|
131
132
|
"menus",
|
|
132
133
|
"page",
|
|
133
134
|
"retract",
|
|
@@ -163,6 +164,9 @@ var config_default = {
|
|
|
163
164
|
"selects",
|
|
164
165
|
"switchs",
|
|
165
166
|
"text",
|
|
167
|
+
"list",
|
|
168
|
+
"lists",
|
|
169
|
+
"listsp",
|
|
166
170
|
"paging",
|
|
167
171
|
"tables",
|
|
168
172
|
"tablesp",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS7R2FI5Lcjs = require('./chunk-S7R2FI5L.cjs');
|
|
4
4
|
|
|
5
5
|
// expand/components.ts
|
|
6
6
|
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
@@ -29,11 +29,11 @@ function namefilter(c, name) {
|
|
|
29
29
|
function getFrom(mc, type, conf) {
|
|
30
30
|
const filename = mc.replace(new RegExp("^" + config.prefix + "-"), "");
|
|
31
31
|
if (type == 1) {
|
|
32
|
-
if (
|
|
32
|
+
if (_chunkS7R2FI5Lcjs.config_default.components.includes(filename)) {
|
|
33
33
|
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
34
34
|
const from = `${config.name}/components/${filename}/index`;
|
|
35
35
|
let sideEffects;
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkS7R2FI5Lcjs.config_default.sideEffects.includes(filename)) {
|
|
37
37
|
if (conf.css) {
|
|
38
38
|
sideEffects = `${config.name}/components/${filename}/style/index2/.scss`;
|
|
39
39
|
} else {
|
|
@@ -49,14 +49,14 @@ function getFrom(mc, type, conf) {
|
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
51
|
} else {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkS7R2FI5Lcjs.config_default.directives.includes(filename)) {
|
|
53
53
|
const name = "default";
|
|
54
54
|
const from = `${config.name}/directives/${filename}/index`;
|
|
55
55
|
return {
|
|
56
56
|
name,
|
|
57
57
|
from
|
|
58
58
|
};
|
|
59
|
-
} else if (
|
|
59
|
+
} else if (_chunkS7R2FI5Lcjs.config_default.directives.includes("v-" + filename)) {
|
|
60
60
|
const name = "default";
|
|
61
61
|
const from = `${config.name}/directives/${"v-" + filename}/index`;
|
|
62
62
|
return {
|
package/dist/expand/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS7R2FI5Lcjs = require('./chunk-S7R2FI5L.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = _chunkS7R2FI5Lcjs.config_default;
|
package/dist/expand/config.js
CHANGED
package/dist/icons/index.css
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--icon-svg-bar: url("data:image/svg+xml;utf8,%3Csvg id='icon-bar' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z' %3E%3C/path%3E %3C/svg%3E");
|
|
3
2
|
--icon-svg-below: url("data:image/svg+xml;utf8,%3Csvg id='icon-below' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
4
|
-
--icon-svg-
|
|
5
|
-
--icon-svg-clear: url("data:image/svg+xml;utf8,%3Csvg id='icon-clear' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z' %3E%3C/path%3E %3C/svg%3E");
|
|
6
|
-
--icon-svg-bottom: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z'/%3E%3C/svg%3E");
|
|
7
|
-
--icon-svg-bottom-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z'/%3E%3Cpath fill='currentColor' d='M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z'/%3E%3C/svg%3E");
|
|
3
|
+
--icon-svg-bar: url("data:image/svg+xml;utf8,%3Csvg id='icon-bar' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z' %3E%3C/path%3E %3C/svg%3E");
|
|
8
4
|
--icon-svg-bottom-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z'/%3E%3Cpath fill='currentColor' d='M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z'/%3E%3C/svg%3E");
|
|
5
|
+
--icon-svg-bottom: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z'/%3E%3C/svg%3E");
|
|
9
6
|
--icon-svg-close: url("data:image/svg+xml;utf8,%3Csvg id='icon-close' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='currentColor' d='M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z' %3E%3C/path%3E %3C/svg%3E");
|
|
10
|
-
--icon-svg-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
11
|
-
--icon-svg-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
12
|
-
--icon-svg-frame: url("data:image/svg+xml;utf8,%3Csvg id='icon-frame' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z' %3E%3C/path%3E %3C/svg%3E");
|
|
13
7
|
--icon-svg-edit: url("data:image/svg+xml;utf8,%3Csvg id='icon-edit' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='currentColor' d='M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
8
|
+
--icon-svg-bottom-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-bottom-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z'/%3E%3Cpath fill='currentColor' d='M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z'/%3E%3C/svg%3E");
|
|
9
|
+
--icon-svg-frame: url("data:image/svg+xml;utf8,%3Csvg id='icon-frame' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z' %3E%3C/path%3E %3C/svg%3E");
|
|
10
|
+
--icon-svg-right: url("data:image/svg+xml;utf8,%3Csvg id='icon-right' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' %3E %3Cpath fill='currentColor' d='M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
11
|
+
--icon-svg-left: url("data:image/svg+xml;utf8,%3Csvg id='icon-left' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z' %3E%3C/path%3E %3C/svg%3E");
|
|
12
|
+
--icon-svg-bicycle: url("data:image/svg+xml;utf8,%3Csvg id='icon-bicycle' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z'/%3E%3Cpath fill='currentColor' d='M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z'/%3E%3Cpath fill='currentColor' d='M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z'/%3E%3Cpath fill='currentColor' d='m373.376 599.808-42.752-47.616 320-288 42.752 47.616z'/%3E%3C/svg%3E");
|
|
14
13
|
--icon-svg-star: url("data:image/svg+xml;utf8,%3Csvg id='icon-star' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z' %3E%3C/path%3E %3C/svg%3E");
|
|
15
|
-
|
|
16
|
-
.icon-bar {
|
|
17
|
-
height: 1em;
|
|
18
|
-
width: 1em;
|
|
19
|
-
background-color: currentColor;
|
|
20
|
-
-webkit-mask: var(--icon-svg-bar) no-repeat;
|
|
21
|
-
mask: var(--icon-svg-bar) no-repeat;
|
|
22
|
-
-webkit-mask-size: 100% 100%;
|
|
23
|
-
mask-size: 100% 100%;
|
|
24
|
-
color: inherit;
|
|
14
|
+
--icon-svg-clear: url("data:image/svg+xml;utf8,%3Csvg id='icon-clear' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' data-v-ea893728='' %3E %3Cpath fill='currentColor' d='m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z' %3E%3C/path%3E %3Cpath fill='currentColor' d='M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z' %3E%3C/path%3E %3C/svg%3E");
|
|
25
15
|
}
|
|
26
16
|
.icon-below {
|
|
27
17
|
height: 1em;
|
|
@@ -33,22 +23,22 @@
|
|
|
33
23
|
mask-size: 100% 100%;
|
|
34
24
|
color: inherit;
|
|
35
25
|
}
|
|
36
|
-
.icon-
|
|
26
|
+
.icon-bar {
|
|
37
27
|
height: 1em;
|
|
38
28
|
width: 1em;
|
|
39
29
|
background-color: currentColor;
|
|
40
|
-
-webkit-mask: var(--icon-svg-
|
|
41
|
-
mask: var(--icon-svg-
|
|
30
|
+
-webkit-mask: var(--icon-svg-bar) no-repeat;
|
|
31
|
+
mask: var(--icon-svg-bar) no-repeat;
|
|
42
32
|
-webkit-mask-size: 100% 100%;
|
|
43
33
|
mask-size: 100% 100%;
|
|
44
34
|
color: inherit;
|
|
45
35
|
}
|
|
46
|
-
.icon-
|
|
36
|
+
.icon-bottom-left {
|
|
47
37
|
height: 1em;
|
|
48
38
|
width: 1em;
|
|
49
39
|
background-color: currentColor;
|
|
50
|
-
-webkit-mask: var(--icon-svg-
|
|
51
|
-
mask: var(--icon-svg-
|
|
40
|
+
-webkit-mask: var(--icon-svg-bottom-left) no-repeat;
|
|
41
|
+
mask: var(--icon-svg-bottom-left) no-repeat;
|
|
52
42
|
-webkit-mask-size: 100% 100%;
|
|
53
43
|
mask-size: 100% 100%;
|
|
54
44
|
color: inherit;
|
|
@@ -63,42 +53,42 @@
|
|
|
63
53
|
mask-size: 100% 100%;
|
|
64
54
|
color: inherit;
|
|
65
55
|
}
|
|
66
|
-
.icon-
|
|
56
|
+
.icon-close {
|
|
67
57
|
height: 1em;
|
|
68
58
|
width: 1em;
|
|
69
59
|
background-color: currentColor;
|
|
70
|
-
-webkit-mask: var(--icon-svg-
|
|
71
|
-
mask: var(--icon-svg-
|
|
60
|
+
-webkit-mask: var(--icon-svg-close) no-repeat;
|
|
61
|
+
mask: var(--icon-svg-close) no-repeat;
|
|
72
62
|
-webkit-mask-size: 100% 100%;
|
|
73
63
|
mask-size: 100% 100%;
|
|
74
64
|
color: inherit;
|
|
75
65
|
}
|
|
76
|
-
.icon-
|
|
66
|
+
.icon-edit {
|
|
77
67
|
height: 1em;
|
|
78
68
|
width: 1em;
|
|
79
69
|
background-color: currentColor;
|
|
80
|
-
-webkit-mask: var(--icon-svg-
|
|
81
|
-
mask: var(--icon-svg-
|
|
70
|
+
-webkit-mask: var(--icon-svg-edit) no-repeat;
|
|
71
|
+
mask: var(--icon-svg-edit) no-repeat;
|
|
82
72
|
-webkit-mask-size: 100% 100%;
|
|
83
73
|
mask-size: 100% 100%;
|
|
84
74
|
color: inherit;
|
|
85
75
|
}
|
|
86
|
-
.icon-
|
|
76
|
+
.icon-bottom-right {
|
|
87
77
|
height: 1em;
|
|
88
78
|
width: 1em;
|
|
89
79
|
background-color: currentColor;
|
|
90
|
-
-webkit-mask: var(--icon-svg-
|
|
91
|
-
mask: var(--icon-svg-
|
|
80
|
+
-webkit-mask: var(--icon-svg-bottom-right) no-repeat;
|
|
81
|
+
mask: var(--icon-svg-bottom-right) no-repeat;
|
|
92
82
|
-webkit-mask-size: 100% 100%;
|
|
93
83
|
mask-size: 100% 100%;
|
|
94
84
|
color: inherit;
|
|
95
85
|
}
|
|
96
|
-
.icon-
|
|
86
|
+
.icon-frame {
|
|
97
87
|
height: 1em;
|
|
98
88
|
width: 1em;
|
|
99
89
|
background-color: currentColor;
|
|
100
|
-
-webkit-mask: var(--icon-svg-
|
|
101
|
-
mask: var(--icon-svg-
|
|
90
|
+
-webkit-mask: var(--icon-svg-frame) no-repeat;
|
|
91
|
+
mask: var(--icon-svg-frame) no-repeat;
|
|
102
92
|
-webkit-mask-size: 100% 100%;
|
|
103
93
|
mask-size: 100% 100%;
|
|
104
94
|
color: inherit;
|
|
@@ -113,22 +103,22 @@
|
|
|
113
103
|
mask-size: 100% 100%;
|
|
114
104
|
color: inherit;
|
|
115
105
|
}
|
|
116
|
-
.icon-
|
|
106
|
+
.icon-left {
|
|
117
107
|
height: 1em;
|
|
118
108
|
width: 1em;
|
|
119
109
|
background-color: currentColor;
|
|
120
|
-
-webkit-mask: var(--icon-svg-
|
|
121
|
-
mask: var(--icon-svg-
|
|
110
|
+
-webkit-mask: var(--icon-svg-left) no-repeat;
|
|
111
|
+
mask: var(--icon-svg-left) no-repeat;
|
|
122
112
|
-webkit-mask-size: 100% 100%;
|
|
123
113
|
mask-size: 100% 100%;
|
|
124
114
|
color: inherit;
|
|
125
115
|
}
|
|
126
|
-
.icon-
|
|
116
|
+
.icon-bicycle {
|
|
127
117
|
height: 1em;
|
|
128
118
|
width: 1em;
|
|
129
119
|
background-color: currentColor;
|
|
130
|
-
-webkit-mask: var(--icon-svg-
|
|
131
|
-
mask: var(--icon-svg-
|
|
120
|
+
-webkit-mask: var(--icon-svg-bicycle) no-repeat;
|
|
121
|
+
mask: var(--icon-svg-bicycle) no-repeat;
|
|
132
122
|
-webkit-mask-size: 100% 100%;
|
|
133
123
|
mask-size: 100% 100%;
|
|
134
124
|
color: inherit;
|
|
@@ -142,4 +132,14 @@
|
|
|
142
132
|
-webkit-mask-size: 100% 100%;
|
|
143
133
|
mask-size: 100% 100%;
|
|
144
134
|
color: inherit;
|
|
135
|
+
}
|
|
136
|
+
.icon-clear {
|
|
137
|
+
height: 1em;
|
|
138
|
+
width: 1em;
|
|
139
|
+
background-color: currentColor;
|
|
140
|
+
-webkit-mask: var(--icon-svg-clear) no-repeat;
|
|
141
|
+
mask: var(--icon-svg-clear) no-repeat;
|
|
142
|
+
-webkit-mask-size: 100% 100%;
|
|
143
|
+
mask-size: 100% 100%;
|
|
144
|
+
color: inherit;
|
|
145
145
|
}
|
package/dist/icons/index.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"prefix": "fang-ui",
|
|
3
3
|
"info": {},
|
|
4
|
-
"lastModified":
|
|
4
|
+
"lastModified": 1756777543936,
|
|
5
5
|
"icons": {
|
|
6
|
-
"
|
|
7
|
-
"body": " <path fill=\"currentColor\" d=\"
|
|
8
|
-
},
|
|
9
|
-
"bicycle": {
|
|
10
|
-
"body": "<path fill=\"currentColor\" d=\"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z\"/><path fill=\"currentColor\" d=\"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z\"/><path fill=\"currentColor\" d=\"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z\"/>"
|
|
11
|
-
},
|
|
12
|
-
"bottom": {
|
|
13
|
-
"body": "<path fill=\"currentColor\" d=\"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z\"/>"
|
|
6
|
+
"below": {
|
|
7
|
+
"body": " <path fill=\"currentColor\" d=\"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z\" ></path> "
|
|
14
8
|
},
|
|
15
9
|
"bottom-left": {
|
|
16
10
|
"body": "<path fill=\"currentColor\" d=\"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z\"/><path fill=\"currentColor\" d=\"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z\"/>"
|
|
17
11
|
},
|
|
18
|
-
"
|
|
19
|
-
"body": " <path fill=\"currentColor\" d=\"
|
|
12
|
+
"close": {
|
|
13
|
+
"body": " <path fill=\"currentColor\" d=\"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z\" ></path> "
|
|
20
14
|
},
|
|
21
|
-
"
|
|
22
|
-
"body": "
|
|
15
|
+
"bottom-right": {
|
|
16
|
+
"body": "<path fill=\"currentColor\" d=\"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z\"/><path fill=\"currentColor\" d=\"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z\"/>"
|
|
17
|
+
},
|
|
18
|
+
"right": {
|
|
19
|
+
"body": " <path fill=\"currentColor\" d=\"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z\" ></path> "
|
|
20
|
+
},
|
|
21
|
+
"bicycle": {
|
|
22
|
+
"body": "<path fill=\"currentColor\" d=\"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z\"/><path fill=\"currentColor\" d=\"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z\"/><path fill=\"currentColor\" d=\"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z\"/><path fill=\"currentColor\" d=\"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z\"/>"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"body": " <path fill=\"currentColor\" d=\"
|
|
24
|
+
"clear": {
|
|
25
|
+
"body": " <path fill=\"currentColor\" d=\"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z\" ></path> <path fill=\"currentColor\" d=\"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z\" ></path> "
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"aliases": {},
|
package/dist/type.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ type ListObj = {
|
|
|
129
129
|
|
|
130
130
|
// 添加类型定义
|
|
131
131
|
interface PaginatType {
|
|
132
|
+
front: boolean;
|
|
132
133
|
current: number;
|
|
133
134
|
pageSize: number;
|
|
134
135
|
order: string;
|
|
@@ -185,6 +186,8 @@ type TableConfig = {
|
|
|
185
186
|
paginat?: {
|
|
186
187
|
is?: boolean;
|
|
187
188
|
size?: number;
|
|
189
|
+
// 分页方式 前端/后端
|
|
190
|
+
front?: boolean;
|
|
188
191
|
config?: {
|
|
189
192
|
[key: string]: any;
|
|
190
193
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.54",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"vue-tsc": "^3.0.5",
|
|
50
50
|
"vuedraggable": "4.1.0",
|
|
51
51
|
"vxe-table": "4.15.10",
|
|
52
|
-
"@fang-ui/hooks": "0.0.1-0",
|
|
53
52
|
"@fang-ui/components": "0.0.1-0",
|
|
54
|
-
"@fang-ui/icons": "0.0.1-0",
|
|
55
|
-
"@fang-ui/locale": "0.0.1-0",
|
|
56
53
|
"@fang-ui/directives": "0.0.1-0",
|
|
54
|
+
"@fang-ui/locale": "0.0.1-0",
|
|
55
|
+
"@fang-ui/icons": "0.0.1-0",
|
|
56
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
57
57
|
"@fang-ui/theme": "0.0.1-0",
|
|
58
|
-
"@fang-ui/
|
|
59
|
-
"@fang-ui/
|
|
58
|
+
"@fang-ui/types": "0.0.1-0",
|
|
59
|
+
"@fang-ui/utils": "0.0.1-0"
|
|
60
60
|
},
|
|
61
61
|
"main": "./dist/index.cjs",
|
|
62
62
|
"module": "./dist/index.js",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|