@aplus-frontend/ui 0.4.1 → 0.4.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 (128) hide show
  1. package/es/src/ap-field/date/helper.d.ts +1 -1
  2. package/es/src/ap-field/date/helper.mjs +9 -9
  3. package/es/src/ap-field/date/index.vue.mjs +33 -25
  4. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  5. package/es/src/ap-field/interface.d.ts +0 -6
  6. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  8. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +407 -1
  10. package/es/src/ap-field/select/index.vue.mjs +14 -13
  11. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  12. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  13. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  15. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  16. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  18. package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
  19. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  22. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  23. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  24. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  25. package/es/src/ap-list/index.vue.d.ts +1 -1
  26. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  27. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  28. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  29. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  30. package/es/src/ap-table/constants.d.ts +2263 -13
  31. package/es/src/ap-table/context.d.ts +1 -0
  32. package/es/src/ap-table/context.mjs +11 -10
  33. package/es/src/ap-table/utils.d.ts +1180 -8
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  35. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  36. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  37. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  38. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  39. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  40. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  41. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  42. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  43. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  44. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  45. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
  46. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  47. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  48. package/es/src/business/ap-group-search/index.d.ts +418 -4
  49. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  50. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
  51. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  52. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  53. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  54. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  55. package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
  56. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  57. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  58. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  59. package/es/src/editable-table/index.vue.d.ts +1 -1
  60. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  61. package/lib/src/ap-field/date/helper.d.ts +1 -1
  62. package/lib/src/ap-field/date/helper.js +1 -1
  63. package/lib/src/ap-field/date/index.vue.js +1 -1
  64. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  65. package/lib/src/ap-field/interface.d.ts +0 -6
  66. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  67. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  68. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  69. package/lib/src/ap-field/select/index.vue.d.ts +407 -1
  70. package/lib/src/ap-field/select/index.vue.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  72. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  73. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  74. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  75. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  76. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  77. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  78. package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
  79. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  80. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  85. package/lib/src/ap-list/index.vue.d.ts +1 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  87. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  89. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  90. package/lib/src/ap-table/constants.d.ts +2263 -13
  91. package/lib/src/ap-table/context.d.ts +1 -0
  92. package/lib/src/ap-table/context.js +1 -1
  93. package/lib/src/ap-table/utils.d.ts +1180 -8
  94. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  95. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  96. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  97. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  98. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  99. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  100. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  101. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  102. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  103. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  104. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  105. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  106. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  107. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  108. package/lib/src/business/ap-group-search/index.d.ts +418 -4
  109. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  110. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  111. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  112. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  113. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  114. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  115. package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
  116. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  117. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  118. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  119. package/lib/src/editable-table/index.vue.d.ts +1 -1
  120. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  121. package/package.json +5 -5
  122. package/theme/ap-form/index.css +3 -4
  123. package/theme/ap-form/modal-form.css +3 -4
  124. package/theme/ap-form/modal-form.less +3 -4
  125. package/theme/ap-table/ap-table.css +3 -4
  126. package/theme/ap-table-modal/index.css +3 -4
  127. package/theme/editable-table/index.css +3 -4
  128. package/theme/index.css +3 -4
@@ -18,7 +18,9 @@ declare const __VLS_component: DefineComponent<ApTagGroupProps, {}, {}, {}, {},
18
18
  ellipsis: EllipsisProps;
19
19
  space: number;
20
20
  list: ApTagProps[];
21
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
+ container: HTMLDivElement;
23
+ }, any>;
22
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
25
  export default _default;
24
26
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -169,7 +169,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
169
169
  acceptErrorMsg: string;
170
170
  maxCount: number;
171
171
  maxCountErrorMsg: string;
172
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
172
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
173
+ uploadRef: unknown;
174
+ }, HTMLDivElement>;
173
175
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
174
176
  export default _default;
