@aplus-frontend/ui 0.1.13 → 0.1.15
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/es/src/ap-download/ap-download.vue.mjs +27 -27
- package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/es/src/ap-download/hooks/useStyle.mjs +13 -13
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -28
- package/es/src/business/ap-input-radio/interface.d.ts +1 -1
- package/es/src/business/ap-label/style.css +3 -0
- package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +12 -14
- package/es/src/business/index.d.ts +0 -2
- package/es/src/editable-table/index.vue.d.ts +1 -0
- package/es/src/editable-table/index.vue.mjs +97 -87
- package/es/src/editable-table/interface.d.ts +6 -1
- package/es/src/hooks/useControllableValue.mjs +3 -0
- package/es/src/theme/antd-global-overwrite/admin/form.css +5 -12
- package/es/src/theme/antd-global-overwrite/admin/index.css +128 -28
- package/es/src/theme/antd-global-overwrite/admin/pagination.css +16 -16
- package/es/src/theme/antd-global-overwrite/admin/table.css +107 -0
- package/es/src/theme/antd-global-overwrite/aplus/form.css +14 -21
- package/es/src/theme/antd-global-overwrite/aplus/index.css +174 -74
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +20 -20
- package/es/src/theme/antd-global-overwrite/aplus/table.css +140 -33
- package/es/src/theme/ap-label/ap-label.css +3 -0
- package/es/src/utils/ap-trans-data/index.d.ts +12 -0
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/lib/src/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
- package/lib/src/business/ap-label/style.css +3 -0
- package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/index.d.ts +0 -2
- package/lib/src/editable-table/index.vue.d.ts +1 -0
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -1
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/form.css +5 -12
- package/lib/src/theme/antd-global-overwrite/admin/index.css +128 -28
- package/lib/src/theme/antd-global-overwrite/admin/pagination.css +16 -16
- package/lib/src/theme/antd-global-overwrite/admin/table.css +107 -0
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +14 -21
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +174 -74
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +20 -20
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +140 -33
- package/lib/src/theme/ap-label/ap-label.css +3 -0
- package/lib/src/utils/ap-trans-data/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
[class
|
|
2
|
-
[class
|
|
1
|
+
[class*='-basic-table'],
|
|
2
|
+
[class*='-basic-table-form-container'] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
[class
|
|
7
|
-
[class
|
|
8
|
-
[class
|
|
9
|
-
[class
|
|
6
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
|
|
7
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
|
|
8
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title,
|
|
9
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: space-between;
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
padding: 0 0 10px;
|
|
15
15
|
border: none;
|
|
16
16
|
}
|
|
17
|
-
[class
|
|
18
|
-
[class
|
|
17
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table,
|
|
18
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table {
|
|
19
19
|
width: 100%;
|
|
20
20
|
overflow-x: hidden;
|
|
21
21
|
border-radius: 0;
|
|
22
22
|
}
|
|
23
|
-
[class
|
|
24
|
-
[class
|
|
23
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
24
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
|
|
25
25
|
border-radius: 0;
|
|
26
26
|
}
|
|
27
|
-
[class
|
|
28
|
-
[class
|
|
27
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th,
|
|
28
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
|
|
29
29
|
color: #182948;
|
|
30
30
|
font-weight: 700;
|
|
31
31
|
font-size: 14px;
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
text-transform: none;
|
|
35
35
|
background: #f2f6f9;
|
|
36
36
|
}
|
|
37
|
-
[class
|
|
38
|
-
[class
|
|
37
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before,
|
|
38
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
|
|
39
39
|
display: none;
|
|
40
40
|
width: 0;
|
|
41
41
|
visibility: hidden;
|
|
42
42
|
}
|
|
43
|
-
[class
|
|
44
|
-
[class
|
|
43
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover,
|
|
44
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
|
|
45
45
|
background: #f6f9fa;
|
|
46
46
|
}
|
|
47
|
-
[class
|
|
48
|
-
[class
|
|
47
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td,
|
|
48
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
|
|
49
49
|
background: #f6f9fa;
|
|
50
50
|
}
|
|
51
|
-
[class
|
|
52
|
-
[class
|
|
51
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td,
|
|
52
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
|
|
53
53
|
color: #182948;
|
|
54
54
|
font-weight: 400;
|
|
55
55
|
font-size: 14px;
|
|
@@ -58,36 +58,143 @@
|
|
|
58
58
|
text-transform: none;
|
|
59
59
|
transition: unset;
|
|
60
60
|
}
|
|
61
|
-
[class
|
|
62
|
-
[class
|
|
61
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th,
|
|
62
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
|
|
63
63
|
padding: 12px 16px;
|
|
64
64
|
line-height: 22px;
|
|
65
65
|
}
|
|
66
|
-
[class
|
|
67
|
-
[class
|
|
66
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
|
|
67
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
|
|
68
68
|
border-top: 1px solid;
|
|
69
69
|
border-top-color: transparent;
|
|
70
70
|
}
|
|
71
|
-
[class
|
|
72
|
-
[class
|
|
71
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell,
|
|
72
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
73
73
|
padding: 12px 16px;
|
|
74
74
|
line-height: 22px;
|
|
75
75
|
}
|
|
76
|
-
[class
|
|
77
|
-
[class
|
|
76
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th,
|
|
77
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
78
78
|
padding: 10.5px 16px;
|
|
79
79
|
line-height: 18px;
|
|
80
80
|
}
|
|
81
|
-
[class
|
|
82
|
-
[class
|
|
81
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
|
|
82
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
|
|
83
83
|
border-top: 1px solid;
|
|
84
84
|
border-top-color: transparent;
|
|
85
85
|
}
|
|
86
|
-
[class
|
|
87
|
-
[class
|
|
86
|
+
[class*='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell,
|
|
87
|
+
[class*='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
88
88
|
padding: 10.5px 16px;
|
|
89
89
|
line-height: 18px;
|
|
90
90
|
}
|
|
91
|
-
[class
|
|
91
|
+
[class*='-basic-table-row__striped'] td {
|
|
92
92
|
background-color: #f6f9fa;
|
|
93
93
|
}
|
|
94
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
95
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
96
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
97
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
|
|
98
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
|
|
99
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
|
|
100
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper,
|
|
101
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper,
|
|
102
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper,
|
|
103
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper,
|
|
104
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper,
|
|
105
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper,
|
|
106
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
107
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
108
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container,
|
|
109
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
|
|
110
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container,
|
|
111
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container {
|
|
112
|
+
overflow: visible;
|
|
113
|
+
}
|
|
114
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
115
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
116
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
117
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
|
|
118
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
|
|
119
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
|
|
120
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table,
|
|
121
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table,
|
|
122
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table,
|
|
123
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-table,
|
|
124
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table,
|
|
125
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-table,
|
|
126
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
127
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
128
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table,
|
|
129
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
|
|
130
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table,
|
|
131
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table {
|
|
132
|
+
overflow: visible;
|
|
133
|
+
}
|
|
134
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
135
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
136
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
137
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
138
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
139
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
140
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container,
|
|
141
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container,
|
|
142
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container,
|
|
143
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container,
|
|
144
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container,
|
|
145
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container,
|
|
146
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
147
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
148
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
149
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
150
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container,
|
|
151
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container {
|
|
152
|
+
overflow: visible;
|
|
153
|
+
}
|
|
154
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
155
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
156
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
157
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
158
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
159
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
160
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
161
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
162
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
163
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
164
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
165
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
166
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
167
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
168
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
169
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
170
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header,
|
|
171
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container .ant-table .ant-table-container .ant-table-header {
|
|
172
|
+
position: sticky;
|
|
173
|
+
top: 0;
|
|
174
|
+
z-index: 99;
|
|
175
|
+
}
|
|
176
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
177
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
178
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
179
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
|
|
180
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
|
|
181
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
|
|
182
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper ul.ant-pagination,
|
|
183
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper ul.ant-pagination,
|
|
184
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper ul.ant-pagination,
|
|
185
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper ul.ant-pagination,
|
|
186
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper ul.ant-pagination,
|
|
187
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper ul.ant-pagination,
|
|
188
|
+
[class*='-basic-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
189
|
+
[class*='-ap-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
190
|
+
[class*='-pro-table'].ap-table--sticky .aplus-ap-table__table-wrapper .ant-spin-container ul.ant-pagination,
|
|
191
|
+
[class*='-basic-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
|
|
192
|
+
[class*='-ap-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination,
|
|
193
|
+
[class*='-pro-table'].ap-table--sticky .ant-table-wrapper .ant-spin-container ul.ant-pagination {
|
|
194
|
+
position: sticky;
|
|
195
|
+
bottom: 0;
|
|
196
|
+
z-index: 99;
|
|
197
|
+
margin: 0;
|
|
198
|
+
padding: 16px 0;
|
|
199
|
+
background-color: #ffffff;
|
|
200
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type options = {
|
|
2
|
+
data: Array<Record<string, any>>;
|
|
3
|
+
transfrom: Record<string, any>;
|
|
4
|
+
targetObj: Record<string, any>;
|
|
5
|
+
targetKey: 'comp' | 'server';
|
|
6
|
+
};
|
|
7
|
+
export declare function ApTransformData(opts: options): Error | undefined;
|
|
8
|
+
export declare function getTransfromKeysAndValues(transfrom: Record<string, any>): {
|
|
9
|
+
primeKey: string;
|
|
10
|
+
primeValuesKeys: string[];
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");const g=require("./hooks/index.js");require("./style/ap-download.css");const _=require("./utils/getFileInfo.js"),C=require("./hooks/useStyle.js"),y=require("../config-provider/hooks/use-locale.js"),b=require("../config-provider/hooks/use-global-config.js"),S={class:"icon"},q={class:"text"},z=e.defineComponent({name:"ApDownload",__name:"ap-download",props:{text:{},color:{default:"#0070FF"},size:{default:"middle"},disabled:{type:Boolean,default:!1},fileName:{},needName:{type:[Boolean,Object]},getOssAccess:{}},setup(o){const{lang:n}=y.useLocale(),l=e.computed(()=>n.value==="zh-cn"?"zh_CN":"en_US"),s=o,a=b.useGlobalConfig("apUpload"),c=e.computed(()=>s.disabled),r=e.computed(()=>s.color),i=e.computed(()=>s.size),{wrapperStyle:u,getWrapperClass:d,getInnerWrapperClass:p}=C.useStyle(r,i,c),m=e.computed(()=>{var t;return s.getOssAccess||((t=a.value)==null?void 0:t.getOssAccess)}),f=async()=>{s.disabled||await(await g.useOssInit(m.value,e.unref(l))).downloadFile(_.getFileInfo(s.needName,s.fileName))};return(t,N)=>(e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle(e.unref(u)),class:e.normalizeClass(e.unref(d)),onClick:f},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p))},[e.createElementVNode("span",S,[e.renderSlot(t.$slots,"icon")]),e.createElementVNode("span",q,e.toDisplayString(t.text),1)],2)],6))}});exports.default=z;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
export declare function useStyle(color: string
|
|
2
|
+
export declare function useStyle(color: ComputedRef<string>, size: ComputedRef<string>, disabled: ComputedRef<boolean>): {
|
|
3
3
|
wrapperStyle: ComputedRef<Record<string, any>>;
|
|
4
4
|
getWrapperClass: ComputedRef<string[]>;
|
|
5
5
|
getInnerWrapperClass: ComputedRef<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),c=require("../utils/getFileInfo.js");require("../../config-provider/index.js");const d=require("../../config-provider/hooks/use-namespace.js"),m=require("../../config-provider/hooks/use-global-config.js");function w(n,o,u){const{b:t,bm:e}=d.useNamespace("ap-download"),l=m.useGlobalConfig("uiMode"),p=a.computed(()=>({"--download-main-color":n.value,"--download-main-color-opacity":c.getHexWithOpacity(n.value,.6)})),s=a.computed(()=>[t("wrapper"),e("wrapper",o.value)].filter(Boolean)),i=a.computed(()=>{const r=[t("inner-wrapper"),e("inner-wrapper",o.value)];return u.value&&(l.value==="aplus"?r.push(e("inner-wrapper","disabled")):r.push(e("inner-wrapper","disabled-admin"))),r});return{wrapperStyle:p,getWrapperClass:s,getInnerWrapperClass:i}}exports.useStyle=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const t=require("ant-design-vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const t=require("ant-design-vue"),f=require("lodash-unified");require("./style.css");const g=require("../../config-provider/hooks/use-namespace.js"),C=e.defineComponent({name:"ApInputRadio",__name:"ApInputRadio",props:{disabled:{type:Boolean},stringMode:{type:Boolean,default:!0},precision:{},max:{},min:{},step:{},bordered:{type:Boolean,default:!0},autofocus:{type:Boolean},decimalSeparator:{},controls:{type:Boolean,default:!0},formatter:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},value:{},options:{}},emits:["update:value"],setup(s,{emit:l}){const i=t.Form.useInjectFormItemContext(),o=s,{b:p,e:c}=g.useNamespace("ap-input-radio"),d=l,a=n=>{d("update:value",{...o.value,...n}),i.onFieldChange()},m=n=>{a({inputval:n})},v=n=>{a({radioVal:n.target.value})};return(n,h)=>{var u,r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)()])},[e.createVNode(e.unref(t.InputNumber),e.mergeProps({class:e.unref(c)("input-number")},e.unref(f.omit)(o,["value","options"]),{value:o.value?(u=o.value)==null?void 0:u.inputval:"",onChange:m}),null,16,["class","value"]),e.createVNode(e.unref(t.RadioGroup),{value:o.value?(r=o.value)==null?void 0:r.radioVal:"",options:o.options,onChange:v},null,8,["value","options"])],2)}}});exports.default=C;
|
|
@@ -2,7 +2,7 @@ import { InputNumberProps } from 'ant-design-vue/es/input-number';
|
|
|
2
2
|
type ApInputProps = Pick<InputNumberProps, 'disabled' | 'stringMode' | 'precision' | 'max' | 'min' | 'step' | 'bordered' | 'autofocus' | 'decimalSeparator' | 'controls' | 'formatter' | 'onInput' | 'onChange' | 'onPressEnter' | 'onStep' | 'onBlur' | 'onFocus'>;
|
|
3
3
|
type ApInputValyeName = 'inputval' | 'radioVal';
|
|
4
4
|
export type ApInputValType = {
|
|
5
|
-
value
|
|
5
|
+
value?: Record<ApInputValyeName, string | number>;
|
|
6
6
|
};
|
|
7
7
|
export type ApInputRadioOptions = Array<{
|
|
8
8
|
value: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");require("./ApStatus.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");require("./ApStatus.vue.js");const o=require("../../config-provider/hooks/use-namespace.js"),n=require("./ApStatus.vue2.js"),c=e.defineComponent({name:"ApStatusGroup",__name:"ApStatusGroup",props:{padding:{default:8},currentValue:{default:0},statusList:{default:null},style:{},show:{type:Boolean,default:!0}},setup(r){const t=r,s=e.computed(()=>({...t.style})),{b:l}=o.useNamespace("ap-status-group");return(a,p)=>t.statusList?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l)()]),style:e.normalizeStyle(s.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.statusList,u=>(e.openBlock(),e.createBlock(n.default,{key:u.value,show:u.value===a.currentValue,color:u.color,text:u.text,padding:t.padding,style:e.normalizeStyle(t.style)},null,8,["show","color","text","padding","style"]))),128))],6)):e.createCommentVNode("",!0)}});exports.default=c;
|
|
@@ -1095,7 +1095,6 @@ export declare const ApInputRadio: DefineComponent<{
|
|
|
1095
1095
|
};
|
|
1096
1096
|
value: {
|
|
1097
1097
|
type: PropType<Record<"inputval" | "radioVal", string | number>>;
|
|
1098
|
-
required: true;
|
|
1099
1098
|
};
|
|
1100
1099
|
options: {
|
|
1101
1100
|
type: PropType<ApInputRadioOptions>;
|
|
@@ -1166,7 +1165,6 @@ export declare const ApInputRadio: DefineComponent<{
|
|
|
1166
1165
|
};
|
|
1167
1166
|
value: {
|
|
1168
1167
|
type: PropType<Record<"inputval" | "radioVal", string | number>>;
|
|
1169
|
-
required: true;
|
|
1170
1168
|
};
|
|
1171
1169
|
options: {
|
|
1172
1170
|
type: PropType<ApInputRadioOptions>;
|
|
@@ -19,6 +19,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
19
19
|
setRowData: (index: number, payload: any) => void;
|
|
20
20
|
addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
|
|
21
21
|
scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
|
|
22
|
+
clear: () => void;
|
|
22
23
|
}>): void;
|
|
23
24
|
attrs: any;
|
|
24
25
|
slots: ReturnType<() => Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("ant-design-vue"),p=require("../ap-form/index.js"),i=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const h=require("../utils/index.js"),C=require("./utils.js"),I=require("./hooks/use-get-columns.js");require("./style/index.css");const O=require("../config-provider/hooks/use-namespace.js"),M=require("../hooks/useControllableValue.js"),K=e.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},name:{default:"ap-editable-table-inner-name"},onFieldChange:{}},emits:["update:value"],setup(w,{expose:v,emit:y}){const o=w,{b,em:R}=O.useNamespace("editable-table"),F=e.useSlots(),q=y,x=e.ref(),{value:u,updateValue:B}=M.useControllableValue(o,q),s=e.ref(),m=p.ApForm.useWatch(o.name,s);e.watch(()=>m.value,n=>{var t;B(n),(t=o.onChange)==null||t.call(o,n)},{deep:!0}),e.watch(u,n=>{var t;n!==e.unref(m)&&(i.isEqual(n,e.unref(m))||(t=s.value)==null||t.setFieldValue(o.name,n))},{deep:!0});const N=I.default(o);function D(){var n;(n=s.value)==null||n.resetFields()}function V(n){return n?(i.isArray(n)?n:[n]).map(a=>i.isArray(a)?[o.name,...a]:[o.name,a]):void 0}async function E(n,t){var l;const a=await((l=s.value)==null?void 0:l.validateFields(V(n),t));return a==null?void 0:a[o.name]}function _(n,t){var r,d,c;const a=((r=e.unref(u))==null?void 0:r.length)||0;if(h.isDef(o.maxLength)&&a>=o.maxLength)return;const l=[...e.unref(u)||[]];h.isDef(t)?l.splice(t,0,{...n||{}}):l.push({...n||{}}),(c=(d=s.value)==null?void 0:d.setFieldValue)==null||c.call(d,o.name,l)}function k(n,t="suffix"){var c,f,g;const a=((c=e.unref(u))==null?void 0:c.length)||0,l=i.isNumber(n)?n:n.length;if(h.isDef(o.maxLength)&&a+l>o.maxLength)return;const r=[...e.unref(u)||[]],d=i.isNumber(n)?new Array(n).fill({}):i.cloneDeep(n);t==="suffix"?r.push(...d):r.unshift(...d),(g=(f=s.value)==null?void 0:f.setFieldValue)==null||g.call(f,o.name,r)}function A(n){var l,r;let t=i.cloneDeep(e.unref(u)||[]);const a=i.isNumber(n)?[n]:n;t=t.filter((d,c)=>!a.includes(c)),(r=(l=s.value)==null?void 0:l.setFieldValue)==null||r.call(l,o.name,t)}function S(){return e.unref(u)}function L(n){var t;return(t=e.unref(u))==null?void 0:t[n]}function T(n,t){var l,r;const a=i.cloneDeep(e.unref(u));a[n]&&(a[n]={...a[n],...t},(r=(l=s.value)==null?void 0:l.setFieldValue)==null||r.call(l,o.name,[...a]))}function P(n,t){var l;const a=n==="end"?u.value.length-1:n;C.scrollToRowIndex(a,(l=x.value)==null?void 0:l.$el,t)}function j(){var n,t;(t=(n=s.value)==null?void 0:n.setFieldValue)==null||t.call(n,o.name,[])}return v({resetFields:D,validateFields:E,add:_,remove:A,getRowData:L,getRowsData:S,setRowData:T,addMultiple:k,scrollTo:P,clear:j}),(n,t)=>(e.openBlock(),e.createBlock(e.unref(p.ApForm),{"initial-values":{[o.name]:e.unref(u)},ref_key:"formRef",ref:s},{default:e.withCtx(()=>[e.createVNode(e.unref(p.ApForm).FormItem,{name:n.name,"no-style":""},{default:e.withCtx(()=>[e.createVNode(e.unref(z.Table),e.mergeProps(e.unref(i.omit)(o,["name","value","onUpdate:value","maxLength","onChange"]),{class:e.unref(b)(),columns:e.unref(N),"data-source":e.unref(u),ref_key:"tableRef",ref:x}),e.createSlots({headerCell:e.withCtx(({column:a})=>[e.unref(C.getColumnIsRequired)(a)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(R)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(a.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(F,(a,l)=>({name:l,fn:e.withCtx(r=>[e.renderSlot(n.$slots,l,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=K;
|
|
@@ -140,6 +140,11 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
|
|
|
140
140
|
* @returns
|
|
141
141
|
*/
|
|
142
142
|
remove: (index: number | number[]) => void;
|
|
143
|
+
/**
|
|
144
|
+
* 清空所有数据
|
|
145
|
+
* @returns
|
|
146
|
+
*/
|
|
147
|
+
clear: () => void;
|
|
143
148
|
/**
|
|
144
149
|
* 获取所有行的数据
|
|
145
150
|
* @returns
|
|
@@ -169,4 +174,4 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
|
|
|
169
174
|
* 可编辑表格作为表单项暴露的实例
|
|
170
175
|
* @description 作为Form表单使用时不再暴露表单相关的API
|
|
171
176
|
*/
|
|
172
|
-
export type EditableTableFormItemExpose<ModelType = any, RecordType = any> = Omit<EditableTableExpose<ModelType, RecordType>, 'resetFields' | 'validateFields'>;
|
|
177
|
+
export type EditableTableFormItemExpose<ModelType = any, RecordType = any> = Omit<EditableTableExpose<ModelType, RecordType>, 'resetFields' | 'validateFields' | 'clear'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),t=require("lodash-unified");function V(u,n,e){const d=(e==null?void 0:e.defaultValuePropName)||"defaultValue",a=(e==null?void 0:e.valuePropName)||"value",r=f.ref(v());function c(l){u[a]===void 0&&(r.value=l),n(`update:${a}`,l)}function v(){return t.isUndefined(u[a])?t.isUndefined(u[d])?e==null?void 0:e.defaultValue:u[d]:u[a]}return f.watch(()=>u[a],l=>{r.value=l},{deep:!0}),{value:r,updateValue:c}}exports.useControllableValue=V;
|
|
@@ -10,13 +10,6 @@
|
|
|
10
10
|
.ant-form .ant-form-item-control .ant-form-item-explain-error {
|
|
11
11
|
font-size: 12px;
|
|
12
12
|
}
|
|
13
|
-
.ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner {
|
|
14
|
-
background-color: #ffffff;
|
|
15
|
-
border-color: #34b77c;
|
|
16
|
-
}
|
|
17
|
-
.ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner::after {
|
|
18
|
-
background-color: #34b77c;
|
|
19
|
-
}
|
|
20
13
|
.ant-form .ant-form-item-control .ant-select.ant-select-open .ant-select-selection-item {
|
|
21
14
|
color: #bfbfbf;
|
|
22
15
|
}
|
|
@@ -44,22 +37,22 @@
|
|
|
44
37
|
input.ant-input[disabled] {
|
|
45
38
|
color: #666666;
|
|
46
39
|
}
|
|
47
|
-
div[class
|
|
40
|
+
div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] {
|
|
48
41
|
padding: 16px;
|
|
49
42
|
}
|
|
50
|
-
div[class
|
|
43
|
+
div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content {
|
|
51
44
|
display: flex;
|
|
52
45
|
align-items: center;
|
|
53
46
|
justify-content: flex-end;
|
|
54
47
|
}
|
|
55
|
-
div[class
|
|
48
|
+
div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-primary {
|
|
56
49
|
order: 1;
|
|
57
50
|
}
|
|
58
|
-
div[class
|
|
51
|
+
div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-default {
|
|
59
52
|
order: 2;
|
|
60
53
|
margin-right: 0;
|
|
61
54
|
}
|
|
62
|
-
div[class
|
|
55
|
+
div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-link {
|
|
63
56
|
order: 3;
|
|
64
57
|
margin-left: 0.5rem;
|
|
65
58
|
}
|