@aplus-frontend/ui 0.4.33 → 0.4.35

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 (59) hide show
  1. package/es/index.mjs +119 -117
  2. package/es/src/ap-button/ap-confirm-button.vue.d.ts +20 -0
  3. package/es/src/ap-button/ap-confirm-button.vue.mjs +56 -0
  4. package/es/src/ap-button/ap-confirm-button.vue2.mjs +4 -0
  5. package/es/src/ap-button/index.d.ts +2 -1
  6. package/es/src/ap-button/index.mjs +1 -0
  7. package/es/src/ap-button/interface.d.ts +6 -1
  8. package/es/src/ap-button/utils/index.d.ts +2 -0
  9. package/es/src/ap-button/utils/index.mjs +36 -16
  10. package/es/src/ap-form/search-form/index.vue.mjs +14 -15
  11. package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
  12. package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
  13. package/es/src/ap-modal/index.d.ts +2 -1
  14. package/es/src/ap-modal/index.mjs +2 -0
  15. package/es/src/ap-modal/interface.d.ts +126 -1
  16. package/es/src/ap-modal/utils/createModal.mjs +28 -28
  17. package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
  18. package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
  19. package/es/src/ap-modal/utils/index.d.ts +1 -0
  20. package/es/src/ap-modal/utils/index.mjs +4 -2
  21. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
  22. package/es/src/ap-table/utils.d.ts +1 -4
  23. package/es/src/ap-table/utils.mjs +43 -41
  24. package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
  25. package/es/src/index.mjs +109 -107
  26. package/lib/index.js +1 -1
  27. package/lib/src/ap-button/ap-confirm-button.vue.d.ts +20 -0
  28. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -0
  29. package/lib/src/ap-button/ap-confirm-button.vue2.js +1 -0
  30. package/lib/src/ap-button/index.d.ts +2 -1
  31. package/lib/src/ap-button/index.js +1 -1
  32. package/lib/src/ap-button/interface.d.ts +6 -1
  33. package/lib/src/ap-button/utils/index.d.ts +2 -0
  34. package/lib/src/ap-button/utils/index.js +1 -1
  35. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  36. package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
  37. package/lib/src/ap-modal/enums/modalMessage.js +1 -0
  38. package/lib/src/ap-modal/index.d.ts +2 -1
  39. package/lib/src/ap-modal/index.js +1 -1
  40. package/lib/src/ap-modal/interface.d.ts +126 -1
  41. package/lib/src/ap-modal/utils/createModal.js +1 -1
  42. package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
  43. package/lib/src/ap-modal/utils/createModalStream.js +1 -0
  44. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  45. package/lib/src/ap-modal/utils/index.js +1 -1
  46. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
  47. package/lib/src/ap-table/utils.d.ts +1 -4
  48. package/lib/src/ap-table/utils.js +1 -1
  49. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  50. package/lib/src/index.js +1 -1
  51. package/package.json +4 -4
  52. package/theme/antd-global-overwrite/admin/index.css +8 -1
  53. package/theme/antd-global-overwrite/admin/modal.css +8 -1
  54. package/theme/antd-global-overwrite/admin/modal.less +10 -1
  55. package/theme/antd-global-overwrite/aplus/index.css +8 -1
  56. package/theme/antd-global-overwrite/aplus/modal.css +8 -1
  57. package/theme/antd-global-overwrite/aplus/modal.less +10 -1
  58. package/theme/ap-grid/index.css +302 -0
  59. package/theme/ap-grid/index.less +65 -0
package/es/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { buildLocaleContext as T, buildTranslator as S, localeContextKey as C, t
8
8
  import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as R, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
9
9
  import { ConfigProvider as L, globalConfigCached as N } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as w } from "./src/config-provider/index.mjs";
11
- import { ApFormItemText as k } from "./src/ap-form/items/text/index.mjs";
11
+ import { ApFormItemText as B } from "./src/ap-form/items/text/index.mjs";
12
12
  import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
13
13
  import { default as U } from "./src/ap-form/items/number/index.vue.mjs";
14
14
  import { default as V } from "./src/ap-form/items/date/index.vue.mjs";
@@ -35,7 +35,7 @@ import { ApFieldText as Re } from "./src/ap-field/text/index.mjs";
35
35
  import { default as Ee } from "./src/ap-field/checkbox/index.vue.mjs";
36
36
  import { default as Ne } from "./src/ap-field/date/index.vue.mjs";
