@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.
Files changed (45) hide show
  1. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  2. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  3. package/es/src/ap-download/hooks/useStyle.mjs +13 -13
  4. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -28
  5. package/es/src/business/ap-input-radio/interface.d.ts +1 -1
  6. package/es/src/business/ap-label/style.css +3 -0
  7. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +12 -14
  8. package/es/src/business/index.d.ts +0 -2
  9. package/es/src/editable-table/index.vue.d.ts +1 -0
  10. package/es/src/editable-table/index.vue.mjs +97 -87
  11. package/es/src/editable-table/interface.d.ts +6 -1
  12. package/es/src/hooks/useControllableValue.mjs +3 -0
  13. package/es/src/theme/antd-global-overwrite/admin/form.css +5 -12
  14. package/es/src/theme/antd-global-overwrite/admin/index.css +128 -28
  15. package/es/src/theme/antd-global-overwrite/admin/pagination.css +16 -16
  16. package/es/src/theme/antd-global-overwrite/admin/table.css +107 -0
  17. package/es/src/theme/antd-global-overwrite/aplus/form.css +14 -21
  18. package/es/src/theme/antd-global-overwrite/aplus/index.css +174 -74
  19. package/es/src/theme/antd-global-overwrite/aplus/pagination.css +20 -20
  20. package/es/src/theme/antd-global-overwrite/aplus/table.css +140 -33
  21. package/es/src/theme/ap-label/ap-label.css +3 -0
  22. package/es/src/utils/ap-trans-data/index.d.ts +12 -0
  23. package/lib/src/ap-download/ap-download.vue.js +1 -1
  24. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  25. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  26. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  27. package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
  28. package/lib/src/business/ap-label/style.css +3 -0
  29. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  30. package/lib/src/business/index.d.ts +0 -2
  31. package/lib/src/editable-table/index.vue.d.ts +1 -0
  32. package/lib/src/editable-table/index.vue.js +1 -1
  33. package/lib/src/editable-table/interface.d.ts +6 -1
  34. package/lib/src/hooks/useControllableValue.js +1 -1
  35. package/lib/src/theme/antd-global-overwrite/admin/form.css +5 -12
  36. package/lib/src/theme/antd-global-overwrite/admin/index.css +128 -28
  37. package/lib/src/theme/antd-global-overwrite/admin/pagination.css +16 -16
  38. package/lib/src/theme/antd-global-overwrite/admin/table.css +107 -0
  39. package/lib/src/theme/antd-global-overwrite/aplus/form.css +14 -21
  40. package/lib/src/theme/antd-global-overwrite/aplus/index.css +174 -74
  41. package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +20 -20
  42. package/lib/src/theme/antd-global-overwrite/aplus/table.css +140 -33
  43. package/lib/src/theme/ap-label/ap-label.css +3 -0
  44. package/lib/src/utils/ap-trans-data/index.d.ts +12 -0
  45. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- [class$='-basic-table'],