175
177
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,457 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
+ import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
+ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
2
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
3
7
  declare const _default: DefineComponent<{}, {
4
8
  setValue: typeof setValue;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
10
+ uploadRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
11
+ capture: {
12
+ type: PropType<boolean | "user" | "environment">;
13
+ default: boolean | "user" | "environment";
14
+ };
15
+ type: {
16
+ type: PropType<UploadType>;
17
+ default: UploadType;
18
+ };
19
+ name: StringConstructor;
20
+ defaultFileList: {
21
+ type: PropType< UploadFile<any>[]>;
22
+ default: UploadFile<any>[];
23
+ };
24
+ fileList: {
25
+ type: PropType< UploadFile<any>[]>;
26
+ default: UploadFile<any>[];
27
+ };
28
+ action: {
29
+ type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
30
+ default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
31
+ };
32
+ directory: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ data: {
37
+ type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
38
+ default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
39
+ };
40
+ method: {
41
+ type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
42
+ default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
43
+ };
44
+ headers: {
45
+ type: PropType<HttpRequestHeader>;
46
+ default: HttpRequestHeader;
47
+ };
48
+ showUploadList: {
49
+ type: PropType<boolean | ShowUploadListInterface>;
50
+ default: boolean | ShowUploadListInterface;
51
+ };
52
+ multiple: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ accept: StringConstructor;
57
+ beforeUpload: {
58
+ type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
59
+ default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
60
+ };
61
+ onChange: {
62
+ type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
63
+ default: (info: UploadChangeParam<UploadFile<any>>) => void;
64
+ };
65
+ 'onUpdate:fileList': {
66
+ type: PropType<(fileList: UploadFile<any>[]) => void>;
67
+ default: (fileList: UploadFile<any>[]) => void;
68
+ };
69
+ onDrop: {
70
+ type: PropType<(event: DragEvent) => void>;
71
+ default: (event: DragEvent) => void;
72
+ };
73
+ listType: {
74
+ type: PropType<UploadListType>;
75
+ default: UploadListType;
76
+ };
77
+ onPreview: {
78
+ type: PropType<(file: UploadFile<any>) => void>;
79
+ default: (file: UploadFile<any>) => void;
80
+ };
81
+ onDownload: {
82
+ type: PropType<(file: UploadFile<any>) => void>;
83
+ default: (file: UploadFile<any>) => void;
84
+ };
85
+ onReject: {
86
+ type: PropType<(fileList: FileType[]) => void>;
87
+ default: (fileList: FileType[]) => void;
88
+ };
89
+ onRemove: {
90
+ type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
91
+ default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
92
+ };
93
+ remove: {
94
+ type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
95
+ default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
96
+ };
97
+ supportServerRender: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ disabled: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ prefixCls: StringConstructor;
106
+ customRequest: {
107
+ type: PropType<(options: UploadRequestOption<any>) => void>;
108
+ default: (options: UploadRequestOption<any>) => void;
109
+ };
110
+ withCredentials: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ openFileDialogOnClick: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ locale: {
119
+ type: PropType<UploadLocale>;
120
+ default: UploadLocale;
121
+ };
122
+ id: StringConstructor;
123
+ previewFile: {
124
+ type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
125
+ default: (file: Blob | FileType) => PromiseLike<string>;
126
+ };
127
+ transformFile: {
128
+ type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
129
+ default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
130
+ };
131
+ iconRender: {
132
+ type: PropType<(opt: {
133
+ file: UploadFile<any>;
134
+ listType?: UploadListType;
135
+ }) => VueNode>;
136
+ default: (opt: {
137
+ file: UploadFile<any>;
138
+ listType?: UploadListType;
139
+ }) => VueNode;
140
+ };
141
+ isImageUrl: {
142
+ type: PropType<(file: UploadFile<any>) => boolean>;
143
+ default: (file: UploadFile<any>) => boolean;
144
+ };
145
+ progress: {
146
+ type: PropType<UploadListProgressProps>;
147
+ default: UploadListProgressProps;
148
+ };
149
+ itemRender: {
150
+ type: PropType<ItemRender<any>>;
151
+ default: ItemRender<any>;
152
+ };
153
+ maxCount: NumberConstructor;
154
+ height: {
155
+ type: PropType<unknown>;
156
+ default: unknown;
157
+ };
158
+ removeIcon: {
159
+ type: PropType<(opt: {
160
+ file: UploadFile<any>;
161
+ }) => VueNode>;
162
+ default: (opt: {
163
+ file: UploadFile<any>;
164
+ }) => VueNode;
165
+ };
166
+ downloadIcon: {
167
+ type: PropType<(opt: {
168
+ file: UploadFile<any>;
169
+ }) => VueNode>;
170
+ default: (opt: {
171
+ file: UploadFile<any>;
172
+ }) => VueNode;
173
+ };
174
+ previewIcon: {
175
+ type: PropType<(opt: {
176
+ file: UploadFile<any>;
177
+ }) => VueNode>;
178
+ default: (opt: {
179
+ file: UploadFile<any>;
180
+ }) => VueNode;
181
+ };
182
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
183
+ progress: UploadListProgressProps;
184
+ type: UploadType;
185
+ height: unknown;
186
+ data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
187
+ onDrop: (event: DragEvent) => void;
188
+ onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
189
+ multiple: boolean;
190
+ disabled: boolean;
191
+ method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
192
+ remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
193
+ locale: UploadLocale;
194
+ action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
195
+ capture: boolean | "user" | "environment";
196
+ iconRender: (opt: {
197
+ file: UploadFile<any>;
198
+ listType?: UploadListType;
199
+ }) => VueNode;
200
+ onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
201
+ removeIcon: (opt: {
202
+ file: UploadFile<any>;
203
+ }) => VueNode;
204
+ itemRender: ItemRender<any>;
205
+ directory: boolean;
206
+ headers: HttpRequestHeader;
207
+ onReject: (fileList: FileType[]) => void;
208
+ beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
209
+ customRequest: (options: UploadRequestOption<any>) => void;
210
+ withCredentials: boolean;
211
+ openFileDialogOnClick: boolean;
212
+ fileList: UploadFile<any>[];
213
+ defaultFileList: UploadFile<any>[];
214
+ showUploadList: boolean | ShowUploadListInterface;
215
+ 'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
216
+ listType: UploadListType;
217
+ onPreview: (file: UploadFile<any>) => void;
218
+ onDownload: (file: UploadFile<any>) => void;
219
+ supportServerRender: boolean;
220
+ previewFile: (file: Blob | FileType) => PromiseLike<string>;
221
+ transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
222
+ isImageUrl: (file: UploadFile<any>) => boolean;
223
+ downloadIcon: (opt: {
224
+ file: UploadFile<any>;
225
+ }) => VueNode;
226
+ previewIcon: (opt: {
227
+ file: UploadFile<any>;
228
+ }) => VueNode;
229
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
230
+ P: {};
231
+ B: {};
232
+ D: {};
233
+ C: {};
234
+ M: {};
235
+ Defaults: {};
236
+ }, Readonly< ExtractPropTypes<{
237
+ capture: {
238
+ type: PropType<boolean | "user" | "environment">;
239
+ default: boolean | "user" | "environment";
240
+ };
241
+ type: {
242
+ type: PropType<UploadType>;
243
+ default: UploadType;
244
+ };
245
+ name: StringConstructor;
246
+ defaultFileList: {
247
+ type: PropType< UploadFile<any>[]>;
248
+ default: UploadFile<any>[];
249
+ };
250
+ fileList: {
251
+ type: PropType< UploadFile<any>[]>;
252
+ default: UploadFile<any>[];
253
+ };
254
+ action: {
255
+ type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
256
+ default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
257
+ };
258
+ directory: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ data: {
263
+ type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
264
+ default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
265
+ };
266
+ method: {
267
+ type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
268
+ default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
269
+ };
270
+ headers: {
271
+ type: PropType<HttpRequestHeader>;
272
+ default: HttpRequestHeader;
273
+ };
274
+ showUploadList: {
275
+ type: PropType<boolean | ShowUploadListInterface>;
276
+ default: boolean | ShowUploadListInterface;
277
+ };
278
+ multiple: {
279
+ type: BooleanConstructor;
280
+ default: boolean;
281
+ };
282
+ accept: StringConstructor;
283
+ beforeUpload: {
284
+ type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
285
+ default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
286
+ };
287
+ onChange: {
288
+ type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
289
+ default: (info: UploadChangeParam<UploadFile<any>>) => void;
290
+ };
291
+ 'onUpdate:fileList': {
292
+ type: PropType<(fileList: UploadFile<any>[]) => void>;
293
+ default: (fileList: UploadFile<any>[]) => void;
294
+ };
295
+ onDrop: {
296
+ type: PropType<(event: DragEvent) => void>;
297
+ default: (event: DragEvent) => void;
298
+ };
299
+ listType: {
300
+ type: PropType<UploadListType>;
301
+ default: UploadListType;
302
+ };
303
+ onPreview: {
304
+ type: PropType<(file: UploadFile<any>) => void>;
305
+ default: (file: UploadFile<any>) => void;
306
+ };
307
+ onDownload: {
308
+ type: PropType<(file: UploadFile<any>) => void>;
309
+ default: (file: UploadFile<any>) => void;
310
+ };
311
+ onReject: {
312
+ type: PropType<(fileList: FileType[]) => void>;
313
+ default: (fileList: FileType[]) => void;
314
+ };
315
+ onRemove: {
316
+ type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
317
+ default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
318
+ };
319
+ remove: {
320
+ type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
321
+ default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
322
+ };
323
+ supportServerRender: {
324
+ type: BooleanConstructor;
325
+ default: boolean;
326
+ };
327
+ disabled: {
328
+ type: BooleanConstructor;
329
+ default: boolean;
330
+ };
331
+ prefixCls: StringConstructor;
332
+ customRequest: {
333
+ type: PropType<(options: UploadRequestOption<any>) => void>;
334
+ default: (options: UploadRequestOption<any>) => void;
335
+ };
336
+ withCredentials: {
337
+ type: BooleanConstructor;
338
+ default: boolean;
339
+ };
340
+ openFileDialogOnClick: {
341
+ type: BooleanConstructor;
342
+ default: boolean;
343
+ };
344
+ locale: {
345
+ type: PropType<UploadLocale>;
346
+ default: UploadLocale;
347
+ };
348
+ id: StringConstructor;
349
+ previewFile: {
350
+ type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
351
+ default: (file: Blob | FileType) => PromiseLike<string>;
352
+ };
353
+ transformFile: {
354
+ type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
355
+ default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
356
+ };
357
+ iconRender: {
358
+ type: PropType<(opt: {
359
+ file: UploadFile<any>;
360
+ listType?: UploadListType;
361
+ }) => VueNode>;
362
+ default: (opt: {
363
+ file: UploadFile<any>;
364
+ listType?: UploadListType;
365
+ }) => VueNode;
366
+ };
367
+ isImageUrl: {
368
+ type: PropType<(file: UploadFile<any>) => boolean>;
369
+ default: (file: UploadFile<any>) => boolean;
370
+ };
371
+ progress: {
372
+ type: PropType<UploadListProgressProps>;
373
+ default: UploadListProgressProps;
374
+ };
375
+ itemRender: {
376
+ type: PropType<ItemRender<any>>;
377
+ default: ItemRender<any>;
378
+ };
379
+ maxCount: NumberConstructor;
380
+ height: {
381
+ type: PropType<unknown>;
382
+ default: unknown;
383
+ };
384
+ removeIcon: {
385
+ type: PropType<(opt: {
386
+ file: UploadFile<any>;
387
+ }) => VueNode>;
388
+ default: (opt: {
389
+ file: UploadFile<any>;
390
+ }) => VueNode;
391
+ };
392
+ downloadIcon: {
393
+ type: PropType<(opt: {
394
+ file: UploadFile<any>;
395
+ }) => VueNode>;
396
+ default: (opt: {
397
+ file: UploadFile<any>;
398
+ }) => VueNode;
399
+ };
400
+ previewIcon: {
401
+ type: PropType<(opt: {
402
+ file: UploadFile<any>;
403
+ }) => VueNode>;
404
+ default: (opt: {
405
+ file: UploadFile<any>;
406
+ }) => VueNode;
407
+ };
408
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
409
+ progress: UploadListProgressProps;
410
+ type: UploadType;
411
+ height: unknown;
412
+ data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
413
+ onDrop: (event: DragEvent) => void;
414
+ onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
415
+ multiple: boolean;
416
+ disabled: boolean;
417
+ method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
418
+ remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
419
+ locale: UploadLocale;
420
+ action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
421
+ capture: boolean | "user" | "environment";
422
+ iconRender: (opt: {
423
+ file: UploadFile<any>;
424
+ listType?: UploadListType;
425
+ }) => VueNode;
426
+ onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
427
+ removeIcon: (opt: {
428
+ file: UploadFile<any>;
429
+ }) => VueNode;
430
+ itemRender: ItemRender<any>;
431
+ directory: boolean;
432
+ headers: HttpRequestHeader;
433
+ onReject: (fileList: FileType[]) => void;
434
+ beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
435
+ customRequest: (options: UploadRequestOption<any>) => void;
436
+ withCredentials: boolean;
437
+ openFileDialogOnClick: boolean;
438
+ fileList: UploadFile<any>[];
439
+ defaultFileList: UploadFile<any>[];
440
+ showUploadList: boolean | ShowUploadListInterface;
441
+ 'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
442
+ listType: UploadListType;
443
+ onPreview: (file: UploadFile<any>) => void;
444
+ onDownload: (file: UploadFile<any>) => void;
445
+ supportServerRender: boolean;
446
+ previewFile: (file: Blob | FileType) => PromiseLike<string>;
447
+ transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
448
+ isImageUrl: (file: UploadFile<any>) => boolean;
449
+ downloadIcon: (opt: {
450
+ file: UploadFile<any>;
451
+ }) => VueNode;
452
+ previewIcon: (opt: {
453
+ file: UploadFile<any>;
454
+ }) => VueNode;
455
+ }> | null;
456
+ }, HTMLDivElement>;
6
457
  export default _default;
