@steedos-widgets/amis-object 6.10.52-beta.25 → 6.10.52-beta.27

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/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/amis-object",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.25/dist/amis-object.umd.js",
7
- "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.25/dist/amis-object.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.27/dist/amis-object.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.27/dist/amis-object.umd.css"
8
8
  ],
9
9
  "library": "BuilderAmisObject"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/amis-object"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.25/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.27/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.25/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.25/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.27/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@6.10.52-beta.27/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import type { UploadFile } from 'antd/es/upload/interface';
3
+ interface SteedosFileUploadProps {
4
+ /** 上传接口 URL */
5
+ action?: string;
6
+ /** 额外的请求头 */
7
+ headers?: Record<string, string>;
8
+ /** 上传时附带的额外 formData 参数 */
9
+ extraData?: Record<string, string>;
10
+ /** 是否支持多文件 */
11
+ multiple?: boolean;
12
+ /** 最大文件数量 */
13
+ maxCount?: number;
14
+ /** 按钮文字 */
15
+ btnLabel?: string;
16
+ /** 标签 */
17
+ label?: string;
18
+ /** 上传成功回调 */
19
+ onUploadSuccess?: (file: UploadFile, response: any) => void;
20
+ /** 上传失败回调 */
21
+ onUploadError?: (file: UploadFile, error: any) => void;
22
+ /** amis 相关 props */
23
+ dispatchEvent?: (eventName: string, data: any, ref: any) => Promise<any>;
24
+ data?: any;
25
+ name?: string;
26
+ style?: React.CSSProperties;
27
+ className?: string;
28
+ disabled?: boolean;
29
+ [key: string]: any;
30
+ }
31
+ export declare const SteedosFileUpload: React.FC<SteedosFileUploadProps>;
32
+ export {};
@@ -13,3 +13,4 @@ export * from './SteedosObject';
13
13
  export * from './SteedosOrgSelector';
14
14
  export * from './SteedosUserSelector';
15
15
  export * from './ApprovalTreeMenu';
16
+ export * from './SteedosFileUpload';