Skip to content
On this page

Interface: NUploadLimit

上传文件限制.

Properties

height

Optional height: number

当上传的文件类型是图片时, 限制图片的高度.

Defined in

dist/src/components/n-upload/upload-types.d.ts:31


size

Optional size: number

限制上传文件的大小. 单位: 字节.

Example

ts
1024 * 1024 * 10 表示 10MB.

Defined in

dist/src/components/n-upload/upload-types.d.ts:37


width

Optional width: number

当上传的文件类型是图片时, 限制图片的宽度.

Defined in

dist/src/components/n-upload/upload-types.d.ts:27