yahee-components 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/es/annex-upload/annex-upload.vue.js +6 -6
  2. package/es/api/server.js +13 -0
  3. package/es/api/tool.js +69 -0
  4. package/es/comprehensive-search/comprehensive-search.vue.js +1 -1
  5. package/es/image-upload/image-upload.vue.js +125 -124
  6. package/es/index.js +21 -16
  7. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
  8. package/es/operation-log/operation-log-content.vue.js +6 -6
  9. package/es/operation-log/operation-log-form.vue.js +2 -2
  10. package/es/operation-log/operation-log-form.vue2.js +17 -17
  11. package/es/operation-log/operation-log.vue.js +50 -49
  12. package/es/packages/components/api/log/index.js +15 -0
  13. package/es/packages/components/api/log-server.js +17 -21
  14. package/es/packages/components/api/server.js +19 -0
  15. package/es/packages/components/api/tool.js +57 -0
  16. package/es/packages/components/api/{requestTools.js → upload-server.js} +13 -10
  17. package/es/packages/components/hooks/useClipboard.js +16 -14
  18. package/es/packages/components/hooks/useImport.js +14 -12
  19. package/es/packages/components/hooks/useUpload.js +9 -9
  20. package/es/utils/config.js +19 -0
  21. package/es/utils/const.js +19 -0
  22. package/es/utils/translate.js +33 -31
  23. package/package.json +1 -1
  24. package/types/hooks/useClipboard.d.ts +7 -0
  25. package/types/hooks/useImg.d.ts +10 -0
  26. package/types/hooks/useImgPath.d.ts +5 -0
  27. package/types/hooks/useImport.d.ts +11 -0
  28. package/types/hooks/useUpload.d.ts +12 -0
  29. package/types/index.d.ts +6 -1204
  30. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  31. package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
  32. package/types/src/annex-upload/index.d.ts +123 -0
  33. package/types/src/annex-upload/mimeType.d.ts +2 -0
  34. package/types/src/api/server.d.ts +6 -0
  35. package/types/src/api/tool.d.ts +6 -0
  36. package/types/src/api/types.d.ts +17 -0
  37. package/types/src/components.d.ts +6 -0
  38. package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
  39. package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +33 -0
  40. package/types/src/comprehensive-search/index.d.ts +36 -0
  41. package/types/src/copy/copy.d.ts +12 -0
  42. package/types/src/copy/copy.vue.d.ts +21 -0
  43. package/types/src/copy/index.d.ts +32 -0
  44. package/types/src/image-upload/image-upload.d.ts +26 -0
  45. package/types/src/image-upload/image-upload.vue.d.ts +43 -0
  46. package/types/src/image-upload/index.d.ts +94 -0
  47. package/types/src/index.d.ts +7 -0
  48. package/types/src/input/index.d.ts +16 -0
  49. package/types/src/input/input.d.ts +18 -0
  50. package/types/src/input/input.vue.d.ts +14 -0
  51. package/types/src/installs.d.ts +278 -0
  52. package/types/src/operation-log/index.d.ts +9 -0
  53. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  54. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  55. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  56. package/types/src/operation-log/operation-log.d.ts +11 -0
  57. package/types/src/operation-log/operation-log.vue.d.ts +6 -0
  58. package/types/src/static/CommonObject.d.ts +18 -0
  59. package/types/src/static/CommonVariables.d.ts +4 -0
  60. package/types/src/utils/config.d.ts +8 -0
  61. package/types/src/utils/const.d.ts +19 -0
  62. package/types/src/utils/functions.d.ts +1 -0
  63. package/types/src/utils/install.d.ts +8 -0
  64. package/types/src/utils/storage.d.ts +18 -0
  65. package/types/src/utils/style.d.ts +19 -0
  66. package/types/src/utils/to-kebab-case.d.ts +1 -0
  67. package/types/src/utils/translate.d.ts +5 -0
  68. package/types/src/utils/typescript.d.ts +5 -0
  69. package/es/packages/components/api/remarkApi.js +0 -15
  70. package/es/packages/components/api/requestRemark.js +0 -47
  71. package/lib/_virtual/_commonjsHelpers.js +0 -1
  72. package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
  73. package/lib/_virtual/dayjs.min.js +0 -1
  74. package/lib/_virtual/lodash.js +0 -1
  75. package/lib/annex-upload/annex-upload.vue.js +0 -1
  76. package/lib/annex-upload/annex-upload.vue2.js +0 -1
  77. package/lib/annex-upload/index.js +0 -1
  78. package/lib/annex-upload/mimeType.js +0 -1
  79. package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
  80. package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
  81. package/lib/comprehensive-search/index.js +0 -1
  82. package/lib/copy/copy.vue.js +0 -1
  83. package/lib/copy/copy.vue2.js +0 -1
  84. package/lib/copy/index.js +0 -1
  85. package/lib/image-upload/image-upload.vue.js +0 -1
  86. package/lib/image-upload/image-upload.vue2.js +0 -1
  87. package/lib/image-upload/index.js +0 -1
  88. package/lib/index.js +0 -1
  89. package/lib/input/index.js +0 -1
  90. package/lib/input/input.vue.js +0 -1
  91. package/lib/input/input.vue2.js +0 -1
  92. package/lib/installs.js +0 -1
  93. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +0 -3
  94. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +0 -1
  95. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +0 -1
  96. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +0 -1
  97. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +0 -1
  98. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +0 -1
  99. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +0 -1
  100. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +0 -2
  101. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +0 -1
  102. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +0 -2
  103. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +0 -1
  104. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +0 -1
  105. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +0 -1
  106. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +0 -1
  107. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +0 -1
  108. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +0 -1
  109. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +0 -1
  110. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +0 -1
  111. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +0 -1
  112. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -1
  113. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -1
  114. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +0 -1
  115. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -1
  116. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +0 -1
  117. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +0 -1
  118. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +0 -1
  119. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +0 -1
  120. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
  121. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +0 -1
  122. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -1
  123. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +0 -1
  124. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +0 -2
  125. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +0 -1
  126. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +0 -1
  127. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +0 -1
  128. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +0 -1
  129. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +0 -1
  130. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +0 -1
  131. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +0 -1
  132. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -1
  133. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +0 -1
  134. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -1
  135. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -1
  136. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -1
  137. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -1
  138. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +0 -1
  139. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +0 -1
  140. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +0 -1
  141. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +0 -1
  142. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -1
  143. package/lib/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  144. package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +0 -27
  145. package/lib/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -1
  146. package/lib/operation-log/index.js +0 -1
  147. package/lib/operation-log/operation-log-content.vue.js +0 -1
  148. package/lib/operation-log/operation-log-content.vue2.js +0 -1
  149. package/lib/operation-log/operation-log-dialog.vue.js +0 -1
  150. package/lib/operation-log/operation-log-dialog.vue2.js +0 -1
  151. package/lib/operation-log/operation-log-form.vue.js +0 -1
  152. package/lib/operation-log/operation-log-form.vue2.js +0 -1
  153. package/lib/operation-log/operation-log.vue.js +0 -1
  154. package/lib/operation-log/operation-log.vue2.js +0 -1
  155. package/lib/packages/components/api/log-server.js +0 -1
  156. package/lib/packages/components/api/remarkApi.js +0 -1
  157. package/lib/packages/components/api/requestRemark.js +0 -1
  158. package/lib/packages/components/api/requestTools.js +0 -1
  159. package/lib/packages/components/assets/images/errorimg.png.js +0 -1
  160. package/lib/packages/components/assets/images/excel.png.js +0 -1
  161. package/lib/packages/components/assets/images/file-word.png.js +0 -1
  162. package/lib/packages/components/assets/images/pdf.png.js +0 -1
  163. package/lib/packages/components/assets/images/ppt.png.js +0 -1
  164. package/lib/packages/components/assets/images/vue.svg.js +0 -1
  165. package/lib/packages/components/hooks/useClipboard.js +0 -1
  166. package/lib/packages/components/hooks/useImg.js +0 -1
  167. package/lib/packages/components/hooks/useImgPath.js +0 -1
  168. package/lib/packages/components/hooks/useImport.js +0 -1
  169. package/lib/packages/components/hooks/useUpload.js +0 -1
  170. package/lib/utils/install.js +0 -1
  171. package/lib/utils/storage.js +0 -1
  172. package/lib/utils/translate.js +0 -1
  173. /package/es/node_modules/.pnpm/{element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_ → 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,30 @@
1
+ import { default as AnnexUpload } from './annex-upload.vue';
2
+ /**
3
+ * 定义props类型
4
+ */
5
+ export interface AnnexUploadProps {
6
+ modelValue: {
7
+ index: number;
8
+ fileId: string;
9
+ fileName: string;
10
+ }[];
11
+ fileList?: {
12
+ name: string;
13
+ url: string;
14
+ }[];
15
+ showList?: boolean;
16
+ fileType?: string;
17
+ accept?: string;
18
+ checkRealType?: boolean;
19
+ limit?: number;
20
+ limitFileSize?: boolean;
21
+ fileSize?: number;
22
+ fileSizeUnit?: 'kb' | 'KB' | 'mb' | 'MB';
23
+ uploadType?: 'upload' | 'import';
24
+ validateEvent?: boolean;
25
+ showTips?: boolean;
26
+ }
27
+ /**
28
+ * 定义instance类型
29
+ */
30
+ export type AnnexUploadInstance = InstanceType<typeof AnnexUpload>;
@@ -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,2 @@
1
+ export declare const MimeType: Map<string, string>;
2
+ export declare function getMime(ext: string): string | undefined;
@@ -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>;