2
- [class$='-basic-table-form-container'] {
1
+ [class*='-basic-table'],
2
+ [class*='-basic-table-form-container'] {
3
3
  width: 100%;
4
4
  height: 100%;
5
5
  }
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 {
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$='-basic-table'] .ant-table-wrapper .ant-table,
18
- [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-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 {
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$='-basic-table-row__striped'] td {
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
+ }
@@ -9,6 +9,9 @@
9
9
  flex-direction: row;
10
10
  align-items: center;
11
11
  }
12
+ .aplus-ap-label__custom {
13
+ margin-top: 2px;
14
+ }
12
15
  .aplus-ap-label__custom .ant-tag {
13
16
  height: 24px;
14
17
  line-height: 24px;
@@ -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 p=require("./hooks/index.js");require("./style/ap-download.css");const f=require("./utils/getFileInfo.js"),m=require("./hooks/useStyle.js"),g=require("../config-provider/hooks/use-locale.js"),_=require("../config-provider/hooks/use-global-config.js"),C={class:"icon"},y={class:"text"},S=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(n){const{lang:o}=g.useLocale(),l=e.computed(()=>o.value==="zh-cn"?"zh_CN":"en_US"),s=n,a=_.useGlobalConfig("apUpload"),{wrapperStyle:r,getWrapperClass:c,getInnerWrapperClass:i}=m.useStyle(s.color,s.size,s.disabled),u=e.computed(()=>{var t;return s.getOssAccess||((t=a.value)==null?void 0:t.getOssAccess)}),d=async()=>{s.disabled||await(await p.useOssInit(u.value,e.unref(l))).downloadFile(f.getFileInfo(s.needName,s.fileName))};return(t,b)=>(e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle(e.unref(r)),class:e.normalizeClass(e.unref(c)),onClick:d},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(i))},[e.createElementVNode("span",C,[e.renderSlot(t.$slots,"icon")]),e.createElementVNode("span",y,e.toDisplayString(t.text),1)],2)],6))}});exports.default=S;
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, size: string, disabled: boolean): {
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 n=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(o,t,p){const{b:a,bm:e}=d.useNamespace("ap-download"),s=m.useGlobalConfig("uiMode"),u=n.computed(()=>({"--download-main-color":o,"--download-main-color-opacity":c.getHexWithOpacity(o,.6)})),i=n.computed(()=>[a("wrapper"),e("wrapper",t)].filter(Boolean)),l=n.computed(()=>{const r=[a("inner-wrapper"),e("inner-wrapper",t)];return p&&(s.value==="aplus"?r.push(e("inner-wrapper","disabled")):r.push(e("inner-wrapper","disabled-admin"))),r});return{wrapperStyle:u,getWrapperClass:i,getInnerWrapperClass:l}}exports.useStyle=w;
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"),m=require("lodash-unified");require("./style.css");const v=require("../../config-provider/hooks/use-namespace.js"),f=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(u,{emit:r}){const s=t.Form.useInjectFormItemContext(),n=u,{b:l,e:i}=v.useNamespace("ap-input-radio"),p=r,a=o=>{p("update:value",{...n.value,...o}),s.onFieldChange()},c=o=>{a({inputval:o})},d=o=>{a({radioVal:o.target.value})};return(o,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l)()])},[e.createVNode(e.unref(t.InputNumber),e.mergeProps({class:e.unref(i)("input-number")},e.unref(m.omit)(n,["value","options"]),{value:n.value.inputval,onChange:c}),null,16,["class","value"]),e.createVNode(e.unref(t.RadioGroup),{value:n.value.radioVal,options:n.options,onChange:d},null,8,["value","options"])],2))}});exports.default=f;
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: Record<ApInputValyeName, string | number>;
5
+ value?: Record<ApInputValyeName, string | number>;
6
6
  };
7
7
  export type ApInputRadioOptions = Array<{
8
8
  value: string | number;
@@ -9,6 +9,9 @@
9
9
  flex-direction: row;
10
10
  align-items: center;
11
11
  }
