@aplus-frontend/ui 0.3.2 → 0.3.3
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/index.mjs +177 -175
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +71 -52
- package/es/src/business/ap-export-group/convertExportField.d.ts +4 -0
- package/es/src/business/ap-export-group/convertExportField.mjs +13 -0
- package/es/src/business/ap-export-group/index.d.ts +20 -1
- package/es/src/business/ap-export-group/index.mjs +8 -6
- package/es/src/business/ap-export-group/interface.d.ts +9 -0
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +11 -10
- package/es/src/config-provider/constants.d.ts +6 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +16 -1
- package/es/src/index.mjs +59 -57
- package/lib/index.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.d.ts +4 -0
- package/lib/src/business/ap-export-group/convertExportField.js +1 -0
- package/lib/src/business/ap-export-group/index.d.ts +20 -1
- package/lib/src/business/ap-export-group/index.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +9 -0
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +6 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +16 -1
- package/lib/src/index.js +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as e from "./src/index.mjs";
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
@@ -9,7 +9,7 @@ import { defaultNamespace as S, namespaceContextKey as h, useGetDerivedNamespace
|
|
|
9
9
|
import { ConfigProvider as P, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as k } from "./src/ap-form/items/text/index.mjs";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as E } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as K } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
14
|
import { default as U } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
15
|
import { default as z } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
@@ -18,60 +18,60 @@ import { default as j } from "./src/ap-form/items/select/index.vue.mjs";
|
|
|
18
18
|
import { default as J } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
19
19
|
import { default as X } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
20
20
|
import { default as Z } from "./src/ap-form/items/text/password.vue.mjs";
|
|
21
|
-
import { ApForm as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { ApField as
|
|
33
|
-
import { ApFieldText as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { adminToken as
|
|
47
|
-
import { ApActionItem as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { DictCode as
|
|
53
|
-
import { createWorkOrderModal as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { NeedNameKeyDefault as
|
|
59
|
-
import { default as
|
|
60
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
61
|
-
import { default as
|
|
62
|
-
import { CheckCard as
|
|
63
|
-
import { default as
|
|
64
|
-
import { ApModal as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { ApDrawer as
|
|
69
|
-
import { ApTransformDataHelper as $
|
|
70
|
-
import { default as
|
|
71
|
-
import { useTableModal as
|
|
72
|
-
import { useTableSelectModal as
|
|
73
|
-
import { ApAttachment as
|
|
74
|
-
import { ApBatchAction as
|
|
21
|
+
import { ApForm as oo } from "./src/ap-form/index.mjs";
|
|
22
|
+
import { default as ro } from "./src/ap-form/item/index.vue.mjs";
|
|
23
|
+
import { default as po } from "./src/ap-form/item-group/index.vue.mjs";
|
|
24
|
+
import { default as fo } from "./src/ap-form/list/index.vue.mjs";
|
|
25
|
+
import { default as lo } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
|
+
import { default as uo } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
+
import { default as Ao } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
|
+
import { default as io } from "./src/ap-form/set/index.vue.mjs";
|
|
29
|
+
import { default as Fo } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
+
import { default as Io } from "./src/ap-form/render/control.vue.mjs";
|
|
31
|
+
import { default as Co } from "./src/ap-form/render/item.vue.mjs";
|
|
32
|
+
import { ApField as Do } from "./src/ap-field/index.mjs";
|
|
33
|
+
import { ApFieldText as ho } from "./src/ap-field/text/index.mjs";
|
|
34
|
+
import { default as yo } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
35
|
+
import { default as Po } from "./src/ap-field/date/index.vue.mjs";
|
|
36
|
+
import { default as Mo } from "./src/ap-field/number/index.vue.mjs";
|
|
37
|
+
import { default as Ro } from "./src/ap-field/radio/index.vue.mjs";
|
|
38
|
+
import { default as vo } from "./src/ap-field/switch/index.vue.mjs";
|
|
39
|
+
import { default as Bo } from "./src/ap-field/text-area/index.vue.mjs";
|
|
40
|
+
import { default as Oo } from "./src/ap-field/date-range/index.vue.mjs";
|
|
41
|
+
import { default as Wo } from "./src/ap-field/select/index.vue.mjs";
|
|
42
|
+
import { default as Ho } from "./src/ap-field/text/password.vue.mjs";
|
|
43
|
+
import { default as $o } from "./src/ap-field/slider/index.vue.mjs";
|
|
44
|
+
import { default as qo } from "./src/ap-field/segmented/index.vue.mjs";
|
|
45
|
+
import { default as Qo } from "./src/ap-field/rate/index.vue.mjs";
|
|
46
|
+
import { adminToken as Yo, aplusToken as Zo } from "./src/design-token/index.mjs";
|
|
47
|
+
import { ApActionItem as oe } from "./src/ap-action/index.mjs";
|
|
48
|
+
import { default as re } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
49
|
+
import { default as pe } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
50
|
+
import { default as fe } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
51
|
+
import { default as le } from "./src/ap-action/group/index.vue.mjs";
|
|
52
|
+
import { DictCode as de, langMap as ue } from "./src/work-order-modal/interfaces.mjs";
|
|
53
|
+
import { createWorkOrderModal as Ae } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
54
|
+
import { default as ie } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
55
|
+
import { default as Fe } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
56
|
+
import { default as Ie } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
57
|
+
import { default as Ce } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
58
|
+
import { NeedNameKeyDefault as De } from "./src/ap-upload/apUploadTypes.mjs";
|
|
59
|
+
import { default as he } from "./src/ap-upload/apUpload.vue.mjs";
|
|
60
|
+
import { ApDownLoadNeedNameKeyDefault as ye } from "./src/ap-download/interface.mjs";
|
|
61
|
+
import { default as Pe } from "./src/ap-download/ap-download.vue.mjs";
|
|
62
|
+
import { CheckCard as Me } from "./src/check-card/index.mjs";
|
|
63
|
+
import { default as Re } from "./src/check-card/group.vue.mjs";
|
|
64
|
+
import { ApModal as ve } from "./src/ap-modal/index.mjs";
|
|
65
|
+
import { default as Be } from "./src/ap-list/index.vue.mjs";
|
|
66
|
+
import { default as Oe } from "./src/ap-button/ap-button.vue.mjs";
|
|
67
|
+
import { default as We } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
68
|
+
import { ApDrawer as He } from "./src/ap-drawer/index.mjs";
|
|
69
|
+
import { ApTransformDataHelper as $e } from "./src/utils/ap-trans-data/index.mjs";
|
|
70
|
+
import { default as qe } from "./src/business/ap-table-modal/index.mjs";
|
|
71
|
+
import { useTableModal as Qe } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
72
|
+
import { useTableSelectModal as Ye } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
73
|
+
import { ApAttachment as _e } from "./src/business/ap-attachment/index.mjs";
|
|
74
|
+
import { ApBatchAction as er } from "./src/business/ap-batch-action/index.mjs";
|
|
75
75
|
import { ApBatchActionGroup as tr } from "./src/business/ap-batch-action-group/index.mjs";
|
|
76
76
|
import { ApButtonGroup as ar } from "./src/business/ap-button-group/index.mjs";
|
|
77
77
|
import { ApCard as mr } from "./src/business/ap-card/index.mjs";
|
|
@@ -79,164 +79,166 @@ import { ApExpandAlert as xr } from "./src/business/ap-expand-alert/index.mjs";
|
|
|
79
79
|
import { ApExportGroupActionType as ur } from "./src/business/ap-export-group/interface.mjs";
|
|
80
80
|
import { ApExportGroup as Ar } from "./src/business/ap-export-group/index.mjs";
|
|
81
81
|
import { handleExportDownload as ir } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import { default as rt } from "./src/business/
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import { default as st } from "./src/editable-table/
|
|
104
|
-
import { default as nt } from "./src/
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
82
|
+
import { convertExportField as Fr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
83
|
+
import { ApImage as Ir } from "./src/business/ap-image/index.mjs";
|
|
84
|
+
import { ApInputRadio as Cr } from "./src/business/ap-input-radio/index.mjs";
|
|
85
|
+
import { ApLabel as Dr, ApLabelGroup as Sr } from "./src/business/ap-label/index.mjs";
|
|
86
|
+
import { locales as Gr } from "./src/business/ap-ladder/interface.mjs";
|
|
87
|
+
import { ApLadder as Nr } from "./src/business/ap-ladder/index.mjs";
|
|
88
|
+
import { ApSelectLayout as Lr } from "./src/business/ap-select-layout/index.mjs";
|
|
89
|
+
import { ApStatus as wr, ApStatusGroup as Rr } from "./src/business/ap-status/index.mjs";
|
|
90
|
+
import { ApTitle as vr } from "./src/business/ap-title/index.mjs";
|
|
91
|
+
import { usePageListApTable as Br } from "./src/business/hooks/usePageListApTable.mjs";
|
|
92
|
+
import { useTableRefresh as Or } from "./src/business/hooks/useTableRefresh.mjs";
|
|
93
|
+
import { computedRecords as Wr, flattenColumns as zr, formatDataIndex as Hr, formatNumber as Vr } from "./src/business/ap-summary/utils.mjs";
|
|
94
|
+
import { ApSummary as jr } from "./src/business/ap-summary/index.mjs";
|
|
95
|
+
import { ApNeedNameKeyDefault as Jr } from "./src/business/ap-appendix/interface.mjs";
|
|
96
|
+
import { ApAppendix as Xr } from "./src/business/ap-appendix/index.mjs";
|
|
97
|
+
import { ApExtensionSelect as Zr, ApGroupSearch as _r, ApPopoverSelect as ot } from "./src/business/ap-group-search/index.mjs";
|
|
98
|
+
import { default as rt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
99
|
+
import { default as pt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
100
|
+
import { ApSizeInput as ft } from "./src/business/ap-size-input/index.mjs";
|
|
101
|
+
import { useTablePaging as lt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
102
|
+
import { ApTable as dt } from "./src/ap-table/index.mjs";
|
|
103
|
+
import { default as st } from "./src/editable-table/index.vue.mjs";
|
|
104
|
+
import { default as nt } from "./src/editable-table/form-item.vue.mjs";
|
|
105
|
+
import { default as ct } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
106
|
+
import { ApScrollBar as bt } from "./src/ap-scroll-bar/index.mjs";
|
|
107
|
+
import { useMessage as Tt } from "./src/hooks/useMessage.mjs";
|
|
108
|
+
import { useControllableValue as gt } from "./src/hooks/useControllableValue.mjs";
|
|
108
109
|
const a = {
|
|
109
110
|
install: (r) => {
|
|
110
|
-
for (const t in
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
for (const t in e) {
|
|
112
|
+
const o = e[t];
|
|
113
|
+
o.install && r.use(o);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
export {
|
|
117
118
|
w as APConfigProvider,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
We as ApActionButton,
|
|
120
|
+
le as ApActionGroup,
|
|
121
|
+
oe as ApActionItem,
|
|
122
|
+
fe as ApActionItemDropdown,
|
|
123
|
+
re as ApActionItemModal,
|
|
124
|
+
pe as ApActionItemPopconfirm,
|
|
125
|
+
Xr as ApAppendix,
|
|
126
|
+
_e as ApAttachment,
|
|
127
|
+
er as ApBatchAction,
|
|
127
128
|
tr as ApBatchActionGroup,
|
|
128
|
-
|
|
129
|
+
Oe as ApButton,
|
|
129
130
|
ar as ApButtonGroup,
|
|
130
131
|
mr as ApCard,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
ct as ApDescriptions,
|
|
133
|
+
ye as ApDownLoadNeedNameKeyDefault,
|
|
134
|
+
Pe as ApDownload,
|
|
135
|
+
He as ApDrawer,
|
|
135
136
|
xr as ApExpandAlert,
|
|
136
137
|
Ar as ApExportGroup,
|
|
137
138
|
ur as ApExportGroupActionType,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
139
|
+
Zr as ApExtensionSelect,
|
|
140
|
+
Do as ApField,
|
|
141
|
+
yo as ApFieldCheckbox,
|
|
142
|
+
Po as ApFieldDate,
|
|
143
|
+
Oo as ApFieldDateRange,
|
|
144
|
+
Mo as ApFieldNumber,
|
|
145
|
+
Ho as ApFieldPassword,
|
|
146
|
+
Ro as ApFieldRadio,
|
|
147
|
+
Qo as ApFieldRate,
|
|
148
|
+
qo as ApFieldSegmented,
|
|
149
|
+
Wo as ApFieldSelect,
|
|
150
|
+
$o as ApFieldSlider,
|
|
151
|
+
vo as ApFieldSwitch,
|
|
152
|
+
ho as ApFieldText,
|
|
153
|
+
Bo as ApFieldTextArea,
|
|
154
|
+
oo as ApForm,
|
|
155
|
+
Io as ApFormControlRender,
|
|
156
|
+
Ao as ApFormDependency,
|
|
157
|
+
Fo as ApFormDrawerForm,
|
|
158
|
+
ro as ApFormItem,
|
|
158
159
|
X as ApFormItemCheckbox,
|
|
159
160
|
U as ApFormItemDate,
|
|
160
161
|
z as ApFormItemDateRange,
|
|
161
|
-
|
|
162
|
+
po as ApFormItemGroup,
|
|
162
163
|
K as ApFormItemNumber,
|
|
163
164
|
V as ApFormItemRadio,
|
|
164
|
-
|
|
165
|
+
Co as ApFormItemRender,
|
|
165
166
|
j as ApFormItemSelect,
|
|
166
167
|
J as ApFormItemSwitch,
|
|
167
168
|
k as ApFormItemText,
|
|
168
|
-
|
|
169
|
+
E as ApFormItemTextArea,
|
|
169
170
|
Z as ApFormItemTextPassword,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
$
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
171
|
+
fo as ApFormList,
|
|
172
|
+
uo as ApFormModalForm,
|
|
173
|
+
lo as ApFormSearchForm,
|
|
174
|
+
io as ApFormSet,
|
|
175
|
+
_r as ApGroupSearch,
|
|
176
|
+
Ir as ApImage,
|
|
177
|
+
Ce as ApInfoLayout,
|
|
178
|
+
Cr as ApInputRadio,
|
|
179
|
+
Dr as ApLabel,
|
|
180
|
+
Sr as ApLabelGroup,
|
|
181
|
+
Nr as ApLadder,
|
|
182
|
+
Be as ApList,
|
|
183
|
+
ve as ApModal,
|
|
184
|
+
Jr as ApNeedNameKeyDefault,
|
|
185
|
+
ot as ApPopoverSelect,
|
|
186
|
+
bt as ApScrollBar,
|
|
187
|
+
Lr as ApSelectLayout,
|
|
188
|
+
ft as ApSizeInput,
|
|
189
|
+
wr as ApStatus,
|
|
190
|
+
Rr as ApStatusGroup,
|
|
191
|
+
jr as ApSummary,
|
|
192
|
+
dt as ApTable,
|
|
193
|
+
qe as ApTableModal,
|
|
194
|
+
Fe as ApTag,
|
|
195
|
+
Ie as ApTagGroup,
|
|
196
|
+
vr as ApTitle,
|
|
197
|
+
$e as ApTransformDataHelper,
|
|
198
|
+
he as ApUpload,
|
|
199
|
+
rt as ApUploadSingle,
|
|
200
|
+
pt as BatchInputGroup,
|
|
201
|
+
Me as CheckCard,
|
|
202
|
+
Re as CheckCardGroup,
|
|
202
203
|
P as ConfigProvider,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
de as DictCode,
|
|
205
|
+
st as EditableTable,
|
|
206
|
+
nt as EditableTableFormItem,
|
|
207
|
+
De as NeedNameKeyDefault,
|
|
208
|
+
ie as WorkOrderModal,
|
|
209
|
+
Yo as adminToken,
|
|
210
|
+
Zo as aplusToken,
|
|
210
211
|
b as buildLocaleContext,
|
|
211
212
|
I as buildTranslator,
|
|
212
|
-
|
|
213
|
+
Wr as computedRecords,
|
|
213
214
|
s as configProviderContextKey,
|
|
214
215
|
d as configProviderProps,
|
|
215
|
-
|
|
216
|
+
Fr as convertExportField,
|
|
217
|
+
Ae as createWorkOrderModal,
|
|
216
218
|
a as default,
|
|
217
219
|
S as defaultNamespace,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
zr as flattenColumns,
|
|
221
|
+
Hr as formatDataIndex,
|
|
222
|
+
Vr as formatNumber,
|
|
221
223
|
L as globalConfigCached,
|
|
222
224
|
ir as handleExportDownload,
|
|
223
225
|
n as keysOf,
|
|
224
|
-
|
|
226
|
+
ue as langMap,
|
|
225
227
|
T as localeContextKey,
|
|
226
|
-
|
|
228
|
+
Gr as locales,
|
|
227
229
|
h as namespaceContextKey,
|
|
228
230
|
l as pathMap,
|
|
229
231
|
i as provideGlobalConfig,
|
|
230
232
|
C as translate,
|
|
231
|
-
|
|
233
|
+
gt as useControllableValue,
|
|
232
234
|
G as useGetDerivedNamespace,
|
|
233
235
|
c as useGlobalConfig,
|
|
234
236
|
g as useLocale,
|
|
235
|
-
|
|
237
|
+
Tt as useMessage,
|
|
236
238
|
y as useNamespace,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
Br as usePageListApTable,
|
|
240
|
+
Qe as useTableModal,
|
|
241
|
+
lt as useTablePaging,
|
|
242
|
+
Or as useTableRefresh,
|
|
243
|
+
Ye as useTableSelectModal
|
|
242
244
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ApExportGroupProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApExportGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApExportGroupProps> & Readonly<{}>, {
|
|
4
|
+
exportField: boolean | {
|
|
5
|
+
key?: string;
|
|
6
|
+
convertField?: {
|
|
7
|
+
[key: string]: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
successMessage: boolean | string;
|
|
5
11
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
12
|
export default _default;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { message as
|
|
1
|
+
import { defineComponent as T, computed as r, ref as j, openBlock as y, createBlock as x, unref as a, normalizeClass as I, withCtx as s, createVNode as v, createTextVNode as g, toDisplayString as b, mergeProps as N, createCommentVNode as O } from "vue";
|
|
2
|
+
import { DownOutlined as V } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as q, Dropdown as z, Menu as $, MenuItem as k, Button as H } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
6
|
-
import { usePermission as
|
|
7
|
-
import { handleExportDownload as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import { ApExportGroupActionType as c } from "./interface.mjs";
|
|
6
|
+
import { usePermission as J } from "@aplus-frontend/hooks";
|
|
7
|
+
import { handleExportDownload as Q } from "./handleExportDownload.mjs";
|
|
8
|
+
import { useInjectApTable as U } from "../../ap-table/context.mjs";
|
|
9
|
+
import { convertExportField as W } from "./convertExportField.mjs";
|
|
10
|
+
import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as Y } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as C } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
const de = /* @__PURE__ */ T({
|
|
12
14
|
__name: "ApExportGroup",
|
|
13
15
|
props: {
|
|
14
16
|
selectedRowKeys: {},
|
|
@@ -21,65 +23,82 @@ const oe = /* @__PURE__ */ B({
|
|
|
21
23
|
getRequestParams: {},
|
|
22
24
|
getInitialParams: {},
|
|
23
25
|
beforeRequest: {},
|
|
24
|
-
successMessage: { type: [Boolean, String], default: !1 }
|
|
26
|
+
successMessage: { type: [Boolean, String], default: !1 },
|
|
27
|
+
exportField: { type: [Boolean, Object], default: void 0 }
|
|
25
28
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { hasPermission:
|
|
29
|
+
setup(S) {
|
|
30
|
+
const { hasPermission: _ } = J(), e = S, { columns: n } = U(), { b: L } = X("ap-export-group"), { t: u } = Y(), A = C("uiMode"), p = C("exportField"), B = r(() => {
|
|
28
31
|
const t = {
|
|
29
32
|
aplus: "#0070FF",
|
|
30
33
|
admin: "#34b77c"
|
|
31
34
|
};
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
35
|
+
return w.value ? "" : t[A.value] || t.aplus;
|
|
36
|
+
}), w = r(() => !!(e != null && e.disabled)), G = r(() => (e == null ? void 0 : e.successMessage) === !0 ? u("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), d = r(() => {
|
|
37
|
+
const t = "exportFieldList", o = (e == null ? void 0 : e.exportField) ?? (p.value === "" ? !0 : p.value) ?? !1;
|
|
38
|
+
return o === !0 ? {
|
|
39
|
+
key: t
|
|
40
|
+
} : typeof o == "object" ? {
|
|
41
|
+
...o,
|
|
42
|
+
key: o.key ?? t
|
|
43
|
+
} : o;
|
|
44
|
+
}), P = {
|
|
34
45
|
textAlign: "center"
|
|
35
|
-
},
|
|
46
|
+
}, f = j(!1), h = r(() => (e == null ? void 0 : e.selectedRowKeys) || []), K = r(() => {
|
|
36
47
|
let t = e == null ? void 0 : e.ifShow;
|
|
37
|
-
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () =>
|
|
48
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => _(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
38
49
|
});
|
|
39
|
-
async function
|
|
40
|
-
var
|
|
41
|
-
const { getRequestParams:
|
|
42
|
-
let
|
|
43
|
-
t ===
|
|
44
|
-
[(e == null ? void 0 : e.idKey) || "ids"]:
|
|
45
|
-
} : t ===
|
|
46
|
-
const
|
|
50
|
+
async function D({ key: t }) {
|
|
51
|
+
var E, F, M;
|
|
52
|
+
const { getRequestParams: o, request: l } = e || {};
|
|
53
|
+
let m = {};
|
|
54
|
+
t === c.SELECT ? m = {
|
|
55
|
+
[(e == null ? void 0 : e.idKey) || "ids"]: h.value
|
|
56
|
+
} : t === c.ALL && (m = (o == null ? void 0 : o()) || {});
|
|
57
|
+
const R = ((E = e == null ? void 0 : e.getInitialParams) == null ? void 0 : E.call(e)) || {};
|
|
47
58
|
try {
|
|
48
|
-
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
f.value = !0;
|
|
60
|
+
let i = Object.assign(
|
|
61
|
+
{
|
|
62
|
+
...m,
|
|
63
|
+
...R
|
|
64
|
+
},
|
|
65
|
+
d.value && (n != null && n.value) ? {
|
|
66
|
+
[d.value.key]: W(
|
|
67
|
+
n.value,
|
|
68
|
+
(F = d.value) == null ? void 0 : F.convertField
|
|
69
|
+
)
|
|
70
|
+
} : {}
|
|
71
|
+
);
|
|
72
|
+
i = ((M = e == null ? void 0 : e.beforeRequest) == null ? void 0 : M.call(e, i)) || i, await Q(async () => await (l == null ? void 0 : l(i))), e != null && e.successMessage && q.success(G.value);
|
|
54
73
|
} finally {
|
|
55
|
-
|
|
74
|
+
f.value = !1;
|
|
56
75
|
}
|
|
57
76
|
}
|
|
58
|
-
return (t,
|
|
77
|
+
return (t, o) => K.value ? (y(), x(a(z), {
|
|
59
78
|
key: 0,
|
|
60
|
-
class:
|
|
61
|
-
"overlay-style":
|
|
62
|
-
disabled:
|
|
79
|
+
class: I([a(L)()]),
|
|
80
|
+
"overlay-style": P,
|
|
81
|
+
disabled: w.value
|
|
63
82
|
}, {
|
|
64
83
|
overlay: s(() => [
|
|
65
|
-
|
|
84
|
+
v(a($), { onClick: D }, {
|
|
66
85
|
default: s(() => {
|
|
67
|
-
var
|
|
86
|
+
var l;
|
|
68
87
|
return [
|
|
69
|
-
(
|
|
70
|
-
key: a(
|
|
71
|
-
disabled: ((
|
|
88
|
+
(y(), x(a(k), {
|
|
89
|
+
key: a(c).SELECT,
|
|
90
|
+
disabled: ((l = h.value) == null ? void 0 : l.length) === 0
|
|
72
91
|
}, {
|
|
73
92
|
default: s(() => [
|
|
74
|
-
g(
|
|
93
|
+
g(b(a(u)("ap.apExportGroup.exportSelected")), 1)
|
|
75
94
|
]),
|
|
76
95
|
_: 1
|
|
77
96
|
}, 8, ["disabled"])),
|
|
78
|
-
(
|
|
79
|
-
key: a(
|
|
97
|
+
(y(), x(a(k), {
|
|
98
|
+
key: a(c).ALL
|
|
80
99
|
}, {
|
|
81
100
|
default: s(() => [
|
|
82
|
-
g(
|
|
101
|
+
g(b(a(u)("ap.apExportGroup.exportAll")), 1)
|
|
83
102
|
]),
|
|
84
103
|
_: 1
|
|
85
104
|
}))
|
|
@@ -89,25 +108,25 @@ const oe = /* @__PURE__ */ B({
|
|
|
89
108
|
})
|
|
90
109
|
]),
|
|
91
110
|
default: s(() => [
|
|
92
|
-
|
|
111
|
+
v(a(H), N({
|
|
93
112
|
...t.$attrs
|
|
94
113
|
}, {
|
|
95
114
|
style: {
|
|
96
|
-
color:
|
|
115
|
+
color: B.value
|
|
97
116
|
},
|
|
98
|
-
loading:
|
|
117
|
+
loading: f.value
|
|
99
118
|
}), {
|
|
100
119
|
default: s(() => [
|
|
101
|
-
g(
|
|
102
|
-
|
|
120
|
+
g(b((e == null ? void 0 : e.text) ?? a(u)("ap.apExportGroup.export")) + " ", 1),
|
|
121
|
+
v(a(V))
|
|
103
122
|
]),
|
|
104
123
|
_: 1
|
|
105
124
|
}, 16, ["style", "loading"])
|
|
106
125
|
]),
|
|
107
126
|
_: 1
|
|
108
|
-
}, 8, ["class", "disabled"])) :
|
|
127
|
+
}, 8, ["class", "disabled"])) : O("", !0);
|
|
109
128
|
}
|
|
110
129
|
});
|
|
111
130
|
export {
|
|
112
|
-
|
|
131
|
+
de as default
|
|
113
132
|
};
|