@cregis/ui 1.1.6 → 1.1.7
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.js +1219 -1211
- package/dist/types/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -825,7 +825,9 @@ declare type Type_2 = 'default' | 'plain' | 'noBorder';
|
|
|
825
825
|
|
|
826
826
|
declare type Type_3 = 'default' | 'plain' | 'noBorder';
|
|
827
827
|
|
|
828
|
-
export declare const Upload: DefineComponent<UploadProps, {
|
|
828
|
+
export declare const Upload: DefineComponent<UploadProps, {
|
|
829
|
+
reset: () => void;
|
|
830
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
829
831
|
"update:modelValue": (value: string) => any;
|
|
830
832
|
}, string, PublicProps, Readonly<UploadProps> & Readonly<{
|
|
831
833
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
@@ -837,6 +839,11 @@ export declare interface UploadEmits {
|
|
|
837
839
|
(e: 'update:modelValue', value: string): void;
|
|
838
840
|
}
|
|
839
841
|
|
|
842
|
+
export declare interface UploadInstance {
|
|
843
|
+
/** 重置到初始状态,用于上传异常后重新选择文件 */
|
|
844
|
+
reset: () => void;
|
|
845
|
+
}
|
|
846
|
+
|
|
840
847
|
export declare interface UploadProps {
|
|
841
848
|
modelValue: string;
|
|
842
849
|
accept?: string;
|