37
37
  import { default as we } from "./src/ap-field/number/index.vue.mjs";
38
- import { default as ke } from "./src/ap-field/radio/index.vue.mjs";
38
+ import { default as Be } from "./src/ap-field/radio/index.vue.mjs";
39
39
  import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
40
40
  import { default as Ue } from "./src/ap-field/text-area/index.vue.mjs";
41
41
  import { default as Ve } from "./src/ap-field/date-range/index.vue.mjs";
@@ -61,63 +61,64 @@ import { default as Mo } from "./src/ap-upload/apUpload.vue.mjs";
61
61
  import { ApDownLoadNeedNameKeyDefault as Lo } from "./src/ap-download/interface.mjs";
62
62
  import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
63
63
  import { CheckCard as vo } from "./src/check-card/index.mjs";
64
- import { default as Bo } from "./src/check-card/group.vue.mjs";
64
+ import { default as ko } from "./src/check-card/group.vue.mjs";
65
65
  import { ApModal as Oo } from "./src/ap-modal/index.mjs";
66
66
  import { default as zo } from "./src/ap-list/index.vue.mjs";
67
67
  import { default as Wo } from "./src/ap-button/ap-button.vue.mjs";
68
68
  import { default as Ho } from "./src/ap-button/ap-action-button.vue.mjs";
