types(Uploader): preview-options images should be optional (#10698)

This commit is contained in:
neverland 2022-06-11 14:51:07 +08:00 committed by GitHub
parent 2765ff5555
commit bab0636014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ const uploaderProps = {
Numeric | [Numeric, Numeric]
>,
previewImage: truthProp,
previewOptions: Object as PropType<ImagePreviewOptions>,
previewOptions: Object as PropType<Partial<ImagePreviewOptions>>,
previewFullImage: truthProp,
maxSize: {
type: [Number, String, Function] as PropType<UploaderMaxSize>,