diff --git a/components/vc-image/src/Image.tsx b/components/vc-image/src/Image.tsx index dd4ce43342..4367e1315b 100644 --- a/components/vc-image/src/Image.tsx +++ b/components/vc-image/src/Image.tsx @@ -44,9 +44,14 @@ export const ImageProps = { previewPrefixCls: PropTypes.string, placeholder: PropTypes.VNodeChild, fallback: PropTypes.string, - preview: PropTypes.oneOfType([PropTypes.looseBool, PropTypes.shape({})]).def( - true, - ), + preview: PropTypes.oneOfType([ + PropTypes.looseBool, + PropTypes.shape({ + visible: PropTypes.bool, + onVisibleChange: PropTypes.func, + getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]), + }), + ]).def(true), }; type ImageStatus = 'normal' | 'error' | 'loading';