69
- import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
70
- import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
71
- import { default as Xo } from "./src/business/ap-table-modal/index.mjs";
72
- import { useTableModal as Zo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
73
- import { useTableSelectModal as or } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
74
- import { ApAttachment as tr } from "./src/business/ap-attachment/index.mjs";
75
- import { ApBatchAction as ar } from "./src/business/ap-batch-action/index.mjs";
76
- import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/index.mjs";
77
- import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
78
- import { ApCard as ur } from "./src/business/ap-card/index.mjs";
79
- import { ApExpandAlert as Ar } from "./src/business/ap-expand-alert/index.mjs";
80
- import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
81
- import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
82
- import { handleExportDownload as br } from "./src/business/ap-export-group/handleExportDownload.mjs";
83
- import { convertExportField as Sr } from "./src/business/ap-export-group/convertExportField.mjs";
84
- import { ApImage as Dr } from "./src/business/ap-image/index.mjs";
85
- import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
86
- import { ApLabel as Pr, ApLabelGroup as Rr } from "./src/business/ap-label/index.mjs";
87
- import { locales as Er } from "./src/business/ap-ladder/interface.mjs";
88
- import { ApLadder as Nr } from "./src/business/ap-ladder/index.mjs";
89
- import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
90
- import { ApStatus as kr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
91
- import { ApTitle as Or } from "./src/business/ap-title/index.mjs";
92
- import { usePageListApTable as zr } from "./src/business/hooks/usePageListApTable.mjs";
93
- import { useTableRefresh as Wr } from "./src/business/hooks/useTableRefresh.mjs";
94
- import { computedRecords as Hr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
95
- import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
96
- import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
97
- import { ApAppendix as et } from "./src/business/ap-appendix/index.mjs";
98
- import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
99
- import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
100
- import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
101
- import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
102
- import { ApSizeInput as st } from "./src/business/ap-size-input/index.mjs";
103
- import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
104
- import { ApTable as ct } from "./src/ap-table/index.mjs";
105
- import { default as It } from "./src/editable-table/index.vue.mjs";
106
- import { default as Tt } from "./src/editable-table/form-item.vue.mjs";
107
- import { default as Ct } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
108
- import { ensureRangeValue as gt } from "./src/scroll-bar/utils/index.mjs";
109
- import { default as Gt } from "./src/scroll-bar/index.vue.mjs";
110
- import { default as Rt } from "./src/scroll-bar/internal.vue.mjs";
111
- import { default as Et } from "./src/scroll-view/index.vue.mjs";
112
- import { default as Nt } from "./src/portal/index.vue.mjs";
113
- import { default as wt } from "./src/full-screen/index.vue.mjs";
114
- import { default as kt } from "./src/resize-observer/index.vue.mjs";
115
- import { useMessage as Kt } from "./src/hooks/useMessage.mjs";
116
- import { useControllableValue as Ut } from "./src/hooks/useControllableValue.mjs";
117
- import { useManualRef as Vt } from "./src/hooks/useManualRef.mjs";
118
- import { useThrottleRef as _t } from "./src/hooks/useThrottleRef.mjs";
119
- import { useFullScreen as $t } from "./src/hooks/useFullScreen.mjs";
120
- import { useResize as qt } from "./src/hooks/useResize.mjs";
69
+ import { default as jo } from "./src/ap-button/ap-confirm-button.vue.mjs";
70
+ import { ApDrawer as Jo } from "./src/ap-drawer/index.mjs";
71
+ import { ApTransformDataHelper as Xo } from "./src/utils/ap-trans-data/index.mjs";
72
+ import { default as Zo } from "./src/business/ap-table-modal/index.mjs";
73
+ import { useTableModal as or } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
74
+ import { useTableSelectModal as tr } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
75
+ import { ApAttachment as ar } from "./src/business/ap-attachment/index.mjs";
76
+ import { ApBatchAction as mr } from "./src/business/ap-batch-action/index.mjs";
77
+ import { ApBatchActionGroup as xr } from "./src/business/ap-batch-action-group/index.mjs";
78
+ import { ApButtonGroup as ur } from "./src/business/ap-button-group/index.mjs";
79
+ import { ApCard as Ar } from "./src/business/ap-card/index.mjs";
80
+ import { ApExpandAlert as ir } from "./src/business/ap-expand-alert/index.mjs";
81
+ import { ApExportGroupActionType as Fr } from "./src/business/ap-export-group/interface.mjs";
82
+ import { ApExportGroup as br } from "./src/business/ap-export-group/index.mjs";
83
+ import { handleExportDownload as Sr } from "./src/business/ap-export-group/handleExportDownload.mjs";
84
+ import { convertExportField as Dr } from "./src/business/ap-export-group/convertExportField.mjs";
85
+ import { ApImage as hr } from "./src/business/ap-image/index.mjs";
86
+ import { ApInputRadio as Pr } from "./src/business/ap-input-radio/index.mjs";
87
+ import { ApLabel as Mr, ApLabelGroup as Er } from "./src/business/ap-label/index.mjs";
88
+ import { locales as Nr } from "./src/business/ap-ladder/interface.mjs";
89
+ import { ApLadder as wr } from "./src/business/ap-ladder/index.mjs";
90
+ import { ApSelectLayout as Br } from "./src/business/ap-select-layout/index.mjs";
91
+ import { ApStatus as Kr, ApStatusGroup as Or } from "./src/business/ap-status/index.mjs";
92
+ import { ApTitle as zr } from "./src/business/ap-title/index.mjs";
93
+ import { usePageListApTable as Wr } from "./src/business/hooks/usePageListApTable.mjs";
94
+ import { useTableRefresh as Hr } from "./src/business/hooks/useTableRefresh.mjs";
95
+ import { computedRecords as jr, flattenColumns as qr, formatDataIndex as Jr, formatNumber as Qr } from "./src/business/ap-summary/utils.mjs";
96
+ import { ApSummary as Yr } from "./src/business/ap-summary/index.mjs";
97
+ import { ApNeedNameKeyDefault as et } from "./src/business/ap-appendix/interface.mjs";
98
+ import { ApAppendix as rt } from "./src/business/ap-appendix/index.mjs";
99
+ import { ApExtensionSelect as pt, ApGroupSearch as at, ApPopoverSelect as ft } from "./src/business/ap-group-search/index.mjs";
100
+ import { default as lt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
101
+ import { default as dt } from "./src/business/batch-input-group/index.vue.mjs";
102
+ import { default as st } from "./src/business/batch-input-group/form-item.vue.mjs";
103
+ import { ApSizeInput as nt } from "./src/business/ap-size-input/index.mjs";
104
+ import { useTablePaging as ct } from "./src/ap-table/hooks/use-table-paging.mjs";
105
+ import { ApTable as It } from "./src/ap-table/index.mjs";
106
+ import { default as Tt } from "./src/editable-table/index.vue.mjs";
107
+ import { default as Ct } from "./src/editable-table/form-item.vue.mjs";
108
+ import { default as gt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
109
+ import { ensureRangeValue as Gt } from "./src/scroll-bar/utils/index.mjs";
110
+ import { default as Rt } from "./src/scroll-bar/index.vue.mjs";
111
+ import { default as Et } from "./src/scroll-bar/internal.vue.mjs";
112
+ import { default as Nt } from "./src/scroll-view/index.vue.mjs";
113
+ import { default as wt } from "./src/portal/index.vue.mjs";
114
+ import { default as Bt } from "./src/full-screen/index.vue.mjs";
115
+ import { default as Kt } from "./src/resize-observer/index.vue.mjs";
116
+ import { useMessage as Ut } from "./src/hooks/useMessage.mjs";
117
+ import { useControllableValue as Vt } from "./src/hooks/useControllableValue.mjs";
118
+ import { useManualRef as _t } from "./src/hooks/useManualRef.mjs";
119
+ import { useThrottleRef as $t } from "./src/hooks/useThrottleRef.mjs";
120
+ import { useFullScreen as qt } from "./src/hooks/useFullScreen.mjs";
121
+ import { useResize as Qt } from "./src/hooks/useResize.mjs";
121
122
  const a = {
122
123
  install: (r) => {
123
124
  for (const t in o) {
@@ -134,28 +135,29 @@ export {
134
135
  xo as ApActionItemDropdown,
135
136
  ao as ApActionItemModal,
136
137
  mo as ApActionItemPopconfirm,
137
- et as ApAppendix,
138
- tr as ApAttachment,
139
- ar as ApBatchAction,
140
- mr as ApBatchActionGroup,
138
+ rt as ApAppendix,
139
+ ar as ApAttachment,
140
+ mr as ApBatchAction,
141
+ xr as ApBatchActionGroup,
141
142
  Wo as ApButton,
142
- xr as ApButtonGroup,
143
- ur as ApCard,
144
- Ct as ApDescriptions,
143
+ ur as ApButtonGroup,
144
+ Ar as ApCard,
145
+ jo as ApConfirmButton,
146
+ gt as ApDescriptions,
145
147
  Lo as ApDownLoadNeedNameKeyDefault,
146
148
  yo as ApDownload,
147
- jo as ApDrawer,
148
- Ar as ApExpandAlert,
149
- Fr as ApExportGroup,
150
- ir as ApExportGroupActionType,
151
- rt as ApExtensionSelect,
149
+ Jo as ApDrawer,
150
+ ir as ApExpandAlert,
151
+ br as ApExportGroup,
152
+ Fr as ApExportGroupActionType,
153
+ pt as ApExtensionSelect,
152
154
  Ge as ApField,
153
155
  Ee as ApFieldCheckbox,
154
156
  Ne as ApFieldDate,
155
157
  Ve as ApFieldDateRange,
156
158
  we as ApFieldNumber,
157
159
  $e as ApFieldPassword,
158
- ke as ApFieldRadio,
160
+ Be as ApFieldRadio,
159
161
  Ye as ApFieldRate,
160
162
  Qe as ApFieldSegmented,
161
163
  _e as ApFieldSelect,
@@ -168,7 +170,7 @@ export {
168
170
  ne as ApFormDependency,
169
171
  Ie as ApFormDrawerForm,
170
172
  pe as ApFormItem,
171
- dt as ApFormItemBatchInput,
173
+ st as ApFormItemBatchInput,
172
174
  Y as ApFormItemCheckbox,
173
175
  V as ApFormItemDate,
174
176
  _ as ApFormItemDateRange,
@@ -178,7 +180,7 @@ export {
178
180
  Ce as ApFormItemRender,
179
181
  q as ApFormItemSelect,
180
182
  Q as ApFormItemSwitch,
181
- k as ApFormItemText,
183
+ B as ApFormItemText,
182
184
  K as ApFormItemTextArea,
183
185
  ee as ApFormItemTextPassword,
184
186
  le as ApFormList,
@@ -186,85 +188,85 @@ export {
186
188
  ge as ApFormProvider,
187
189
  de as ApFormSearchForm,
188
190
  ce as ApFormSet,
189
- tt as ApGroupSearch,
190
- Dr as ApImage,
191
+ at as ApGroupSearch,
192
+ hr as ApImage,
191
193
  ho as ApInfoLayout,
192
- hr as ApInputRadio,
193
- Pr as ApLabel,
194
- Rr as ApLabelGroup,
195
- Nr as ApLadder,
194
+ Pr as ApInputRadio,
195
+ Mr as ApLabel,
196
+ Er as ApLabelGroup,
197
+ wr as ApLadder,
196
198
  zo as ApList,
197
199
  Oo as ApModal,
198
- Yr as ApNeedNameKeyDefault,
199
- pt as ApPopoverSelect,
200
- wr as ApSelectLayout,
201
- st as ApSizeInput,
202
- kr as ApStatus,
203
- Br as ApStatusGroup,
204
- Qr as ApSummary,
205
- ct as ApTable,
206
- Xo as ApTableModal,
200
+ et as ApNeedNameKeyDefault,
201
+ ft as ApPopoverSelect,
202
+ Br as ApSelectLayout,
203
+ nt as ApSizeInput,
204
+ Kr as ApStatus,
205
+ Or as ApStatusGroup,
206
+ Yr as ApSummary,
207
+ It as ApTable,
208
+ Zo as ApTableModal,
207
209
  So as ApTag,
208
210
  Do as ApTagGroup,
209
- Or as ApTitle,
210
- Jo as ApTransformDataHelper,
211
+ zr as ApTitle,
212
+ Xo as ApTransformDataHelper,
211
213
  Mo as ApUpload,
212
- ft as ApUploadSingle,
213
- lt as BatchInputGroup,
214
+ lt as ApUploadSingle,
215
+ dt as BatchInputGroup,
214
216
  vo as CheckCard,
215
- Bo as CheckCardGroup,
217
+ ko as CheckCardGroup,
216
218
  L as ConfigProvider,
217
219
  s as DEFAULT_NAMESPACE,
218
220
  A as DEFAULT_UIMODE,
219
221
  no as DictCode,
220
- It as EditableTable,
221
- Tt as EditableTableFormItem,
222
- wt as FullScreen,
223
- Rt as InternalScrollBar,
222
+ Tt as EditableTable,
223
+ Ct as EditableTableFormItem,
224
+ Bt as FullScreen,
225
+ Et as InternalScrollBar,
224
226
  Po as NeedNameKeyDefault,
225
- Nt as Portal,
226
- kt as ResizeObserver,
227
- Gt as ScrollBar,
228
- Et as ScrollView,
227
+ wt as Portal,
228
+ Kt as ResizeObserver,
229
+ Rt as ScrollBar,
230
+ Nt as ScrollView,
229
231
  bo as WorkOrderModal,
230
232
  eo as adminToken,
231
233
  oo as aplusToken,
232
234
  T as buildLocaleContext,
233
235
  S as buildTranslator,
234
- Hr as computedRecords,
236
+ jr as computedRecords,
235
237
  n as configProviderContextKey,
236
238
  d as configProviderProps,
237
- Sr as convertExportField,
239
+ Dr as convertExportField,
238
240
  Fo as createWorkOrderModal,
239
241
  a as default,
240
242
  G as defaultNamespace,
241
- gt as ensureRangeValue,
242
- $r as flattenColumns,
243
- jr as formatDataIndex,
244
- qr as formatNumber,
243
+ Gt as ensureRangeValue,
244
+ qr as flattenColumns,
245
+ Jr as formatDataIndex,
246
+ Qr as formatNumber,
245
247
  N as globalConfigCached,
246
- br as handleExportDownload,
248
+ Sr as handleExportDownload,
247
249
  c as keysOf,
248
250
  io as langMap,
249
251
  C as localeContextKey,
250
- Er as locales,
252
+ Nr as locales,
251
253
  P as namespaceContextKey,
252
254
  l as pathMap,
253
255
  F as provideGlobalConfig,
254
256
  D as translate,
255
- Ut as useControllableValue,
256
- $t as useFullScreen,
257
+ Vt as useControllableValue,
258
+ qt as useFullScreen,
257
259
  R as useGetDerivedNamespace,
258
260
  I as useGlobalConfig,
259
261
  g as useLocale,
260
- Vt as useManualRef,
261
- Kt as useMessage,
262
+ _t as useManualRef,
263
+ Ut as useMessage,
262
264
  M as useNamespace,
263
- zr as usePageListApTable,
264
- qt as useResize,
265
- Zo as useTableModal,
266
- nt as useTablePaging,
267
- Wr as useTableRefresh,
268
- or as useTableSelectModal,
269
- _t as useThrottleRef
265
+ Wr as usePageListApTable,
266
+ Qt as useResize,
267
+ or as useTableModal,
268
+ ct as useTablePaging,
269
+ Hr as useTableRefresh,
270
+ tr as useTableSelectModal,
271
+ $t as useThrottleRef
270
272
  };
@@ -0,0 +1,20 @@
1
+ import { ApButtonSlots, ApConfirButtonProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { ModalFuncProps } from '@aplus-frontend/antdv';
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<ApButtonSlots> & ApButtonSlots;
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ApConfirButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApConfirButtonProps> & Readonly<{}>, {
12
+ confirmProps: ModalFuncProps;
13
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as f, useSlots as d, createBlock as u, openBlock as k, mergeProps as y, unref as P, createSlots as B, renderList as C, withCtx as _, renderSlot as g, normalizeProps as b, guardReactiveProps as h } from "vue";
2
+ import { confirmHandle as O } from "./utils/index.mjs";
3
+ import { omit as l } from "lodash-unified";
4
+ import "./ap-button.vue2.mjs";
5
+ import S from "./ap-button.vue.mjs";
6
+ const N = /* @__PURE__ */ f({
7
+ __name: "ap-confirm-button",
8
+ props: {
9
+ prefixCls: {},
10
+ htmlType: {},
11
+ shape: {},
12
+ size: {},
13
+ loading: { type: [Boolean, Object] },
14
+ disabled: { type: Boolean },
15
+ ghost: { type: Boolean },
16
+ block: { type: Boolean },
17
+ danger: { type: Boolean },
18
+ icon: {},
19
+ href: {},
20
+ target: {},
21
+ title: {},
22
+ onMousedown: {},
23
+ type: {},
24
+ borderLinkColor: {},
25
+ minWidth: { type: [Boolean, Number, String] },
26
+ lazy: { type: [Boolean, Number] },
27
+ onClick: {},
28
+ content: {},
29
+ confirmProps: { default: () => ({}) }
30
+ },
31
+ setup(p) {
32
+ const o = p, a = d(), m = () => {
33
+ var t, i, s;
34
+ const n = ((t = o.confirmProps) == null ? void 0 : t.onOk) || o.onClick, r = ((i = o.confirmProps) == null ? void 0 : i.title) || o.title, c = ((s = o.confirmProps) == null ? void 0 : s.content) || o.content, e = {
35
+ centered: !0,
36
+ // 默认居中
37
+ onOk: n,
38
+ title: r,
39
+ content: c,
40
+ ...l(o.confirmProps, ["onOk", "title", "content"])
41
+ };
42
+ O(e);
43
+ };
44
+ return (n, r) => (k(), u(S, y(P(l)(o, ["confirmProps", "onClick"]), { onClick: m }), B({ _: 2 }, [
45
+ C(a, (c, e) => ({
46
+ name: e,
47
+ fn: _((t) => [
48
+ g(n.$slots, e, b(h(t || {})))
49
+ ])
50
+ }))
51
+ ]), 1040));
52
+ }
53
+ });
54
+ export {
55
+ N as default
56
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ap-confirm-button.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,5 @@
1
1
  import { default as ApButton } from './ap-button.vue';
2
2
  import { default as ApActionButton } from './ap-action-button.vue';
3
+ import { default as ApConfirmButton } from './ap-confirm-button.vue';
3
4
  export * from './interface';
4
- export { ApButton, ApActionButton };
5
+ export { ApButton, ApActionButton, ApConfirmButton };
@@ -1,3 +1,4 @@
1
1
  import "./ap-button.vue2.mjs";
2
2
  import "./ap-action-button.vue2.mjs";
3
+ import "./ap-confirm-button.vue2.mjs";
3
4
  import "./interface.mjs";
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '@aplus-frontend/antdv';
1
+ import { ModalFuncProps, ButtonProps } from '@aplus-frontend/antdv';
2
2
  export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
3
3
  type?: ButtonProps['type'] | 'borderLink';
4
4
  borderLinkColor?: string;
@@ -11,3 +11,8 @@ export type ApButtonSlots = {
11
11
  default: any;
12
12
  icon?: any;
13
13
  };
14
+ export type ApConfirButtonProps = ApButtonProps & {
15
+ title: ModalFuncProps['title'];
16
+ content: ModalFuncProps['content'];
17
+ confirmProps?: ModalFuncProps;
18
+ };
@@ -1,3 +1,5 @@
1
+ import { ModalFuncProps } from '@aplus-frontend/antdv';
1
2
  export declare function isPromise(fn: any): any;
2
3
  export declare const isAsynchronous: (fn: any) => any;
3
4
  export declare const transferOpacityColor: (thisColor?: string, thisOpacity?: string) => string | undefined;
5
+ export declare const confirmHandle: (ModalFuncProps: ModalFuncProps) => Promise<unknown>;
@@ -1,33 +1,53 @@
1
- function a(t) {
1
+ import { Modal as s } from "@aplus-frontend/antdv";
2
+ import { omit as a } from "lodash-unified";
3
+ function f(t) {
2
4
  return typeof t == "object" && typeof t.then == "function" ? t : !1;
3
5
  }
4
- const l = (t) => typeof t == "function" && a(t == null ? void 0 : t()), f = (t, n = "0.7") => {
5
- var s;
6
+ const p = (t) => typeof t == "function" && f(t == null ? void 0 : t()), y = (t, c = "0.7") => {
7
+ var i;
6
8
  try {
7
9
  let e = t == null ? void 0 : t.toLowerCase();
8
10
  if (e && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)) {
9
11
  if (e.length === 4) {
10
- let o = "#";
11
- for (let c = 1; c < 4; c += 1)
12
- o += e.slice(c, c + 1).concat(e.slice(c, c + 1));
13
- e = o;
12
+ let r = "#";
13
+ for (let n = 1; n < 4; n += 1)
14
+ r += e.slice(n, n + 1).concat(e.slice(n, n + 1));
15
+ e = r;
14
16
  }
15
- const r = [];
16
- for (let o = 1; o < 7; o += 2)
17
- r.push(parseInt("0x" + e.slice(o, o + 2)));
18
- return "rgba(" + r.join(",") + "," + n + ")";
17
+ const o = [];
18
+ for (let r = 1; r < 7; r += 2)
19
+ o.push(parseInt("0x" + e.slice(r, r + 2)));
20
+ return "rgba(" + o.join(",") + "," + c + ")";
19
21
  }
20
22
  if (e && e.startsWith("rgb")) {
21
- let r = e.match(/(\d(\.\d+)?)+/g);
22
- return r = (s = r == null ? void 0 : r.slice(0, 3)) == null ? void 0 : s.concat(n), "rgba(" + r.join(",") + ")";
23
+ let o = e.match(/(\d(\.\d+)?)+/g);
24
+ return o = (i = o == null ? void 0 : o.slice(0, 3)) == null ? void 0 : i.concat(c), "rgba(" + o.join(",") + ")";
23
25
  }
24
26
  return e;
25
27
  } catch {
26
28
  return;
27
29
  }
30
+ }, g = (t) => {
31
+ const { onOk: c = () => ({}) } = t;
32
+ return new Promise((i, e) => {
33
+ s.confirm({
34
+ onOk: async () => {
35
+ try {
36
+ await c(), i(!0);
37
+ } catch {
38
+ e();
39
+ }
40
+ },
41
+ onCancel: () => {
42
+ e();
43
+ },
44
+ ...a(t, ["onOk"])
45
+ });
46
+ });
28
47
  };
29
48
  export {
30
- l as isAsynchronous,
31
- a as isPromise,
32
- f as transferOpacityColor
49
+ g as confirmHandle,
50
+ p as isAsynchronous,
51
+ f as isPromise,
52
+ y as transferOpacityColor
33
53
  };
@@ -1,4 +1,4 @@
1
- import { isVNode as se, defineComponent as ie, useSlots as ce, ref as ue, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
1
+ import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
2
2
  import { Col as B, Flex as $, Space as he, Button as v, Row as xe } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
@@ -108,8 +108,8 @@ const r = 24, ze = /* @__PURE__ */ ie({
108
108
  emit: H
109
109
  }) {
110
110
  var I;
111
- const c = ce(), n = h, G = H, {
112
- value: u,
111
+ const u = ue(), n = h, G = H, {
112
+ value: c,
113
113
  updateValue: J
114
114
  } = Fe(n, G, {
115
115
  valuePropName: "collapse",
@@ -118,9 +118,9 @@ const r = 24, ze = /* @__PURE__ */ ie({
118
118
  b: K
119
119
  } = Be("ap-form-search-form"), Q = Re("uiMode"), {
120
120
  t: w
121
- } = Ae(), g = ue();
121
+ } = Ae(), g = ce();
122
122
  function X() {
123
- J(!o(u));
123
+ J(!o(c));
124
124
  }
125
125
  function Y() {
126
126
  var e, t;
@@ -131,12 +131,12 @@ const r = 24, ze = /* @__PURE__ */ ie({
131
131
  n.customReset || (t = (e = g.value) == null ? void 0 : e.resetFields) == null || t.call(e), W(n.onReset);
132
132
  }
133
133
  let N = [];
134
- const R = M(L(c.default())), d = M((I = c.extra) == null ? void 0 : I.call(c)), k = S(() => Math.floor(r / n.countPerRow));
135
- D(() => c.default(), (e) => {
134
+ const R = M(L(u.default())), d = M((I = u.extra) == null ? void 0 : I.call(u)), k = S(() => Math.floor(r / n.countPerRow));
135
+ D(() => u.default(), (e) => {
136
136
  N = R.value, R.value = Se(N, L(e));
137
137
  }), D(() => {
138
138
  var e;
139
- return (e = c.extra) == null ? void 0 : e.call(c);
139
+ return (e = u.extra) == null ? void 0 : e.call(u);
140
140
  }, (e) => {
141
141
  d.value = e;
142
142
  });
@@ -158,9 +158,8 @@ const r = 24, ze = /* @__PURE__ */ ie({
158
158
  let V = 0, j = 0;
159
159
  const le = s.map((p, f) => {
160
160
  const x = p.props, y = x.span || l;
161
- if (V += y, !n.forceExpand && o(u) && V > O) {
161
+ if (V += y, !n.forceExpand && o(c) && V > O) {
162
162
  t.push(pe(p, {
163
- class: "ant-form-item-hidden",
164
163
  hidden: !0
165
164
  }));
166
165
  return;
@@ -187,7 +186,7 @@ const r = 24, ze = /* @__PURE__ */ ie({
187
186
  }, {
188
187
  default: () => [a(q, null, {
189
188
  default: () => [a($, {
190
- justify: !o(u) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
189
+ justify: !o(c) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
191
190
  }, {
192
191
  default: () => [a(he, null, {
193
192
  default: () => [a(v, {
@@ -205,19 +204,19 @@ const r = 24, ze = /* @__PURE__ */ ie({
205
204
  onClick: X,
206
205
  icon: a(ye, {
207
206
  style: Q.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
208
- rotate: o(u) ? 90 : -90
207
+ rotate: o(c) ? 90 : -90
209
208
  }, null)
210
209
  }, null) : null]
211
210
  }), n.extraInAction ? o(d) : null]
212
211
  })]
213
212
  })]
214
213
  }), l = !n.extraInAction && o(d) ? a(B, {
215
- span: o(u) ? t.actualExtraSpan : t.defaultExtraSpan,
214
+ span: o(c) ? t.actualExtraSpan : t.defaultExtraSpan,
216
215
  key: "extraNode"
217
216
  }, {
218
217
  default: () => [a(q, null, {
219
218
  default: () => [a($, {
220
- justify: !o(u) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
219
+ justify: !o(c) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
221
220
  }, be(e = o(d)) ? e : {
222
221
  default: () => [e]
223
222
  })]
@@ -225,7 +224,7 @@ const r = 24, ze = /* @__PURE__ */ ie({
225
224
  }) : null, i = a(B, {
226
225
  span: t.defaultExtraSpan
227
226
  }, null);
228
- return !o(u) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
227
+ return !o(c) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
229
228
  });
230
229
  return z({
231
230
  apForm: S(() => o(g))
@@ -0,0 +1,6 @@
1
+ export declare enum ModalMessage {
2
+ /**
3
+ * 弹框不需要关闭
4
+ */
5
+ NOT_NEED_CLOSE = "Info: [aplus-ui: ApModal.createModalStream] The modal does not need to be closed"
6
+ }
@@ -0,0 +1,4 @@
1
+ var o = /* @__PURE__ */ ((e) => (e.NOT_NEED_CLOSE = "Info: [aplus-ui: ApModal.createModalStream] The modal does not need to be closed", e))(o || {});
2
+ export {
3
+ o as ModalMessage
4
+ };
@@ -1,8 +1,9 @@
1
1
  import { Modal as _Modal } from '@aplus-frontend/antdv';
2
- import { CreateModalFunc } from './interface';
2
+ import { CreateModalFunc, CreateModalStreamFunc } from './interface';
3
3
  export * from './interface';
4
4
  type ApModalMixedProps = typeof _Modal & {
5
5
  createModal: CreateModalFunc;
6
+ createModalStream: CreateModalStreamFunc;
6
7
  };
7
8
  declare const ApModal: ApModalMixedProps;
8
9
  export { ApModal };