@@ -32,7 +32,9 @@ declare function __VLS_template(): {
32
32
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
33
  declare const __VLS_component: DefineComponent<{}, {
34
34
  setValue: typeof setValue;
35
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
35
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
36
+ fileRef: HTMLInputElement;
37
+ }, HTMLDivElement>;
36
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
39
  export default _default;
38
40
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,5 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function setValue(val?: string | Record<string, any>): void;
3
3
  declare const _default: DefineComponent<{}, {
4
4
  setValue: typeof setValue;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
6
+ fileRef: HTMLInputElement;
7
+ }, HTMLDivElement>;
6
8
  export default _default;
@@ -3,19 +3,23 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: Readonly<{
6
- header: () => void;
6
+ header: () => any[];
7
7
  prefix: () => void;
8
8
  suffix: () => void;
9
9
  }> & {
10
- header: () => void;
10
+ header: () => any[];
11
11
  prefix: () => void;
12
12
  suffix: () => void;
13
13
  };
14
- refs: {};
14
+ refs: {
15
+ headerRef: HTMLDivElement;
16
+ };
15
17
  rootEl: HTMLDivElement;
16
18
  };
17
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: DefineComponent<ApBatchActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const __VLS_component: DefineComponent<ApBatchActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
21
+ headerRef: HTMLDivElement;
22
+ }, HTMLDivElement>;
19
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
24
  export default _default;
