@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.
Files changed (35) hide show
  1. package/es/index.mjs +177 -175
  2. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -0
  3. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
  4. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +71 -52
  5. package/es/src/business/ap-export-group/convertExportField.d.ts +4 -0
  6. package/es/src/business/ap-export-group/convertExportField.mjs +13 -0
  7. package/es/src/business/ap-export-group/index.d.ts +20 -1
  8. package/es/src/business/ap-export-group/index.mjs +8 -6
  9. package/es/src/business/ap-export-group/interface.d.ts +9 -0
  10. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  11. package/es/src/config-provider/config-provider-props.mjs +4 -0
  12. package/es/src/config-provider/config-provider.d.ts +10 -1
  13. package/es/src/config-provider/config-provider.mjs +11 -10
  14. package/es/src/config-provider/constants.d.ts +6 -0
  15. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  16. package/es/src/config-provider/index.d.ts +16 -1
  17. package/es/src/index.mjs +59 -57
  18. package/lib/index.js +1 -1
  19. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  20. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
  21. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  22. package/lib/src/business/ap-export-group/convertExportField.d.ts +4 -0
  23. package/lib/src/business/ap-export-group/convertExportField.js +1 -0
  24. package/lib/src/business/ap-export-group/index.d.ts +20 -1
  25. package/lib/src/business/ap-export-group/index.js +1 -1
  26. package/lib/src/business/ap-export-group/interface.d.ts +9 -0
  27. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  28. package/lib/src/config-provider/config-provider-props.js +1 -1
  29. package/lib/src/config-provider/config-provider.d.ts +10 -1
  30. package/lib/src/config-provider/config-provider.js +1 -1
  31. package/lib/src/config-provider/constants.d.ts +6 -0
  32. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  33. package/lib/src/config-provider/index.d.ts +16 -1
  34. package/lib/src/index.js +1 -1
  35. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import * as o from "./src/index.mjs";
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 B } from "./src/ap-form/items/text-area/index.vue.mjs";
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 ee } from "./src/ap-form/index.mjs";
22
- import { default as re } from "./src/ap-form/item/index.vue.mjs";
23
- import { default as pe } from "./src/ap-form/item-group/index.vue.mjs";
24
- import { default as fe } from "./src/ap-form/list/index.vue.mjs";
25
- import { default as le } from "./src/ap-form/search-form/index.vue.mjs";
26
- import { default as de } from "./src/ap-form/modal-form/index.vue.mjs";
27
- import { default as se } from "./src/ap-form/dependency/index.vue.mjs";
28
- import { default as ne } from "./src/ap-form/set/index.vue.mjs";
29
- import { default as ce } from "./src/ap-form/drawer-form/index.vue.mjs";
30
- import { default as be } from "./src/ap-form/render/control.vue.mjs";
31
- import { default as Te } from "./src/ap-form/render/item.vue.mjs";
32
- import { ApField as ge } from "./src/ap-field/index.mjs";
33
- import { ApFieldText as Se } from "./src/ap-field/text/index.mjs";
34
- import { default as Ge } from "./src/ap-field/checkbox/index.vue.mjs";
35
- import { default as Ne } from "./src/ap-field/date/index.vue.mjs";
36
- import { default as Le } from "./src/ap-field/number/index.vue.mjs";
37
- import { default as we } from "./src/ap-field/radio/index.vue.mjs";
38
- import { default as ke } from "./src/ap-field/switch/index.vue.mjs";
39
- import { default as Be } from "./src/ap-field/text-area/index.vue.mjs";
40
- import { default as Ke } from "./src/ap-field/date-range/index.vue.mjs";
41
- import { default as Ue } from "./src/ap-field/select/index.vue.mjs";
42
- import { default as ze } from "./src/ap-field/text/password.vue.mjs";
43
- import { default as Ve } from "./src/ap-field/slider/index.vue.mjs";
44
- import { default as je } from "./src/ap-field/segmented/index.vue.mjs";
45
- import { default as Je } from "./src/ap-field/rate/index.vue.mjs";
46
- import { adminToken as Xe, aplusToken as Ye } from "./src/design-token/index.mjs";
47
- import { ApActionItem as _e } from "./src/ap-action/index.mjs";
48
- import { default as oo } from "./src/ap-action/item-modal/index.vue.mjs";
49
- import { default as to } from "./src/ap-action/item-popconfirm/index.vue.mjs";
50
- import { default as ao } from "./src/ap-action/item-dropdown/index.vue.mjs";
51
- import { default as mo } from "./src/ap-action/group/index.vue.mjs";
52
- import { DictCode as xo, langMap as uo } from "./src/work-order-modal/interfaces.mjs";
53
- import { createWorkOrderModal as Ao } from "./src/work-order-modal/createWorkOrder.mjs";
54
- import { default as io } from "./src/work-order-modal/work-order-modal.vue.mjs";
55
- import { default as Fo } from "./src/ap-tag/ap-tag.vue.mjs";
56
- import { default as Io } from "./src/ap-tag/ap-tag-group.vue.mjs";
57
- import { default as Co } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
58
- import { NeedNameKeyDefault as Do } from "./src/ap-upload/apUploadTypes.mjs";
59
- import { default as ho } from "./src/ap-upload/apUpload.vue.mjs";
60
- import { ApDownLoadNeedNameKeyDefault as yo } from "./src/ap-download/interface.mjs";
61
- import { default as Po } from "./src/ap-download/ap-download.vue.mjs";
62
- import { CheckCard as Mo } from "./src/check-card/index.mjs";
63
- import { default as Ro } from "./src/check-card/group.vue.mjs";
64
- import { ApModal as vo } from "./src/ap-modal/index.mjs";
65
- import { default as Eo } from "./src/ap-list/index.vue.mjs";
66
- import { default as Oo } from "./src/ap-button/ap-button.vue.mjs";
67
- import { default as Wo } from "./src/ap-button/ap-action-button.vue.mjs";
68
- import { ApDrawer as Ho } from "./src/ap-drawer/index.mjs";
69
- import { ApTransformDataHelper as $o } from "./src/utils/ap-trans-data/index.mjs";
70
- import { default as qo } from "./src/business/ap-table-modal/index.mjs";
71
- import { useTableModal as Qo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
72
- import { useTableSelectModal as Yo } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
73
- import { ApAttachment as _o } from "./src/business/ap-attachment/index.mjs";
74
- import { ApBatchAction as or } from "./src/business/ap-batch-action/index.mjs";
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 { ApImage as Fr } from "./src/business/ap-image/index.mjs";
83
- import { ApInputRadio as Ir } from "./src/business/ap-input-radio/index.mjs";
84
- import { ApLabel as Cr, ApLabelGroup as gr } from "./src/business/ap-label/index.mjs";
85
- import { locales as Sr } from "./src/business/ap-ladder/interface.mjs";
86
- import { ApLadder as Gr } from "./src/business/ap-ladder/index.mjs";
87
- import { ApSelectLayout as Nr } from "./src/business/ap-select-layout/index.mjs";
88
- import { ApStatus as Lr, ApStatusGroup as Mr } from "./src/business/ap-status/index.mjs";
89
- import { ApTitle as Rr } from "./src/business/ap-title/index.mjs";
90
- import { usePageListApTable as vr } from "./src/business/hooks/usePageListApTable.mjs";
91
- import { useTableRefresh as Er } from "./src/business/hooks/useTableRefresh.mjs";
92
- import { computedRecords as Or, flattenColumns as Ur, formatDataIndex as Wr, formatNumber as zr } from "./src/business/ap-summary/utils.mjs";
93
- import { ApSummary as Vr } from "./src/business/ap-summary/index.mjs";
94
- import { ApNeedNameKeyDefault as jr } from "./src/business/ap-appendix/interface.mjs";
95
- import { ApAppendix as Jr } from "./src/business/ap-appendix/index.mjs";
96
- import { ApExtensionSelect as Xr, ApGroupSearch as Yr, ApPopoverSelect as Zr } from "./src/business/ap-group-search/index.mjs";
97
- import { default as et } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
98
- import { default as rt } from "./src/business/batch-input-group/index.vue.mjs";
99
- import { ApSizeInput as pt } from "./src/business/ap-size-input/index.mjs";
100
- import { useTablePaging as ft } from "./src/ap-table/hooks/use-table-paging.mjs";
101
- import { ApTable as lt } from "./src/ap-table/index.mjs";
102
- import { default as dt } from "./src/editable-table/index.vue.mjs";
103
- import { default as st } from "./src/editable-table/form-item.vue.mjs";
104
- import { default as nt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
105
- import { ApScrollBar as ct } from "./src/ap-scroll-bar/index.mjs";
106
- import { useMessage as bt } from "./src/hooks/useMessage.mjs";
107
- import { useControllableValue as Tt } from "./src/hooks/useControllableValue.mjs";
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 o) {
111
- const e = o[t];
112
- e.install && r.use(e);
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
- Wo as ApActionButton,
119
- mo as ApActionGroup,
120
- _e as ApActionItem,
121
- ao as ApActionItemDropdown,
122
- oo as ApActionItemModal,
123
- to as ApActionItemPopconfirm,
124
- Jr as ApAppendix,
125
- _o as ApAttachment,
126
- or as ApBatchAction,
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
- Oo as ApButton,
129
+ Oe as ApButton,
129
130
  ar as ApButtonGroup,
130
131
  mr as ApCard,
131
- nt as ApDescriptions,
132
- yo as ApDownLoadNeedNameKeyDefault,
133
- Po as ApDownload,
134
- Ho as ApDrawer,
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
- Xr as ApExtensionSelect,
139
- ge as ApField,
140
- Ge as ApFieldCheckbox,
141
- Ne as ApFieldDate,
142
- Ke as ApFieldDateRange,
143
- Le as ApFieldNumber,
144
- ze as ApFieldPassword,
145
- we as ApFieldRadio,
146
- Je as ApFieldRate,
147
- je as ApFieldSegmented,
148
- Ue as ApFieldSelect,
149
- Ve as ApFieldSlider,
150
- ke as ApFieldSwitch,
151
- Se as ApFieldText,
152
- Be as ApFieldTextArea,
153
- ee as ApForm,
154
- be as ApFormControlRender,
155
- se as ApFormDependency,
156
- ce as ApFormDrawerForm,
157
- re as ApFormItem,
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
- pe as ApFormItemGroup,
162
+ po as ApFormItemGroup,
162
163
  K as ApFormItemNumber,
163
164
  V as ApFormItemRadio,
164
- Te as ApFormItemRender,
165
+ Co as ApFormItemRender,
165
166
  j as ApFormItemSelect,
166
167
  J as ApFormItemSwitch,
167
168
  k as ApFormItemText,
168
- B as ApFormItemTextArea,
169
+ E as ApFormItemTextArea,
169
170
  Z as ApFormItemTextPassword,
170
- fe as ApFormList,
171
- de as ApFormModalForm,
172
- le as ApFormSearchForm,
173
- ne as ApFormSet,
174
- Yr as ApGroupSearch,
175
- Fr as ApImage,
176
- Co as ApInfoLayout,
177
- Ir as ApInputRadio,
178
- Cr as ApLabel,
179
- gr as ApLabelGroup,
180
- Gr as ApLadder,
181
- Eo as ApList,
182
- vo as ApModal,
183
- jr as ApNeedNameKeyDefault,
184
- Zr as ApPopoverSelect,
185
- ct as ApScrollBar,
186
- Nr as ApSelectLayout,
187
- pt as ApSizeInput,
188
- Lr as ApStatus,
189
- Mr as ApStatusGroup,
190
- Vr as ApSummary,
191
- lt as ApTable,
192
- qo as ApTableModal,
193
- Fo as ApTag,
194
- Io as ApTagGroup,
195
- Rr as ApTitle,
196
- $o as ApTransformDataHelper,
197
- ho as ApUpload,
198
- et as ApUploadSingle,
199
- rt as BatchInputGroup,
200
- Mo as CheckCard,
201
- Ro as CheckCardGroup,
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
- xo as DictCode,
204
- dt as EditableTable,
205
- st as EditableTableFormItem,
206
- Do as NeedNameKeyDefault,
207
- io as WorkOrderModal,
208
- Xe as adminToken,
209
- Ye as aplusToken,
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
- Or as computedRecords,
213
+ Wr as computedRecords,
213
214
  s as configProviderContextKey,
214
215
  d as configProviderProps,
215
- Ao as createWorkOrderModal,
216
+ Fr as convertExportField,
217
+ Ae as createWorkOrderModal,
216
218
  a as default,
217
219
  S as defaultNamespace,
218
- Ur as flattenColumns,
219
- Wr as formatDataIndex,
220
- zr as formatNumber,
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
- uo as langMap,
226
+ ue as langMap,
225
227
  T as localeContextKey,
226
- Sr as locales,
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
- Tt as useControllableValue,
233
+ gt as useControllableValue,
232
234
  G as useGetDerivedNamespace,
233
235
  c as useGlobalConfig,
234
236
  g as useLocale,
235
- bt as useMessage,
237
+ Tt as useMessage,
236
238
  y as useNamespace,
237
- vr as usePageListApTable,
238
- Qo as useTableModal,
239
- ft as useTablePaging,
240
- Er as useTableRefresh,
241
- Yo as useTableSelectModal
239
+ Br as usePageListApTable,
240
+ Qe as useTableModal,
241
+ lt as useTablePaging,
242
+ Or as useTableRefresh,
243
+ Ye as useTableSelectModal
242
244
  };
@@ -69,6 +69,7 @@ const ie = {
69
69
  "onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
70
70
  title: e(a)("ap.apTable.setting.title"),
71
71
  width: 900,
72
+ centered: !0,
72
73
  "body-style": {
73
74
  padding: "0px !important",
74
75
  height: "450px"
@@ -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 B, computed as l, ref as D, openBlock as m, createBlock as f, unref as a, normalizeClass as K, withCtx as s, createVNode as y, createTextVNode as g, toDisplayString as x, mergeProps as R, createCommentVNode as N } from "vue";
2
- import { DownOutlined as T } from "@ant-design/icons-vue";
3
- import { message as I, Dropdown as V, Menu as q, MenuItem as M, Button as F } from "@aplus-frontend/antdv";
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 i } from "./interface.mjs";
6
- import { usePermission as z } from "@aplus-frontend/hooks";
7
- import { handleExportDownload as O } from "./handleExportDownload.mjs";
8
- import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as j } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as H } from "../../config-provider/hooks/use-global-config.mjs";
11
- const oe = /* @__PURE__ */ B({
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(E) {
27
- const { hasPermission: C } = z(), e = E, { b: S } = $("ap-export-group"), { t: n } = j(), _ = H("uiMode"), L = l(() => {
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 b.value ? "" : t[_.value] || t.aplus;
33
- }), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
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
- }, c = D(!1), v = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
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 = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
48
+ return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => _(e.auth)), (t == null ? void 0 : t()) ?? !0;
38
49
  });
