@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.
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +33 -25
- package/es/src/ap-field/date-range/index.vue.mjs +44 -43
- package/es/src/ap-field/interface.d.ts +0 -6
- package/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/select/index.vue.d.ts +407 -1
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2263 -13
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1180 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
- package/es/src/business/ap-batch-action/index.d.ts +5 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +418 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +0 -6
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/select/index.vue.d.ts +407 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2263 -13
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1180 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +418 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- 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, {
|
|
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, {
|
|
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 {
|
|
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, {
|
|
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, {
|
|
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, {
|
|
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: () =>
|
|
6
|
+
header: () => any[];
|
|
7
7
|
prefix: () => void;
|
|
8
8
|
suffix: () => void;
|
|
9
9
|
}> & {
|
|
10
|
-
header: () =>
|
|
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, {
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const B=require("../../config-provider/hooks/use-namespace.js"),C=require("../../config-provider/hooks/use-locale.js"),E={class:"selected-desc"},w={class:"selected-desc-conut"},D={class:"selected-desc-clean"},b=e.defineComponent({__name:"ApBatchAction",props:{selectedRowKeys:{},clearAll:{type:Function}},setup(_){const{b:c}=B.useNamespace("ap-batch-action"),{t:r}=C.useLocale(),s=_,n=e.useSlots(),A=e.computed(()=>{var t;return((t=s.selectedRowKeys)==null?void 0:t.length)||0}),o=e.ref(!1),i=e.ref();return e.watch(()=>n.header,()=>{setTimeout(()=>{var l,d,p,h,f,v,a,m,y,S,N;const t=(l=n.header)==null?void 0:l.call(n);(t==null?void 0:t.length)===1&&((p=(d=t==null?void 0:t[0])==null?void 0:d.type)==null?void 0:p.name)==="ASpace"?o.value=!!((y=(m=(a=Array.prototype.slice.call((v=(f=(h=i.value)==null?void 0:h.children)==null?void 0:f[0])==null?void 0:v.children))==null?void 0:a.filter)==null?void 0:m.call(a,u=>{var g;return(g=u==null?void 0:u.children)==null?void 0:g.length}))!=null&&y.length):o.value=!!((N=(S=i.value)==null?void 0:S.children)!=null&&N.length)})},{immediate:!0}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)()])},[e.withDirectives(e.createElementVNode("div",{ref_key:"headerRef",ref:i,class:e.normalizeClass(e.unref(c)("header"))},[e.renderSlot(t.$slots,"header")],2),[[e.vShow,o.value]]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("body"))},[e.renderSlot(t.$slots,"prefix"),e.createElementVNode("div",E,[e.createElementVNode("div",w,[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apBatchAction.selected"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(A.value),1),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("ap.apBatchAction.piecesOfData")),1)]),e.createElementVNode("div",D,[e.createVNode(e.unref(V.Button),{type:"link",onClick:l[0]||(l[0]=d=>s.clearAll&&s.clearAll())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apBatchAction.empty")),1)]),_:1})])]),e.renderSlot(t.$slots,"suffix")],2)],2))}});exports.default=b;
|
|
@@ -2,7 +2,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
2
2
|
import { ApBatchActionProps } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApBatchAction: {
|
|
5
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
6
|
+
headerRef: HTMLDivElement;
|
|
7
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
6
8
|
P: {};
|
|
7
9
|
B: {};
|
|
8
10
|
D: {};
|
|
@@ -15,11 +17,11 @@ declare const ApBatchAction: {
|
|
|
15
17
|
__isSuspense?: never;
|
|
16
18
|
} & ComponentOptionsBase<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
17
19
|
$slots: Readonly<{
|
|
18
|
-
header: () =>
|
|
20
|
+
header: () => any[];
|
|
19
21
|
prefix: () => void;
|
|
20
22
|
suffix: () => void;
|
|
21
23
|
}> & {
|
|
22
|
-
header: () =>
|
|
24
|
+
header: () => any[];
|
|
23
25
|
prefix: () => void;
|
|
24
26
|
suffix: () => void;
|
|
25
27
|
};
|
|
@@ -4,7 +4,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> &
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
9
|
setExpand: (state?: boolean) => void;
|
|
10
10
|
}>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),G=require("@ant-design/icons-vue"),n=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const d=require("./interface.js"),B=require("@aplus-frontend/hooks"),T=require("./handleExportDownload.js"),L=require("../../ap-table/context.js"),N=require("./convertExportField.js"),D=require("../../config-provider/hooks/use-namespace.js"),P=require("../../config-provider/hooks/use-locale.js"),h=require("../../config-provider/hooks/use-global-config.js"),V=t.defineComponent({__name:"ApExportGroup",props:{selectedRowKeys:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1},exportField:{type:[Boolean,Object],default:void 0}},setup(w){const{hasPermission:C}=B.usePermission(),e=w,{columns:r,dataSource:l}=L.useInjectApTable(),{b:E}=D.useNamespace("ap-export-group"),{t:s}=P.useLocale(),k=h.useGlobalConfig("uiMode"),y=h.useGlobalConfig("exportField"),M=t.computed(()=>{const o={aplus:"#0070FF",admin:"#34b77c"};return v.value?"":o[k.value]||o.aplus}),v=t.computed(()=>{var o;return!!(e!=null&&e.disabled)||(l!==void 0?!((o=l==null?void 0:l.value)!=null&&o.length):!1)||c.value}),q=t.computed(()=>(e==null?void 0:e.successMessage)===!0?s("ap.apExportGroup.exportSuccess"):e!=null&&e.successMessage?e.successMessage:""),f=t.computed(()=>{const o="exportFieldList",a=(e==null?void 0:e.exportField)??(y.value===""?!0:y.value)??!1;return a===!0?{key:o}:typeof a=="object"?{...a,key:a.key??o}:a}),A={textAlign:"center"},c=t.ref(!1),p=t.computed(()=>(e==null?void 0:e.selectedRowKeys)||[]),F=t.computed(()=>{let o=e==null?void 0:e.ifShow;return!(e!=null&&e.ifShow)&&(e!=null&&e.auth)&&(o=()=>C(e.auth)),(o==null?void 0:o())??!0});async function S({key:o}){var g,m,b;const{getRequestParams:a,request:u}=e||{};let x={};o===d.ApExportGroupActionType.SELECT?x={[(e==null?void 0:e.idKey)||"ids"]:p.value}:o===d.ApExportGroupActionType.ALL&&(x=(a==null?void 0:a())||{});const _=((g=e==null?void 0:e.getInitialParams)==null?void 0:g.call(e))||{};try{c.value=!0;let i=Object.assign({...x,..._},f.value&&(r!=null&&r.value)?{[f.value.key]:N.convertExportField(r.value,(m=f.value)==null?void 0:m.convertField)}:{});i=((b=e==null?void 0:e.beforeRequest)==null?void 0:b.call(e,i))||i,await T.handleExportDownload(async()=>await(u==null?void 0:u(i))),e!=null&&e.successMessage&&n.message.success(q.value)}finally{c.value=!1}}return(o,a)=>F.value?(t.openBlock(),t.createBlock(t.unref(n.Dropdown),{key:0,class:t.normalizeClass([t.unref(E)()]),"overlay-style":A,disabled:v.value},{overlay:t.withCtx(()=>[t.createVNode(t.unref(n.Menu),{onClick:S},{default:t.withCtx(()=>{var u;return[(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(d.ApExportGroupActionType).SELECT,disabled:((u=p.value)==null?void 0:u.length)===0},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(d.ApExportGroupActionType).ALL},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)("ap.apExportGroup.exportAll")),1)]),_:1}))]}),_:1})]),default:t.withCtx(()=>[t.createVNode(t.unref(n.Button),t.mergeProps({...o.$attrs},{style:{color:M.value},loading:c.value}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString((e==null?void 0:e.text)??t.unref(s)("ap.apExportGroup.export"))+" ",1),t.createVNode(t.unref(G.DownOutlined))]),_:1},16,["style","loading"])]),_:1},8,["class","disabled"])):t.createCommentVNode("",!0)}});exports.default=V;
|
|
@@ -23,7 +23,9 @@ declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {},
|
|
|
23
23
|
}>, {
|
|
24
24
|
dropdownMatchSelectWidth: number | boolean;
|
|
25
25
|
hasAll: boolean;
|
|
26
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
containerRef: HTMLDivElement;
|
|
28
|
+
}, HTMLDivElement>;
|
|
27
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
30
|
export default _default;
|
|
29
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),V=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const x=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const N=require("../../config-provider/hooks/use-locale.js"),q=require("../../config-provider/hooks/use-global-config.js"),I=require("../../config-provider/hooks/use-namespace.js"),L=require("./extension-select/index.vue2.js"),i="GROUP_SEARCH_ALL",M=e.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{default:!1},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},onClickOption:{},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{}},emits:["update:value"],setup(v,{emit:g}){const{t:p}=N.useLocale(),d=q.useGlobalConfig("uiMode","aplus"),f=e.ref(),a=v,C=e.computed(()=>({width:"auto",...a.style})),_=g,{value:n,updateValue:c}=x.useControllableValue(a,_),w=o=>{let t=o;o===i?t=a.options.map(l=>l.value):t=toString.call(t)==="[object Array]"?o:[o],c({...n.value,key:t})},S=e.computed(()=>{let o=[];return a.hasAll&&(o=[{value:i,label:p("ap.apGroupSearch.all")}]),[...o,...a.options]}),b=e.computed(()=>{var u,s;const o=(u=n==null?void 0:n.value)==null?void 0:u.key,t=toString.call(o)==="[object Array]"?o:[o],l=p("ap.apGroupSearch.defaultPlaceholder");return!t||t.length===1?l:((s=a.options)==null?void 0:s.filter(r=>t.includes(r.value)).map(r=>r.label).join("/"))||l});e.onMounted(()=>{e.watch(()=>{var o;return[a.hasAll,(o=e.unref(n))==null?void 0:o.key]},()=>{var o,t;a.hasAll&&!((o=e.unref(n))!=null&&o.key)&&c({...e.unref(n),key:(t=a.options)==null?void 0:t.map(l=>l.value)})},{immediate:!0})});const B=e.computed(()=>{var t,l;const o=(t=e.unref(n))==null?void 0:t.key;if(o)return toString.call(o)==="[object Array]"?(o==null?void 0:o.length)===((l=a.options)==null?void 0:l.length)?i:o==null?void 0:o[0]:o}),h=o=>{var t;o!==((t=e.unref(n))==null?void 0:t.value)&&c({...n.value,value:o})},{b:k,e:m,em:A}=I.useNamespace("ap-group-search");return(o,t)=>{const l=e.resolveComponent("Divider");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:f,class:e.normalizeClass(e.unref(k)())},[e.createVNode(e.unref(y.Flex),null,{default:e.withCtx(()=>{var u,s;return[e.createVNode(e.unref(y.Select),{value:B.value,style:e.normalizeStyle(C.value),class:e.normalizeClass(`${o.$attrs.class} ${e.unref(d)==="admin"?e.unref(A)("search","admin"):e.unref(m)("search")}`),options:S.value,bordered:!1,"dropdown-match-select-width":a.dropdownMatchSelectWidth,onChange:w},{suffixIcon:e.withCtx(()=>[e.createVNode(V.default)]),_:1},8,["value","style","class","options","dropdown-match-select-width"]),e.unref(d)==="aplus"?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(e.unref(m)("divider")),type:"vertical",style:{}},null,8,["class"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"search",{key:(u=e.unref(n))==null?void 0:u.key,value:(s=e.unref(n))==null?void 0:s.value,change:h},()=>{var r;return[e.createVNode(L.default,{style:{width:"100%"},"max-tag-count":"responsive",value:(r=e.unref(n))==null?void 0:r.value,placeholder:b.value,"__parent-ref":f.value,onChange:h},null,8,["value","placeholder","__parent-ref"])]})]}),_:3})],2)}}});exports.default=M;
|