yahee-components 0.0.18 → 0.0.19
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 +4 -0
- package/es/annex-upload/annex-upload.vue.js +158 -0
- package/es/annex-upload/annex-upload.vue2.js +4 -0
- package/es/annex-upload/index.js +7 -0
- package/es/annex-upload/mimeType.js +822 -0
- package/es/annex-upload/style/index.css +7 -0
- package/es/api/server.js +29 -0
- package/es/api/tool.js +68 -0
- package/es/comprehensive-search/comprehensive-search.vue.js +165 -122
- package/es/copy/copy.vue.js +1 -1
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
- package/es/country-platform-shop-condition/index.js +7 -0
- package/es/country-platform-shop-condition/style/index.css +48 -0
- package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
- package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
- package/es/drop-down-condition/index.js +7 -0
- package/es/drop-down-condition/style/index.css +45 -0
- package/es/image-upload/image-upload.vue.js +177 -0
- package/es/image-upload/image-upload.vue2.js +4 -0
- package/es/image-upload/index.js +7 -0
- package/es/image-upload/style/index.css +33 -0
- package/es/index.js +26 -7
- package/es/installs.js +22 -4
- package/es/left-condition/index.js +7 -0
- package/es/left-condition/left-condition-sub.vue.js +95 -0
- package/es/left-condition/left-condition-sub.vue2.js +4 -0
- package/es/left-condition/left-condition.vue.js +216 -0
- package/es/left-condition/left-condition.vue2.js +4 -0
- package/es/left-condition/style/index.css +10 -0
- package/es/left-condition-enum/index.js +7 -0
- package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
- package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
- package/es/left-condition-enum/style/index.css +10 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/node_modules/{lodash → .pnpm/lodash@4.17.21/node_modules/lodash}/lodash.js +2 -2
- package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
- package/es/operation-log/index.js +7 -0
- package/es/operation-log/operation-log-content.vue.js +100 -0
- package/es/operation-log/operation-log-content.vue2.js +4 -0
- package/es/operation-log/operation-log-dialog.vue.js +70 -0
- package/es/operation-log/operation-log-dialog.vue2.js +4 -0
- package/es/operation-log/operation-log-form.vue.js +181 -0
- package/es/operation-log/operation-log-form.vue2.js +4 -0
- package/es/operation-log/operation-log.vue.js +232 -0
- package/es/operation-log/operation-log.vue2.js +4 -0
- package/es/operation-log/style/index.css +220 -0
- package/es/packages/components/api/log/index.js +15 -0
- package/es/packages/components/api/log-server.js +50 -0
- package/es/packages/components/api/server.js +32 -0
- package/es/packages/components/api/tool.js +56 -0
- package/es/packages/components/api/upload-server.js +65 -0
- package/es/packages/components/assets/images/errorimg.png.js +4 -0
- package/es/packages/components/assets/images/excel.png.js +4 -0
- package/es/packages/components/assets/images/file-word.png.js +4 -0
- package/es/packages/components/assets/images/pdf.png.js +4 -0
- package/es/packages/components/assets/images/ppt.png.js +4 -0
- package/es/packages/components/assets/images/vue.svg.js +4 -0
- package/es/packages/components/hooks/useClipboard.js +30 -0
- package/es/packages/components/hooks/useImg.js +15 -0
- package/es/packages/components/hooks/useImgPath.js +14 -0
- package/es/packages/components/hooks/useImport.js +33 -0
- package/es/packages/components/hooks/useUpload.js +24 -0
- package/es/static/CommonObject.js +4 -0
- package/es/style.css +946 -0
- package/es/styles/custom.css +83 -0
- package/es/styles/globals.css +697 -0
- package/es/styles/index.css +787 -0
- package/es/styles/variables.css +32 -0
- package/es/utils/config.js +19 -0
- package/es/utils/const.js +19 -0
- package/es/utils/storage.js +52 -0
- package/es/utils/style.js +28 -0
- package/es/utils/translate.js +57 -0
- package/lib/annex-upload/style/index.css +7 -0
- package/lib/country-platform-shop-condition/style/index.css +48 -0
- package/lib/drop-down-condition/style/index.css +45 -0
- package/lib/image-upload/style/index.css +33 -0
- package/lib/left-condition/style/index.css +10 -0
- package/lib/left-condition-enum/style/index.css +10 -0
- package/lib/operation-log/style/index.css +220 -0
- package/lib/style.css +946 -0
- package/lib/styles/custom.css +83 -0
- package/lib/styles/globals.css +697 -0
- package/lib/styles/index.css +787 -0
- package/lib/styles/variables.css +32 -0
- package/package.json +10 -4
- package/types/hooks/useClipboard.d.ts +7 -0
- package/types/hooks/useImg.d.ts +10 -0
- package/types/hooks/useImgPath.d.ts +5 -0
- package/types/hooks/useImport.d.ts +11 -0
- package/types/hooks/useUpload.d.ts +12 -0
- package/types/index.d.ts +6 -204
- package/types/src/annex-upload/annex-upload.d.ts +30 -0
- package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
- package/types/src/annex-upload/index.d.ts +123 -0
- package/types/src/annex-upload/mimeType.d.ts +2 -0
- package/types/src/api/server.d.ts +6 -0
- package/types/src/api/tool.d.ts +6 -0
- package/types/src/api/types.d.ts +17 -0
- package/types/src/components.d.ts +10 -0
- package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
- package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +52 -0
- package/types/src/copy/copy.d.ts +12 -0
- package/types/src/copy/copy.vue.d.ts +21 -0
- package/types/src/copy/index.d.ts +32 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
- package/types/src/country-platform-shop-condition/index.d.ts +16 -0
- package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
- package/types/src/drop-down-condition/index.d.ts +42 -0
- package/types/src/image-upload/image-upload.d.ts +26 -0
- package/types/src/image-upload/image-upload.vue.d.ts +43 -0
- package/types/src/image-upload/index.d.ts +94 -0
- package/types/src/index.d.ts +7 -0
- package/types/src/input/index.d.ts +16 -0
- package/types/src/input/input.d.ts +18 -0
- package/types/src/input/input.vue.d.ts +14 -0
- package/types/src/left-condition/index.d.ts +69 -0
- package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
- package/types/src/left-condition/left-condition.d.ts +5 -0
- package/types/src/left-condition/left-condition.vue.d.ts +68 -0
- package/types/src/left-condition-enum/index.d.ts +162 -0
- package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
- package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
- package/types/src/operation-log/index.d.ts +9 -0
- package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
- package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
- package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
- package/types/src/operation-log/operation-log.d.ts +11 -0
- package/types/src/operation-log/operation-log.vue.d.ts +6 -0
- package/types/src/static/CommonObject.d.ts +18 -0
- package/types/src/static/CommonVariables.d.ts +4 -0
- package/types/src/utils/config.d.ts +8 -0
- package/types/src/utils/const.d.ts +19 -0
- package/types/src/utils/functions.d.ts +1 -0
- package/types/src/utils/install.d.ts +8 -0
- package/types/src/utils/storage.d.ts +18 -0
- package/types/src/utils/style.d.ts +19 -0
- package/types/src/utils/to-kebab-case.d.ts +1 -0
- package/types/src/utils/translate.d.ts +5 -0
- package/types/src/utils/typescript.d.ts +5 -0
- package/es/hooks/useClipboard.js +0 -28
- package/lib/_virtual/_commonjsHelpers.js +0 -1
- package/lib/_virtual/lodash.js +0 -1
- package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
- package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
- package/lib/comprehensive-search/index.js +0 -1
- package/lib/copy/copy.vue.js +0 -1
- package/lib/copy/copy.vue2.js +0 -1
- package/lib/copy/index.js +0 -1
- package/lib/hooks/useClipboard.js +0 -1
- package/lib/index.js +0 -1
- package/lib/input/index.js +0 -1
- package/lib/input/input.vue.js +0 -1
- package/lib/input/input.vue2.js +0 -1
- package/lib/installs.js +0 -1
- package/lib/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
- package/lib/node_modules/lodash/lodash.js +0 -27
- package/lib/utils/install.js +0 -1
- /package/es/node_modules/{element-plus → .pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_/node_modules/element-plus}/es/locale/lang/zh-cn.js +0 -0
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import { UploadRequestHandler, UploadRawFile, UploadFile, UploadFiles, UploadUserFile, UploadProgressEvent } from 'element-plus';
|
|
2
|
+
import { AnnexUploadProps } from './annex-upload';
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
4
|
+
import { EpPropMergeType, Awaitable, Mutable, EpPropFinalized } from 'element-plus/es/utils';
|
|
5
|
+
import { UploadFile, UploadFiles, UploadProgressEvent, UploadRequestHandler, UploadRawFile, UploadStatus } from 'element-plus/es/components/upload/src/upload';
|
|
6
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
7
|
+
declare function clearFiles(): Promise<void>;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
tip?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {
|
|
14
|
+
uploadRef: {
|
|
15
|
+
$: ComponentInternalInstance;
|
|
16
|
+
$data: {};
|
|
17
|
+
$props: Partial<{
|
|
18
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown>;
|
|
19
|
+
readonly drag: boolean;
|
|
20
|
+
readonly multiple: boolean;
|
|
21
|
+
readonly disabled: boolean;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
24
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
25
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
26
|
+
readonly method: string;
|
|
27
|
+
readonly action: string;
|
|
28
|
+
readonly withCredentials: boolean;
|
|
29
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
30
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
31
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
32
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
+
readonly accept: string;
|
|
34
|
+
readonly fileList: UploadUserFile[];
|
|
35
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
|
+
readonly httpRequest: UploadRequestHandler;
|
|
37
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
38
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
39
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
40
|
+
}> & Omit<{
|
|
41
|
+
readonly drag: boolean;
|
|
42
|
+
readonly disabled: boolean;
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly data: Mutable<{}>;
|
|
45
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
46
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
47
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
48
|
+
readonly multiple: boolean;
|
|
49
|
+
readonly method: string;
|
|
50
|
+
readonly withCredentials: boolean;
|
|
51
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
52
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
53
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
54
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
55
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
56
|
+
readonly action: 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, "text" | "picture" | "picture-card", unknown>;
|
|
62
|
+
readonly httpRequest: UploadRequestHandler;
|
|
63
|
+
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>;
|
|
64
|
+
readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>;
|
|
65
|
+
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
|
|
66
|
+
readonly limit?: number;
|
|
67
|
+
} & 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">;
|
|
68
|
+
$attrs: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
$refs: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
$slots: Readonly<{
|
|
75
|
+
[name: string]: Slot<any>;
|
|
76
|
+
}>;
|
|
77
|
+
$root: ComponentPublicInstance | null;
|
|
78
|
+
$parent: ComponentPublicInstance | null;
|
|
79
|
+
$host: Element | null;
|
|
80
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
81
|
+
$el: any;
|
|
82
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
83
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
84
|
+
(): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
85
|
+
new (): any;
|
|
86
|
+
readonly prototype: any;
|
|
87
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
88
|
+
(): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
89
|
+
new (): any;
|
|
90
|
+
readonly prototype: any;
|
|
91
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
92
|
+
readonly beforeRemove: {
|
|
93
|
+
readonly type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
94
|
+
readonly required: false;
|
|
95
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
+
__epPropKey: true;
|
|
97
|
+
};
|
|
98
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
99
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
100
|
+
new (): any;
|
|
101
|
+
readonly prototype: any;
|
|
102
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
103
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
104
|
+
new (): any;
|
|
105
|
+
readonly prototype: any;
|
|
106
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
107
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
108
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
109
|
+
new (): any;
|
|
110
|
+
readonly prototype: any;
|
|
111
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
112
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
113
|
+
new (): any;
|
|
114
|
+
readonly prototype: any;
|
|
115
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
116
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
117
|
+
(): (uploadFile: UploadFile) => void;
|
|
118
|
+
new (): any;
|
|
119
|
+
readonly prototype: any;
|
|
120
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
121
|
+
(): (uploadFile: UploadFile) => void;
|
|
122
|
+
new (): any;
|
|
123
|
+
readonly prototype: any;
|
|
124
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
125
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
126
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
127
|
+
new (): any;
|
|
128
|
+
readonly prototype: any;
|
|
129
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
130
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
131
|
+
new (): any;
|
|
132
|
+
readonly prototype: any;
|
|
133
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
134
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
135
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
136
|
+
new (): any;
|
|
137
|
+
readonly prototype: any;
|
|
138
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
139
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
140
|
+
new (): any;
|
|
141
|
+
readonly prototype: any;
|
|
142
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
143
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
144
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
145
|
+
new (): any;
|
|
146
|
+
readonly prototype: any;
|
|
147
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
148
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
149
|
+
new (): any;
|
|
150
|
+
readonly prototype: any;
|
|
151
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
152
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
153
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
154
|
+
new (): any;
|
|
155
|
+
readonly prototype: any;
|
|
156
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
157
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
158
|
+
new (): any;
|
|
159
|
+
readonly prototype: any;
|
|
160
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
161
|
+
readonly crossorigin: {
|
|
162
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
163
|
+
readonly required: false;
|
|
164
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
165
|
+
__epPropKey: true;
|
|
166
|
+
};
|
|
167
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
168
|
+
readonly headers: {
|
|
169
|
+
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>>;
|
|
170
|
+
readonly required: false;
|
|
171
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
+
__epPropKey: true;
|
|
173
|
+
};
|
|
174
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
175
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
|
176
|
+
readonly multiple: BooleanConstructor;
|
|
177
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
178
|
+
readonly drag: BooleanConstructor;
|
|
179
|
+
readonly withCredentials: BooleanConstructor;
|
|
180
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
181
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
182
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
183
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
184
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
185
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
186
|
+
(): UploadRequestHandler;
|
|
187
|
+
new (): any;
|
|
188
|
+
readonly prototype: any;
|
|
189
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
190
|
+
(): UploadRequestHandler;
|
|
191
|
+
new (): any;
|
|
192
|
+
readonly prototype: any;
|
|
193
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
194
|
+
readonly disabled: BooleanConstructor;
|
|
195
|
+
readonly limit: NumberConstructor;
|
|
196
|
+
}>>, {
|
|
197
|
+
abort: (file: UploadFile) => void;
|
|
198
|
+
submit: () => void;
|
|
199
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
200
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
201
|
+
handleRemove: (file: UploadRawFile | UploadFile, rawFile?: UploadRawFile | undefined) => void;
|
|
202
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {
|
|
203
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown>;
|
|
204
|
+
readonly drag: boolean;
|
|
205
|
+
readonly multiple: boolean;
|
|
206
|
+
readonly disabled: boolean;
|
|
207
|
+
readonly name: string;
|
|
208
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
209
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
210
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
211
|
+
readonly method: string;
|
|
212
|
+
readonly action: string;
|
|
213
|
+
readonly withCredentials: boolean;
|
|
214
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
215
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
216
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
217
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
218
|
+
readonly accept: string;
|
|
219
|
+
readonly fileList: UploadUserFile[];
|
|
220
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
221
|
+
readonly httpRequest: UploadRequestHandler;
|
|
222
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
223
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
224
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
225
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
226
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
227
|
+
created?: (() => void) | (() => void)[];
|
|
228
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
229
|
+
mounted?: (() => void) | (() => void)[];
|
|
230
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
231
|
+
updated?: (() => void) | (() => void)[];
|
|
232
|
+
activated?: (() => void) | (() => void)[];
|
|
233
|
+
deactivated?: (() => void) | (() => void)[];
|
|
234
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
235
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
236
|
+
destroyed?: (() => void) | (() => void)[];
|
|
237
|
+
unmounted?: (() => void) | (() => void)[];
|
|
238
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
239
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
240
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
241
|
+
};
|
|
242
|
+
$forceUpdate: () => void;
|
|
243
|
+
$nextTick: nextTick;
|
|
244
|
+
$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;
|
|
245
|
+
} & Readonly<{
|
|
246
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown>;
|
|
247
|
+
readonly drag: boolean;
|
|
248
|
+
readonly multiple: boolean;
|
|
249
|
+
readonly disabled: boolean;
|
|
250
|
+
readonly name: string;
|
|
251
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
252
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
253
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
254
|
+
readonly method: string;
|
|
255
|
+
readonly action: string;
|
|
256
|
+
readonly withCredentials: boolean;
|
|
257
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
258
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
259
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
260
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
261
|
+
readonly accept: string;
|
|
262
|
+
readonly fileList: UploadUserFile[];
|
|
263
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
264
|
+
readonly httpRequest: UploadRequestHandler;
|
|
265
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
266
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
267
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
268
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
269
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
270
|
+
(): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
271
|
+
new (): any;
|
|
272
|
+
readonly prototype: any;
|
|
273
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
274
|
+
(): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
275
|
+
new (): any;
|
|
276
|
+
readonly prototype: any;
|
|
277
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
278
|
+
readonly beforeRemove: {
|
|
279
|
+
readonly type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
280
|
+
readonly required: false;
|
|
281
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
282
|
+
__epPropKey: true;
|
|
283
|
+
};
|
|
284
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
285
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
286
|
+
new (): any;
|
|
287
|
+
readonly prototype: any;
|
|
288
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
289
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
290
|
+
new (): any;
|
|
291
|
+
readonly prototype: any;
|
|
292
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
293
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
294
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
295
|
+
new (): any;
|
|
296
|
+
readonly prototype: any;
|
|
297
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
298
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
299
|
+
new (): any;
|
|
300
|
+
readonly prototype: any;
|
|
301
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
302
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
303
|
+
(): (uploadFile: UploadFile) => void;
|
|
304
|
+
new (): any;
|
|
305
|
+
readonly prototype: any;
|
|
306
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
307
|
+
(): (uploadFile: UploadFile) => void;
|
|
308
|
+
new (): any;
|
|
309
|
+
readonly prototype: any;
|
|
310
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
311
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
312
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
313
|
+
new (): any;
|
|
314
|
+
readonly prototype: any;
|
|
315
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
316
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
317
|
+
new (): any;
|
|
318
|
+
readonly prototype: any;
|
|
319
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
320
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
321
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
322
|
+
new (): any;
|
|
323
|
+
readonly prototype: any;
|
|
324
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
325
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
326
|
+
new (): any;
|
|
327
|
+
readonly prototype: any;
|
|
328
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
329
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
330
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
331
|
+
new (): any;
|
|
332
|
+
readonly prototype: any;
|
|
333
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
334
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
335
|
+
new (): any;
|
|
336
|
+
readonly prototype: any;
|
|
337
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
338
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
339
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
340
|
+
new (): any;
|
|
341
|
+
readonly prototype: any;
|
|
342
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
343
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
344
|
+
new (): any;
|
|
345
|
+
readonly prototype: any;
|
|
346
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
347
|
+
readonly crossorigin: {
|
|
348
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
349
|
+
readonly required: false;
|
|
350
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
351
|
+
__epPropKey: true;
|
|
352
|
+
};
|
|
353
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
354
|
+
readonly headers: {
|
|
355
|
+
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>>;
|
|
356
|
+
readonly required: false;
|
|
357
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
358
|
+
__epPropKey: true;
|
|
359
|
+
};
|
|
360
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
361
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
|
362
|
+
readonly multiple: BooleanConstructor;
|
|
363
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
364
|
+
readonly drag: BooleanConstructor;
|
|
365
|
+
readonly withCredentials: BooleanConstructor;
|
|
366
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
367
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
368
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
369
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
370
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
371
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
372
|
+
(): UploadRequestHandler;
|
|
373
|
+
new (): any;
|
|
374
|
+
readonly prototype: any;
|
|
375
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
376
|
+
(): UploadRequestHandler;
|
|
377
|
+
new (): any;
|
|
378
|
+
readonly prototype: any;
|
|
379
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
380
|
+
readonly disabled: BooleanConstructor;
|
|
381
|
+
readonly limit: NumberConstructor;
|
|
382
|
+
}>>, "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<{
|
|
383
|
+
abort: (file: UploadFile) => void;
|
|
384
|
+
submit: () => void;
|
|
385
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
386
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
387
|
+
handleRemove: (file: UploadRawFile | UploadFile, rawFile?: UploadRawFile | undefined) => void;
|
|
388
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
389
|
+
$slots: {
|
|
390
|
+
file?(_: {
|
|
391
|
+
file: UploadFile;
|
|
392
|
+
index: number;
|
|
393
|
+
}): any;
|
|
394
|
+
trigger?(_: {}): any;
|
|
395
|
+
default?(_: {}): any;
|
|
396
|
+
tip?(_: {}): any;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
attrs: Partial<{}>;
|
|
401
|
+
};
|
|
402
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
403
|
+
declare const __VLS_component: DefineComponent<AnnexUploadProps, {
|
|
404
|
+
clearFiles: typeof clearFiles;
|
|
405
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
406
|
+
change: (...args: any[]) => void;
|
|
407
|
+
"update:modelValue": (...args: any[]) => void;
|
|
408
|
+
success: (...args: any[]) => void;
|
|
409
|
+
remove: (...args: any[]) => void;
|
|
410
|
+
}, string, PublicProps, Readonly<AnnexUploadProps> & Readonly<{
|
|
411
|
+
onChange?: (...args: any[]) => any;
|
|
412
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
413
|
+
onSuccess?: (...args: any[]) => any;
|
|
414
|
+
onRemove?: (...args: any[]) => any;
|
|
415
|
+
}>, {
|
|
416
|
+
modelValue: {
|
|
417
|
+
index: number;
|
|
418
|
+
fileId: string;
|
|
419
|
+
fileName: string;
|
|
420
|
+
}[];
|
|
421
|
+
validateEvent: boolean;
|
|
422
|
+
fileType: string;
|
|
423
|
+
limitFileSize: boolean;
|
|
424
|
+
fileSize: number;
|
|
425
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
426
|
+
accept: string;
|
|
427
|
+
fileList: {
|
|
428
|
+
name: string;
|
|
429
|
+
url: string;
|
|
430
|
+
}[];
|
|
431
|
+
limit: number;
|
|
432
|
+
showList: boolean;
|
|
433
|
+
checkRealType: boolean;
|
|
434
|
+
uploadType: "upload" | "import";
|
|
435
|
+
showTips: boolean;
|
|
436
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
437
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
438
|
+
export default _default;
|
|
439
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
440
|
+
new (): {
|
|
441
|
+
$slots: S;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../utils/typescript';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase } from 'vue';
|
|
3
|
+
import { AnnexUploadProps } from './annex-upload';
|
|
4
|
+
export declare const YaheeAnnexUpload: SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< AnnexUploadProps> & Readonly<{
|
|
6
|
+
onChange?: (...args: any[]) => any;
|
|
7
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
8
|
+
onSuccess?: (...args: any[]) => any;
|
|
9
|
+
onRemove?: (...args: any[]) => any;
|
|
10
|
+
}>, {
|
|
11
|
+
clearFiles: () => Promise<void>;
|
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
change: (...args: any[]) => void;
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
success: (...args: any[]) => void;
|
|
16
|
+
remove: (...args: any[]) => void;
|
|
17
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< AnnexUploadProps> & Readonly<{
|
|
18
|
+
onChange?: (...args: any[]) => any;
|
|
19
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
20
|
+
onSuccess?: (...args: any[]) => any;
|
|
21
|
+
onRemove?: (...args: any[]) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
modelValue: {
|
|
24
|
+
index: number;
|
|
25
|
+
fileId: string;
|
|
26
|
+
fileName: string;
|
|
27
|
+
}[];
|
|
28
|
+
validateEvent: boolean;
|
|
29
|
+
fileType: string;
|
|
30
|
+
limitFileSize: boolean;
|
|
31
|
+
fileSize: number;
|
|
32
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
33
|
+
accept: string;
|
|
34
|
+
fileList: {
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
}[];
|
|
38
|
+
limit: number;
|
|
39
|
+
showList: boolean;
|
|
40
|
+
checkRealType: boolean;
|
|
41
|
+
uploadType: "upload" | "import";
|
|
42
|
+
showTips: boolean;
|
|
43
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
44
|
+
P: {};
|
|
45
|
+
B: {};
|
|
46
|
+
D: {};
|
|
47
|
+
C: {};
|
|
48
|
+
M: {};
|
|
49
|
+
Defaults: {};
|
|
50
|
+
}, Readonly< AnnexUploadProps> & Readonly<{
|
|
51
|
+
onChange?: (...args: any[]) => any;
|
|
52
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
53
|
+
onSuccess?: (...args: any[]) => any;
|
|
54
|
+
onRemove?: (...args: any[]) => any;
|
|
55
|
+
}>, {
|
|
56
|
+
clearFiles: () => Promise<void>;
|
|
57
|
+
}, {}, {}, {}, {
|
|
58
|
+
modelValue: {
|
|
59
|
+
index: number;
|
|
60
|
+
fileId: string;
|
|
61
|
+
fileName: string;
|
|
62
|
+
}[];
|
|
63
|
+
validateEvent: boolean;
|
|
64
|
+
fileType: string;
|
|
65
|
+
limitFileSize: boolean;
|
|
66
|
+
fileSize: number;
|
|
67
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
68
|
+
accept: string;
|
|
69
|
+
fileList: {
|
|
70
|
+
name: string;
|
|
71
|
+
url: string;
|
|
72
|
+
}[];
|
|
73
|
+
limit: number;
|
|
74
|
+
showList: boolean;
|
|
75
|
+
checkRealType: boolean;
|
|
76
|
+
uploadType: "upload" | "import";
|
|
77
|
+
showTips: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
__isFragment?: never;
|
|
80
|
+
__isTeleport?: never;
|
|
81
|
+
__isSuspense?: never;
|
|
82
|
+
} & ComponentOptionsBase<Readonly< AnnexUploadProps> & Readonly<{
|
|
83
|
+
onChange?: (...args: any[]) => any;
|
|
84
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
85
|
+
onSuccess?: (...args: any[]) => any;
|
|
86
|
+
onRemove?: (...args: any[]) => any;
|
|
87
|
+
}>, {
|
|
88
|
+
clearFiles: () => Promise<void>;
|
|
89
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
90
|
+
change: (...args: any[]) => void;
|
|
91
|
+
"update:modelValue": (...args: any[]) => void;
|
|
92
|
+
success: (...args: any[]) => void;
|
|
93
|
+
remove: (...args: any[]) => void;
|
|
94
|
+
}, string, {
|
|
95
|
+
modelValue: {
|
|
96
|
+
index: number;
|
|
97
|
+
fileId: string;
|
|
98
|
+
fileName: string;
|
|
99
|
+
}[];
|
|
100
|
+
validateEvent: boolean;
|
|
101
|
+
fileType: string;
|
|
102
|
+
limitFileSize: boolean;
|
|
103
|
+
fileSize: number;
|
|
104
|
+
fileSizeUnit: "kb" | "KB" | "mb" | "MB";
|
|
105
|
+
accept: string;
|
|
106
|
+
fileList: {
|
|
107
|
+
name: string;
|
|
108
|
+
url: string;
|
|
109
|
+
}[];
|
|
110
|
+
limit: number;
|
|
111
|
+
showList: boolean;
|
|
112
|
+
checkRealType: boolean;
|
|
113
|
+
uploadType: "upload" | "import";
|
|
114
|
+
showTips: boolean;
|
|
115
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
116
|
+
$slots: {
|
|
117
|
+
default?(_: {}): any;
|
|
118
|
+
tip?(_: {}): any;
|
|
119
|
+
};
|
|
120
|
+
})> & Record<string, any>;
|
|
121
|
+
export default YaheeAnnexUpload;
|
|
122
|
+
export * from './annex-upload.vue';
|
|
123
|
+
export * from './annex-upload';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ErrorObject, FcResponse, Fn, IAnyObj } from './types';
|
|
2
|
+
export declare const Get: <T>(url: string, params?: IAnyObj, clearFn?: Fn<void>) => Promise<ErrorObject<T> | FcResponse<T>>;
|
|
3
|
+
export declare const Post: <T>(url: string, data: IAnyObj, params?: IAnyObj) => Promise<FcResponse<T> | ErrorObject<T>>;
|
|
4
|
+
export declare const Delete: <T>(url: string, data: IAnyObj, params?: IAnyObj) => Promise<ErrorObject<T> | FcResponse<T>>;
|
|
5
|
+
export declare const Put: <T>(url: string, data: IAnyObj, params?: IAnyObj) => Promise<ErrorObject<T> | FcResponse<T>>;
|
|
6
|
+
export declare const Patch: <T>(url: string, data: IAnyObj, params?: IAnyObj) => Promise<ErrorObject<T> | FcResponse<T>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InternalAxiosRequestConfig } from 'axios';
|
|
2
|
+
export declare const handleChangeRequestHeader: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
|
|
3
|
+
export declare const handleConfigureAuth: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
|
|
4
|
+
export declare const handleNetworkError: (errStatus?: number) => void;
|
|
5
|
+
export declare const handleAuthError: (errno: number) => boolean;
|
|
6
|
+
export declare const handleGeneralError: (status: number, msg: string) => boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Fn<T> = (data: FcResponse<T>) => unknown;
|
|
2
|
+
export interface IAnyObj {
|
|
3
|
+
[index: string]: unknown;
|
|
4
|
+
}
|
|
5
|
+
export interface FcResponse<T> {
|
|
6
|
+
status: number;
|
|
7
|
+
msg: string;
|
|
8
|
+
data: T;
|
|
9
|
+
ext?: string;
|
|
10
|
+
sts?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ErrorObject<T> {
|
|
13
|
+
msg?: string;
|
|
14
|
+
data?: T;
|
|
15
|
+
status?: number;
|
|
16
|
+
}
|
|
17
|
+
export type ApiResponse<T> = Promise<ErrorObject<T> | FcResponse<T> | undefined | null>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './input';
|
|
2
|
+
export * from './comprehensive-search';
|
|
3
|
+
export * from './copy';
|
|
4
|
+
export * from './image-upload';
|
|
5
|
+
export * from './annex-upload';
|
|
6
|
+
export * from './operation-log';
|
|
7
|
+
export * from './country-platform-shop-condition';
|
|
8
|
+
export * from './left-condition';
|
|
9
|
+
export * from './left-condition-enum';
|
|
10
|
+
export * from './drop-down-condition';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as ComprehensiveSearch } from './comprehensive-search.vue';
|
|
2
|
+
/**
|
|
3
|
+
* 定义instance类型
|
|
4
|
+
*/
|
|
5
|
+
export type ComprehensiveSearchInstance = InstanceType<typeof ComprehensiveSearch>;
|
|
6
|
+
/**
|
|
7
|
+
* 综合搜索下拉选项
|
|
8
|
+
*/
|
|
9
|
+
export type SearchOptions = {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|