voiptime-components 1.11.9 → 1.12.0
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/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +64 -0
- package/dist/index.es.js +2783 -2556
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/assets/main.scss +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -894,6 +894,7 @@ declare const icons: {
|
|
|
894
894
|
readonly star: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
895
895
|
readonly statusChange2: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
896
896
|
readonly statusChange: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
897
|
+
readonly uploadCloud: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
897
898
|
readonly usersGroup: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
898
899
|
readonly arrowDown: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
899
900
|
readonly arrowLeft: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -1144,6 +1145,23 @@ export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
|
1144
1145
|
|
|
1145
1146
|
export declare const uniqueAsync: (checkFn: (val: any) => Promise<boolean>, message?: string) => ValidatorFn;
|
|
1146
1147
|
|
|
1148
|
+
export declare interface UploadError {
|
|
1149
|
+
type: 'size' | 'type' | 'count';
|
|
1150
|
+
message: string;
|
|
1151
|
+
file?: File;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
export declare interface UploadFile {
|
|
1155
|
+
id: string;
|
|
1156
|
+
file: File;
|
|
1157
|
+
name: string;
|
|
1158
|
+
size: number;
|
|
1159
|
+
type: string;
|
|
1160
|
+
status: 'pending' | 'uploading' | 'success' | 'error';
|
|
1161
|
+
progress?: number;
|
|
1162
|
+
error?: string;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1147
1165
|
/**
|
|
1148
1166
|
* Build validation tree recursively
|
|
1149
1167
|
*/
|
|
@@ -2108,6 +2126,52 @@ export declare interface VUIPluginOptions {
|
|
|
2108
2126
|
message?: boolean;
|
|
2109
2127
|
}
|
|
2110
2128
|
|
|
2129
|
+
export declare const VUpload: DefineComponent<VUploadProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2130
|
+
change: (files: UploadFile[]) => any;
|
|
2131
|
+
error: (error: UploadError) => any;
|
|
2132
|
+
"update:modelValue": (files: UploadFile[]) => any;
|
|
2133
|
+
remove: (file: UploadFile) => any;
|
|
2134
|
+
exceed: (files: File[]) => any;
|
|
2135
|
+
}, string, PublicProps, Readonly<VUploadProps> & Readonly<{
|
|
2136
|
+
onChange?: ((files: UploadFile[]) => any) | undefined;
|
|
2137
|
+
onError?: ((error: UploadError) => any) | undefined;
|
|
2138
|
+
"onUpdate:modelValue"?: ((files: UploadFile[]) => any) | undefined;
|
|
2139
|
+
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
2140
|
+
onExceed?: ((files: File[]) => any) | undefined;
|
|
2141
|
+
}>, {
|
|
2142
|
+
type: "drag" | "button";
|
|
2143
|
+
disabled: boolean;
|
|
2144
|
+
modelValue: UploadFile[];
|
|
2145
|
+
placeholder: string;
|
|
2146
|
+
multiple: boolean;
|
|
2147
|
+
accept: string;
|
|
2148
|
+
maxSize: number;
|
|
2149
|
+
maxFiles: number;
|
|
2150
|
+
tip: string;
|
|
2151
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2152
|
+
fileInputRef: HTMLInputElement;
|
|
2153
|
+
}, HTMLDivElement>;
|
|
2154
|
+
|
|
2155
|
+
export declare interface VUploadEmits {
|
|
2156
|
+
(e: 'update:modelValue', files: UploadFile[]): void;
|
|
2157
|
+
(e: 'change', files: UploadFile[]): void;
|
|
2158
|
+
(e: 'remove', file: UploadFile): void;
|
|
2159
|
+
(e: 'exceed', files: File[]): void;
|
|
2160
|
+
(e: 'error', error: UploadError): void;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
export declare interface VUploadProps {
|
|
2164
|
+
modelValue?: UploadFile[];
|
|
2165
|
+
accept?: string;
|
|
2166
|
+
maxSize?: number;
|
|
2167
|
+
maxFiles?: number;
|
|
2168
|
+
multiple?: boolean;
|
|
2169
|
+
type?: 'drag' | 'button';
|
|
2170
|
+
disabled?: boolean;
|
|
2171
|
+
placeholder?: string;
|
|
2172
|
+
tip?: string;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2111
2175
|
export declare const WEEKDAY_NAMES: string[];
|
|
2112
2176
|
|
|
2113
2177
|
export declare const WEEKDAY_NAMES_SHORT: string[];
|