yahee-components 0.0.47 → 0.0.48
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/_virtual/dayjs.min.js +1 -1
- package/es/_virtual/lodash.js +1 -1
- package/es/api/server.js +2 -2
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +1 -1
- package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/Axios.js +45 -45
- package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/env/data.js +1 -1
- package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/resolveConfig.js +12 -12
- package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/utils.js +79 -91
- package/es/{packages/components → node_modules/.pnpm/dayjs@1.11.13}/node_modules/dayjs/dayjs.min.js +1 -1
- package/es/{packages/components → node_modules/.pnpm/lodash@4.17.21}/node_modules/lodash/lodash.js +2 -2
- package/es/operation-log/operation-log.vue.js +2 -2
- package/es/packages/components/api/log-server.js +2 -2
- package/es/packages/components/api/server.js +2 -2
- package/es/packages/components/api/tool.js +1 -1
- package/es/packages/components/api/upload-server.js +2 -2
- package/es/utils/translate.js +2 -2
- package/package.json +1 -1
- package/types/src/annex-upload/annex-upload.vue.d.ts +394 -1
- package/types/src/annex-upload/index.d.ts +398 -2
- package/types/src/complex-search/complex-search.vue.d.ts +190 -2
- package/types/src/complex-search/index.d.ts +190 -2
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +213 -2
- package/types/src/drop-down-condition/index.d.ts +213 -2
- package/types/src/input/index.d.ts +374 -2
- package/types/src/input/input.vue.d.ts +374 -2
- package/types/src/installs.d.ts +1457 -7
- package/types/src/left-condition/index.d.ts +68 -2
- package/types/src/left-condition/left-condition.vue.d.ts +68 -2
- package/types/src/operation-log/index.d.ts +229 -2
- package/types/src/operation-log/operation-log.vue.d.ts +229 -2
- package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js +0 -8
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/adapters/adapters.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/adapters/fetch.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/adapters/xhr.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/axios.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/cancel/CancelToken.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/cancel/CanceledError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/cancel/isCancel.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/AxiosError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/AxiosHeaders.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/InterceptorManager.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/dispatchRequest.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/mergeConfig.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/settle.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/core/transformData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/defaults/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/defaults/transitional.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/bind.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/buildURL.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/combineURLs.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/composeSignals.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/cookies.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/formDataToJSON.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/isAxiosError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/null.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/parseHeaders.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/parseProtocol.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/progressEventReducer.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/speedometer.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/spread.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/throttle.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/toFormData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/trackStream.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/helpers/validator.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/browser/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/common/utils.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.9 → axios@1.8.4}/node_modules/axios/lib/platform/index.js +0 -0
- /package/es/{packages/components → node_modules/.pnpm/element-plus@2.9.7_vue@3.5.13_typescript@5.8.3_}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
- /package/es/{packages/components → node_modules/.pnpm/v3-infinite-loading@1.3.2}/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../utils/typescript';
|
|
2
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives,
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { AnnexUploadProps } from './annex-upload';
|
|
4
|
+
import { EpPropMergeType, Mutable, Awaitable, EpPropFinalized } from 'element-plus/es/utils';
|
|
5
|
+
import { UploadRawFile, UploadData, UploadFile, UploadFiles, UploadProgressEvent, UploadUserFile, UploadRequestHandler, UploadStatus } from 'element-plus';
|
|
6
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
7
|
export declare const YaheeAnnexUpload: SFCWithInstall<{
|
|
5
8
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< AnnexUploadProps> & Readonly<{
|
|
6
9
|
onChange?: (...args: any[]) => any;
|
|
@@ -35,7 +38,400 @@ export declare const YaheeAnnexUpload: SFCWithInstall<{
|
|
|
35
38
|
checkRealType: boolean;
|
|
36
39
|
uploadType: "upload" | "import";
|
|
37
40
|
showTips: boolean;
|
|
38
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
41
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
42
|
+
uploadRef: {
|
|
43
|
+
$: ComponentInternalInstance;
|
|
44
|
+
$data: {};
|
|
45
|
+
$props: Partial<{
|
|
46
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
47
|
+
readonly disabled: boolean;
|
|
48
|
+
readonly drag: boolean;
|
|
49
|
+
readonly multiple: boolean;
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
52
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
53
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
54
|
+
readonly action: string;
|
|
55
|
+
readonly withCredentials: boolean;
|
|
56
|
+
readonly method: string;
|
|
57
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
58
|
+
readonly accept: string;
|
|
59
|
+
readonly fileList: UploadUserFile[];
|
|
60
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
62
|
+
readonly httpRequest: UploadRequestHandler;
|
|
63
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
64
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
65
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
66
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
67
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
68
|
+
}> & Omit<{
|
|
69
|
+
readonly drag: boolean;
|
|
70
|
+
readonly disabled: boolean;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly data: Mutable<{}>;
|
|
73
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
74
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
75
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
76
|
+
readonly multiple: boolean;
|
|
77
|
+
readonly method: string;
|
|
78
|
+
readonly withCredentials: boolean;
|
|
79
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
80
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
81
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
82
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
83
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
84
|
+
readonly action: string;
|
|
85
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
86
|
+
readonly accept: string;
|
|
87
|
+
readonly fileList: UploadUserFile[];
|
|
88
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
89
|
+
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
90
|
+
readonly httpRequest: UploadRequestHandler;
|
|
91
|
+
readonly headers?: EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>;
|
|
92
|
+
readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>;
|
|
93
|
+
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
|
|
94
|
+
readonly limit?: number;
|
|
95
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
96
|
+
$attrs: {
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
};
|
|
99
|
+
$refs: {
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
$slots: Readonly<{
|
|
103
|
+
[name: string]: Slot<any>;
|
|
104
|
+
}>;
|
|
105
|
+
$root: ComponentPublicInstance | null;
|
|
106
|
+
$parent: ComponentPublicInstance | null;
|
|
107
|
+
$host: Element | null;
|
|
108
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
109
|
+
$el: any;
|
|
110
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
111
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
112
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
113
|
+
new (): any;
|
|
114
|
+
readonly prototype: any;
|
|
115
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
116
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
117
|
+
new (): any;
|
|
118
|
+
readonly prototype: any;
|
|
119
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
120
|
+
readonly beforeRemove: {
|
|
121
|
+
readonly type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
122
|
+
readonly required: false;
|
|
123
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
+
__epPropKey: true;
|
|
125
|
+
};
|
|
126
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
127
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
128
|
+
new (): any;
|
|
129
|
+
readonly prototype: any;
|
|
130
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
131
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
132
|
+
new (): any;
|
|
133
|
+
readonly prototype: any;
|
|
134
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
135
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
136
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
137
|
+
new (): any;
|
|
138
|
+
readonly prototype: any;
|
|
139
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
140
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
141
|
+
new (): any;
|
|
142
|
+
readonly prototype: any;
|
|
143
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
144
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
145
|
+
(): (uploadFile: UploadFile) => void;
|
|
146
|
+
new (): any;
|
|
147
|
+
readonly prototype: any;
|
|
148
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
149
|
+
(): (uploadFile: UploadFile) => void;
|
|
150
|
+
new (): any;
|
|
151
|
+
readonly prototype: any;
|
|
152
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
153
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
154
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
155
|
+
new (): any;
|
|
156
|
+
readonly prototype: any;
|
|
157
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
158
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
159
|
+
new (): any;
|
|
160
|
+
readonly prototype: any;
|
|
161
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
162
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
163
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
164
|
+
new (): any;
|
|
165
|
+
readonly prototype: any;
|
|
166
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
167
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
168
|
+
new (): any;
|
|
169
|
+
readonly prototype: any;
|
|
170
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
171
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
172
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
173
|
+
new (): any;
|
|
174
|
+
readonly prototype: any;
|
|
175
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
176
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
177
|
+
new (): any;
|
|
178
|
+
readonly prototype: any;
|
|
179
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
180
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
181
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
182
|
+
new (): any;
|
|
183
|
+
readonly prototype: any;
|
|
184
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
185
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
186
|
+
new (): any;
|
|
187
|
+
readonly prototype: any;
|
|
188
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
189
|
+
readonly crossorigin: {
|
|
190
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
191
|
+
readonly required: false;
|
|
192
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
193
|
+
__epPropKey: true;
|
|
194
|
+
};
|
|
195
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
196
|
+
readonly headers: {
|
|
197
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
198
|
+
readonly required: false;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
+
__epPropKey: true;
|
|
201
|
+
};
|
|
202
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
203
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
|
204
|
+
readonly multiple: BooleanConstructor;
|
|
205
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
206
|
+
readonly drag: BooleanConstructor;
|
|
207
|
+
readonly withCredentials: BooleanConstructor;
|
|
208
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
209
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
210
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
211
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
212
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
213
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
214
|
+
(): UploadRequestHandler;
|
|
215
|
+
new (): any;
|
|
216
|
+
readonly prototype: any;
|
|
217
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
218
|
+
(): UploadRequestHandler;
|
|
219
|
+
new (): any;
|
|
220
|
+
readonly prototype: any;
|
|
221
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
222
|
+
readonly disabled: BooleanConstructor;
|
|
223
|
+
readonly limit: NumberConstructor;
|
|
224
|
+
}>>, {
|
|
225
|
+
abort: (file: UploadFile) => void;
|
|
226
|
+
submit: () => void;
|
|
227
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
228
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
229
|
+
handleRemove: (file: UploadFile | UploadRawFile, rawFile?: UploadRawFile) => void;
|
|
230
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {
|
|
231
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
232
|
+
readonly disabled: boolean;
|
|
233
|
+
readonly drag: boolean;
|
|
234
|
+
readonly multiple: boolean;
|
|
235
|
+
readonly name: string;
|
|
236
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
237
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
238
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
239
|
+
readonly action: string;
|
|
240
|
+
readonly withCredentials: boolean;
|
|
241
|
+
readonly method: string;
|
|
242
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
243
|
+
readonly accept: string;
|
|
244
|
+
readonly fileList: UploadUserFile[];
|
|
245
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
246
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
247
|
+
readonly httpRequest: UploadRequestHandler;
|
|
248
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
249
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
250
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
251
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
252
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
253
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
254
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
255
|
+
created?: (() => void) | (() => void)[];
|
|
256
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
257
|
+
mounted?: (() => void) | (() => void)[];
|
|
258
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
259
|
+
updated?: (() => void) | (() => void)[];
|
|
260
|
+
activated?: (() => void) | (() => void)[];
|
|
261
|
+
deactivated?: (() => void) | (() => void)[];
|
|
262
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
263
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
264
|
+
destroyed?: (() => void) | (() => void)[];
|
|
265
|
+
unmounted?: (() => void) | (() => void)[];
|
|
266
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
267
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
268
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
269
|
+
};
|
|
270
|
+
$forceUpdate: () => void;
|
|
271
|
+
$nextTick: nextTick;
|
|
272
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
273
|
+
} & Readonly<{
|
|
274
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
275
|
+
readonly disabled: boolean;
|
|
276
|
+
readonly drag: boolean;
|
|
277
|
+
readonly multiple: boolean;
|
|
278
|
+
readonly name: string;
|
|
279
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
280
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
281
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
282
|
+
readonly action: string;
|
|
283
|
+
readonly withCredentials: boolean;
|
|
284
|
+
readonly method: string;
|
|
285
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
286
|
+
readonly accept: string;
|
|
287
|
+
readonly fileList: UploadUserFile[];
|
|
288
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
289
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
290
|
+
readonly httpRequest: UploadRequestHandler;
|
|
291
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
292
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
293
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
294
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
295
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
296
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
297
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
298
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
299
|
+
new (): any;
|
|
300
|
+
readonly prototype: any;
|
|
301
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
302
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
303
|
+
new (): any;
|
|
304
|
+
readonly prototype: any;
|
|
305
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
306
|
+
readonly beforeRemove: {
|
|
307
|
+
readonly type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
308
|
+
readonly required: false;
|
|
309
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
310
|
+
__epPropKey: true;
|
|
311
|
+
};
|
|
312
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
313
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
314
|
+
new (): any;
|
|
315
|
+
readonly prototype: any;
|
|
316
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
317
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
318
|
+
new (): any;
|
|
319
|
+
readonly prototype: any;
|
|
320
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
321
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
322
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
323
|
+
new (): any;
|
|
324
|
+
readonly prototype: any;
|
|
325
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
326
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
327
|
+
new (): any;
|
|
328
|
+
readonly prototype: any;
|
|
329
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
330
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
331
|
+
(): (uploadFile: UploadFile) => void;
|
|
332
|
+
new (): any;
|
|
333
|
+
readonly prototype: any;
|
|
334
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
335
|
+
(): (uploadFile: UploadFile) => void;
|
|
336
|
+
new (): any;
|
|
337
|
+
readonly prototype: any;
|
|
338
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
339
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
340
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
341
|
+
new (): any;
|
|
342
|
+
readonly prototype: any;
|
|
343
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
344
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
345
|
+
new (): any;
|
|
346
|
+
readonly prototype: any;
|
|
347
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
348
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
349
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
350
|
+
new (): any;
|
|
351
|
+
readonly prototype: any;
|
|
352
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
353
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
354
|
+
new (): any;
|
|
355
|
+
readonly prototype: any;
|
|
356
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
357
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
358
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
359
|
+
new (): any;
|
|
360
|
+
readonly prototype: any;
|
|
361
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
362
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
363
|
+
new (): any;
|
|
364
|
+
readonly prototype: any;
|
|
365
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
366
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
367
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
368
|
+
new (): any;
|
|
369
|
+
readonly prototype: any;
|
|
370
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
371
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
372
|
+
new (): any;
|
|
373
|
+
readonly prototype: any;
|
|
374
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
375
|
+
readonly crossorigin: {
|
|
376
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
377
|
+
readonly required: false;
|
|
378
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
379
|
+
__epPropKey: true;
|
|
380
|
+
};
|
|
381
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
382
|
+
readonly headers: {
|
|
383
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
384
|
+
readonly required: false;
|
|
385
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
386
|
+
__epPropKey: true;
|
|
387
|
+
};
|
|
388
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
389
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
|
390
|
+
readonly multiple: BooleanConstructor;
|
|
391
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
392
|
+
readonly drag: BooleanConstructor;
|
|
393
|
+
readonly withCredentials: BooleanConstructor;
|
|
394
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
395
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
396
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
397
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
398
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
399
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
400
|
+
(): UploadRequestHandler;
|
|
401
|
+
new (): any;
|
|
402
|
+
readonly prototype: any;
|
|
403
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
404
|
+
(): UploadRequestHandler;
|
|
405
|
+
new (): any;
|
|
406
|
+
readonly prototype: any;
|
|
407
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
408
|
+
readonly disabled: BooleanConstructor;
|
|
409
|
+
readonly limit: NumberConstructor;
|
|
410
|
+
}>>, "abort" | "drag" | "submit" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
411
|
+
abort: (file: UploadFile) => void;
|
|
412
|
+
submit: () => void;
|
|
413
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
414
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
415
|
+
handleRemove: (file: UploadFile | UploadRawFile, rawFile?: UploadRawFile) => void;
|
|
416
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
417
|
+
$slots: {
|
|
418
|
+
file?(_: {
|
|
419
|
+
file: UploadFile;
|
|
420
|
+
index: number;
|
|
421
|
+
}): any;
|
|
422
|
+
file?(_: {
|
|
423
|
+
file: UploadFile;
|
|
424
|
+
index: number;
|
|
425
|
+
}): any;
|
|
426
|
+
trigger?(_: {}): any;
|
|
427
|
+
trigger?(_: {}): any;
|
|
428
|
+
default?(_: {}): any;
|
|
429
|
+
default?(_: {}): any;
|
|
430
|
+
default?(_: {}): any;
|
|
431
|
+
tip?(_: {}): any;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
39
435
|
P: {};
|
|
40
436
|
B: {};
|
|
41
437
|
D: {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ComplexSearchProps } from './props';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { SearchOptions, SearchDataOptions, SearchItem } from './complex-search';
|
|
4
|
+
import { EpPropMergeType, Arrayable, EpPropFinalized } from 'element-plus/es/utils';
|
|
5
|
+
import { FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext } from 'element-plus';
|
|
6
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
7
|
declare const _default: DefineComponent<ComplexSearchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
8
|
filterChangeGrandson: (...args: any[]) => void;
|
|
6
9
|
}, string, PublicProps, Readonly<ComplexSearchProps> & Readonly<{
|
|
@@ -16,5 +19,190 @@ declare const _default: DefineComponent<ComplexSearchProps, {}, {}, {}, {}, Comp
|
|
|
16
19
|
normalOptions: SearchDataOptions[];
|
|
17
20
|
showSelect: boolean;
|
|
18
21
|
searchItem: SearchItem;
|
|
19
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
23
|
+
batchSearchFormRef: {
|
|
24
|
+
$: ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: Partial<{
|
|
27
|
+
readonly disabled: boolean;
|
|
28
|
+
readonly inline: boolean;
|
|
29
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
30
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
31
|
+
readonly inlineMessage: boolean;
|
|
32
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
34
|
+
readonly labelSuffix: string;
|
|
35
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
|
+
readonly statusIcon: boolean;
|
|
37
|
+
readonly hideRequiredAsterisk: boolean;
|
|
38
|
+
readonly scrollToError: boolean;
|
|
39
|
+
}> & Omit<{
|
|
40
|
+
readonly disabled: boolean;
|
|
41
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
42
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
43
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
44
|
+
readonly labelSuffix: string;
|
|
45
|
+
readonly inline: boolean;
|
|
46
|
+
readonly inlineMessage: boolean;
|
|
47
|
+
readonly statusIcon: boolean;
|
|
48
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
49
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
50
|
+
readonly hideRequiredAsterisk: boolean;
|
|
51
|
+
readonly scrollToError: boolean;
|
|
52
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>;
|
|
53
|
+
readonly model?: Record<string, any>;
|
|
54
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
55
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>;
|
|
56
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
57
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
58
|
+
$attrs: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
$refs: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
$slots: Readonly<{
|
|
65
|
+
[name: string]: Slot<any>;
|
|
66
|
+
}>;
|
|
67
|
+
$root: ComponentPublicInstance | null;
|
|
68
|
+
$parent: ComponentPublicInstance | null;
|
|
69
|
+
$host: Element | null;
|
|
70
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
71
|
+
$el: any;
|
|
72
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
73
|
+
readonly model: ObjectConstructor;
|
|
74
|
+
readonly rules: {
|
|
75
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
76
|
+
readonly required: false;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
|
+
__epPropKey: true;
|
|
79
|
+
};
|
|
80
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
81
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
82
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
83
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
|
+
readonly inline: BooleanConstructor;
|
|
85
|
+
readonly inlineMessage: BooleanConstructor;
|
|
86
|
+
readonly statusIcon: BooleanConstructor;
|
|
87
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
88
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
89
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
90
|
+
readonly scrollToError: BooleanConstructor;
|
|
91
|
+
readonly scrollIntoViewOptions: {
|
|
92
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
};
|
|
97
|
+
readonly size: {
|
|
98
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
99
|
+
readonly required: false;
|
|
100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
+
__epPropKey: true;
|
|
102
|
+
};
|
|
103
|
+
readonly disabled: BooleanConstructor;
|
|
104
|
+
}>> & {
|
|
105
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
108
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
109
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
110
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
111
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
112
|
+
fields: FormItemContext[];
|
|
113
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
114
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
115
|
+
}, string, {
|
|
116
|
+
readonly disabled: boolean;
|
|
117
|
+
readonly inline: boolean;
|
|
118
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
119
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
120
|
+
readonly inlineMessage: boolean;
|
|
121
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
122
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
123
|
+
readonly labelSuffix: string;
|
|
124
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
|
+
readonly statusIcon: boolean;
|
|
126
|
+
readonly hideRequiredAsterisk: boolean;
|
|
127
|
+
readonly scrollToError: boolean;
|
|
128
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
129
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
130
|
+
created?: (() => void) | (() => void)[];
|
|
131
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
132
|
+
mounted?: (() => void) | (() => void)[];
|
|
133
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
134
|
+
updated?: (() => void) | (() => void)[];
|
|
135
|
+
activated?: (() => void) | (() => void)[];
|
|
136
|
+
deactivated?: (() => void) | (() => void)[];
|
|
137
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
138
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
139
|
+
destroyed?: (() => void) | (() => void)[];
|
|
140
|
+
unmounted?: (() => void) | (() => void)[];
|
|
141
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
142
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
143
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
144
|
+
};
|
|
145
|
+
$forceUpdate: () => void;
|
|
146
|
+
$nextTick: nextTick;
|
|
147
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
148
|
+
} & Readonly<{
|
|
149
|
+
readonly disabled: boolean;
|
|
150
|
+
readonly inline: boolean;
|
|
151
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
152
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
153
|
+
readonly inlineMessage: boolean;
|
|
154
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
155
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
156
|
+
readonly labelSuffix: string;
|
|
157
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
158
|
+
readonly statusIcon: boolean;
|
|
159
|
+
readonly hideRequiredAsterisk: boolean;
|
|
160
|
+
readonly scrollToError: boolean;
|
|
161
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
162
|
+
readonly model: ObjectConstructor;
|
|
163
|
+
readonly rules: {
|
|
164
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
165
|
+
readonly required: false;
|
|
166
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
167
|
+
__epPropKey: true;
|
|
168
|
+
};
|
|
169
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
170
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
171
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
172
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
173
|
+
readonly inline: BooleanConstructor;
|
|
174
|
+
readonly inlineMessage: BooleanConstructor;
|
|
175
|
+
readonly statusIcon: BooleanConstructor;
|
|
176
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
177
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
178
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
179
|
+
readonly scrollToError: BooleanConstructor;
|
|
180
|
+
readonly scrollIntoViewOptions: {
|
|
181
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
182
|
+
readonly required: false;
|
|
183
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
184
|
+
__epPropKey: true;
|
|
185
|
+
};
|
|
186
|
+
readonly size: {
|
|
187
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
188
|
+
readonly required: false;
|
|
189
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
190
|
+
__epPropKey: true;
|
|
191
|
+
};
|
|
192
|
+
readonly disabled: BooleanConstructor;
|
|
193
|
+
}>> & {
|
|
194
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
195
|
+
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "fields"> & ShallowUnwrapRef<{
|
|
196
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
197
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
198
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
199
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
200
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
201
|
+
fields: FormItemContext[];
|
|
202
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
203
|
+
$slots: {
|
|
204
|
+
default?(_: {}): any;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
}, any>;
|
|
20
208
|
export default _default;
|