21
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,83 +1,73 @@
1
- import { defineComponent as k, useSlots as N, computed as V, ref as $, watch as x, openBlock as d, createElementBlock as C, normalizeClass as v, unref as c, renderSlot as A, createCommentVNode as P, createElementVNode as u, createTextVNode as S, toDisplayString as m, createVNode as D, withCtx as E } from "vue";
2
- import { Button as K } from "@aplus-frontend/antdv";
1
+ import { defineComponent as b, useSlots as x, computed as D, ref as N, watch as V, openBlock as E, createElementBlock as K, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createTextVNode as v, toDisplayString as a, createVNode as F, withCtx as O } from "vue";
2
+ import { Button as j } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { usePermission as L } from "@aplus-frontend/hooks";
5
- import { useNamespace as R } from "../../config-provider/hooks/use-namespace.mjs";
6
- import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
7
- const F = { class: "selected-desc" }, H = { class: "selected-desc-conut" }, O = { class: "selected-desc-clean" }, M = /* @__PURE__ */ k({
4
+ import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useLocale as G } from "../../config-provider/hooks/use-locale.mjs";
6
+ const I = { class: "selected-desc" }, J = { class: "selected-desc-conut" }, M = { class: "selected-desc-clean" }, Y = /* @__PURE__ */ b({
8
7
  __name: "ApBatchAction",
9
8
  props: {
10
9
  selectedRowKeys: {},
11
10
  clearAll: { type: Function }
12
11
  },
13
- setup(b) {
14
- const { b: f } = R("ap-batch-action"), { t: h } = z(), y = b, { hasPermission: w } = L(), l = N(), g = V(() => {
15
- var s;
16
- return ((s = y.selectedRowKeys) == null ? void 0 : s.length) || 0;
17
- }), B = $(!1);
18
- return x(
19
- () => l.header,
12
+ setup(R) {
13
+ const { b: n } = q("ap-batch-action"), { t: r } = G(), i = R, s = x(), $ = D(() => {
14
+ var e;
15
+ return ((e = i.selectedRowKeys) == null ? void 0 : e.length) || 0;
16
+ }), d = N(!1), p = N();
17
+ return V(
18
+ () => s.header,
20
19
  () => {
21
- var p;
22
- const s = (p = l == null ? void 0 : l.header) == null ? void 0 : p.call(l);
23
- B.value = Array.isArray(s) && s.filter(Boolean).filter(
24
- (t) => (
25
- // 兼容 v-if 和 空标签
26
- t.type !== Symbol.for("v-cmt") && t.type !== Symbol.for("v-fgt")
27
- )
28
- ).filter((t) => {
29
- var i, e, a, _;
30
- const o = ((i = t == null ? void 0 : t.props) == null ? void 0 : i["if-show"]) ?? ((e = t == null ? void 0 : t.props) == null ? void 0 : e.ifShow), n = (a = t == null ? void 0 : t.props) == null ? void 0 : a.auth;
31
- let r = o;
32
- return !((_ = t == null ? void 0 : t.props) != null && _.ifShow) && n && (r = () => w(n)), (r == null ? void 0 : r()) ?? !0;
33
- }).filter((t) => {
34
- var r, i;
35
- const o = ((r = t == null ? void 0 : t.props) == null ? void 0 : r["menu-list"]) ?? ((i = t == null ? void 0 : t.props) == null ? void 0 : i.menuList), n = (o == null ? void 0 : o.filter((e) => {
36
- let a = e == null ? void 0 : e.ifShow;
37
- return !(e != null && e.ifShow) && (e != null && e.auth) && (a = () => w(e.auth)), (a == null ? void 0 : a()) ?? !0;
38
- })) || [];
39
- return o === void 0 ? !0 : n.length > 0;
40
- }).length > 0;
20
+ setTimeout(() => {
21
+ var l, h, y, A, _, B, o, g, w, S, k;
22
+ const e = (l = s.header) == null ? void 0 : l.call(s);
23
+ (e == null ? void 0 : e.length) === 1 && ((y = (h = e == null ? void 0 : e[0]) == null ? void 0 : h.type) == null ? void 0 : y.name) === "ASpace" ? d.value = !!((w = (g = (o = Array.prototype.slice.call((B = (_ = (A = p.value) == null ? void 0 : A.children) == null ? void 0 : _[0]) == null ? void 0 : B.children)) == null ? void 0 : o.filter) == null ? void 0 : g.call(o, (u) => {
24
+ var C;
25
+ return (C = u == null ? void 0 : u.children) == null ? void 0 : C.length;
26
+ })) != null && w.length) : d.value = !!((k = (S = p.value) == null ? void 0 : S.children) != null && k.length);
27
+ });
41
28
  },
42
29
  {
43
30
  immediate: !0
44
31
  }
45
- ), (s, p) => (d(), C("div", {
46
- class: v([c(f)()])
32
+ ), (e, l) => (E(), K("div", {
33
+ class: f([t(n)()])
47
34
  }, [
48
- B.value ? (d(), C("div", {
49
- key: 0,
50
- class: v(c(f)("header"))
35
+ T(c("div", {
36
+ ref_key: "headerRef",
37
+ ref: p,
38
+ class: f(t(n)("header"))
51
39
  }, [
52
- A(s.$slots, "header")
53
- ], 2)) : P("", !0),
54
- u("div", {
55
- class: v(c(f)("body"))
40
+ m(e.$slots, "header")
41
+ ], 2), [
42
+ [z, d.value]
43
+ ]),
44
+ c("div", {
45
+ class: f(t(n)("body"))
56
46
  }, [
57
- A(s.$slots, "prefix"),
58
- u("div", F, [
59
- u("div", H, [
60
- S(m(c(h)("ap.apBatchAction.selected")) + " ", 1),
61
- u("span", null, m(g.value), 1),
62
- S(" " + m(c(h)("ap.apBatchAction.piecesOfData")), 1)
47
+ m(e.$slots, "prefix"),
48
+ c("div", I, [
49
+ c("div", J, [
50
+ v(a(t(r)("ap.apBatchAction.selected")) + " ", 1),
51
+ c("span", null, a($.value), 1),
52
+ v(" " + a(t(r)("ap.apBatchAction.piecesOfData")), 1)
63
53
  ]),
64
- u("div", O, [
65
- D(c(K), {
54
+ c("div", M, [
55
+ F(t(j), {
66
56
  type: "link",
67
- onClick: p[0] || (p[0] = (t) => y.clearAll && y.clearAll())
57
+ onClick: l[0] || (l[0] = (h) => i.clearAll && i.clearAll())
68
58
  }, {
69
- default: E(() => [
70
- S(m(c(h)("ap.apBatchAction.empty")), 1)
59
+ default: O(() => [
60
+ v(a(t(r)("ap.apBatchAction.empty")), 1)
71
61
  ]),
72
62
  _: 1
73
63
  })
74
64
  ])
75
65
  ]),
76
- A(s.$slots, "suffix")
66
+ m(e.$slots, "suffix")
77
67
  ], 2)
78
68
  ], 2));
79
69
  }
80
70
  });
81
71
  export {
82
- M as default
72
+ Y as default
83
73
  };