@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.
@@ -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, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"