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

View File

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