39
- async function k({ key: t }) {
40
- var w, h;
41
- const { getRequestParams: r, request: o } = e || {};
42
- let d = {};
43
- t === i.SELECT ? d = {
44
- [(e == null ? void 0 : e.idKey) || "ids"]: v.value
45
- } : t === i.ALL && (d = (r == null ? void 0 : r()) || {});
46
- const p = ((w = e == null ? void 0 : e.getInitialParams) == null ? void 0 : w.call(e)) || {};
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
- c.value = !0;
49
- let u = {
50
- ...d,
51
- ...p
52
- };
53
- u = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, u)) || u, await O(async () => await (o == null ? void 0 : o(u))), e != null && e.successMessage && I.success(A.value);
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
- c.value = !1;
74
+ f.value = !1;
56
75
  }
57
76
  }
58
- return (t, r) => P.value ? (m(), f(a(V), {
77
+ return (t, o) => K.value ? (y(), x(a(z), {
59
78
  key: 0,
60
- class: K([a(S)()]),
61
- "overlay-style": G,
62
- disabled: b.value
79
+ class: I([a(L)()]),
80
+ "overlay-style": P,
81
+ disabled: w.value
63
82
  }, {
64
83
  overlay: s(() => [
65
- y(a(q), { onClick: k }, {
84
+ v(a($), { onClick: D }, {
66
85
  default: s(() => {
67
- var o;
86
+ var l;
68
87
  return [
69
- (m(), f(a(M), {
70
- key: a(i).SELECT,
71
- disabled: ((o = v.value) == null ? void 0 : o.length) === 0
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(x(a(n)("ap.apExportGroup.exportSelected")), 1)
93
+ g(b(a(u)("ap.apExportGroup.exportSelected")), 1)
75
94
  ]),
76
95
  _: 1
77
96
  }, 8, ["disabled"])),
78
- (m(), f(a(M), {
79
- key: a(i).ALL
97
+ (y(), x(a(k), {
98
+ key: a(c).ALL
80
99
  }, {
81
100
  default: s(() => [
82
- g(x(a(n)("ap.apExportGroup.exportAll")), 1)
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
- y(a(F), R({
111
+ v(a(H), N({
93
112
  ...t.$attrs
94
113
  }, {
95
114
  style: {
96
- color: L.value
115
+ color: B.value
97
116
  },
98
- loading: c.value
117
+ loading: f.value
99
118
  }), {
100
119
  default: s(() => [
101
- g(x((e == null ? void 0 : e.text) ?? a(n)("ap.apExportGroup.export")) + " ", 1),
102
- y(a(T))
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"])) : N("", !0);
127
+ }, 8, ["class", "disabled"])) : O("", !0);
109
128
  }
110
129
  });
111
130
  export {
112
- oe as default
131
+ de as default
113
132
  };
@@ -0,0 +1,4 @@
1
+ import { ColumnType } from '@aplus-frontend/antdv/es/table';
2
+ export declare const convertExportField: (columns: ColumnType[], convertField?: {
3
+ [key: string]: string[];
4
+ }) => any[];