12
+ .aplus-ap-label__custom {
13
+ margin-top: 2px;
14
+ }
12
15
  .aplus-ap-label__custom .ant-tag {
13
16
  height: 24px;
14
17
  line-height: 24px;
@@ -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 n=require("../../config-provider/hooks/use-namespace.js"),o=require("./ApStatus.vue2.js"),p=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,a=e.computed(()=>({"padding-left":t.padding+"px","padding-right":t.padding+"px",...t.style})),{b:l}=n.useNamespace("ap-status-group");return(s,c)=>t.statusList?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l)()]),style:e.normalizeStyle(a.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.statusList,u=>(e.openBlock(),e.createBlock(o.default,{key:u.value,show:u.value===s.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=p;
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"),j=require("ant-design-vue"),m=require("../ap-form/index.js"),s=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const p=require("../utils/index.js"),g=require("./utils.js"),z=require("./hooks/use-get-columns.js");require("./style/index.css");const I=require("../config-provider/hooks/use-namespace.js"),O=require("../hooks/useControllableValue.js"),M=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(C,{expose:w,emit:y}){const l=C,{b,em:v}=I.useNamespace("editable-table"),R=e.useSlots(),D=y,h=e.ref(),{value:u,updateValue:B}=O.useControllableValue(l,D),i=e.ref(),F=m.ApForm.useWatch(l.name,i);e.watch(()=>F.value,n=>{var o;B(n),(o=l.onChange)==null||o.call(l,n)},{deep:!0});const N=z.default(l);function q(){var n;(n=i.value)==null||n.resetFields()}function _(n){return n?(s.isArray(n)?n:[n]).map(t=>s.isArray(t)?[l.name,...t]:[l.name,t]):void 0}async function V(n,o){var a;const t=await((a=i.value)==null?void 0:a.validateFields(_(n),o));return t==null?void 0:t[l.name]}function k(n,o){var r,d,c;const t=((r=e.unref(u))==null?void 0:r.length)||0;if(p.isDef(l.maxLength)&&t>=l.maxLength)return;const a=[...e.unref(u)||[]];p.isDef(o)?a.splice(o,0,{...n||{}}):a.push({...n||{}}),(c=(d=i.value)==null?void 0:d.setFieldValue)==null||c.call(d,l.name,a)}function A(n,o="suffix"){var c,f,x;const t=((c=e.unref(u))==null?void 0:c.length)||0,a=s.isNumber(n)?n:n.length;if(p.isDef(l.maxLength)&&t+a>l.maxLength)return;const r=[...e.unref(u)||[]],d=s.isNumber(n)?new Array(n).fill({}):s.cloneDeep(n);o==="suffix"?r.push(...d):r.unshift(...d),(x=(f=i.value)==null?void 0:f.setFieldValue)==null||x.call(f,l.name,r)}function E(n){var a,r;let o=s.cloneDeep(e.unref(u)||[]);const t=s.isNumber(n)?[n]:n;o=o.filter((d,c)=>!t.includes(c)),(r=(a=i.value)==null?void 0:a.setFieldValue)==null||r.call(a,l.name,o)}function S(){return e.unref(u)}function L(n){var o;return(o=e.unref(u))==null?void 0:o[n]}function T(n,o){var a,r;const t=s.cloneDeep(e.unref(u));t[n]&&(t[n]={...t[n],...o},(r=(a=i.value)==null?void 0:a.setFieldValue)==null||r.call(a,l.name,[...t]))}function P(n,o){var a;const t=n==="end"?u.value.length-1:n;g.scrollToRowIndex(t,(a=h.value)==null?void 0:a.$el,o)}return w({resetFields:q,validateFields:V,add:k,remove:E,getRowData:L,getRowsData:S,setRowData:T,addMultiple:A,scrollTo:P}),(n,o)=>(e.openBlock(),e.createBlock(e.unref(m.ApForm),{"initial-values":{[l.name]:e.unref(u)},ref_key:"formRef",ref:i},{default:e.withCtx(()=>[e.createVNode(e.unref(m.ApForm).FormItem,{name:n.name,"no-style":""},{default:e.withCtx(()=>[e.createVNode(e.unref(j.Table),e.mergeProps(e.unref(s.omit)(l,["name","value","onUpdate:value","maxLength","onChange"]),{class:e.unref(b)(),columns:e.unref(N),"data-source":e.unref(u),ref_key:"tableRef",ref:h}),e.createSlots({headerCell:e.withCtx(({column:t})=>[e.unref(g.getColumnIsRequired)(t)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(v)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(R,(t,a)=>({name:a,fn:e.withCtx(r=>[e.renderSlot(n.$slots,a,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=M;
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 d=require("vue"),t=require("lodash-unified");function V(u,n,e){const f=(e==null?void 0:e.defaultValuePropName)||"defaultValue",a=(e==null?void 0:e.valuePropName)||"value",r=d.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[f])?e==null?void 0:e.defaultValue:u[f]:u[a]}return d.watch(()=>u[a],l=>{r.value=l}),{value:r,updateValue:c}}exports.useControllableValue=V;
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$='-basic-table-form-container'] form[class$='-basic-form--compact'] {
40
+ div[class*='-basic-table-form-container'] form[class$='-basic-form--compact'] {
48
41
  padding: 16px;
49
42
  }
50
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content {
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$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-primary {
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$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-default {
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$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-link {
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
  }