We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eafc6dd commit 75931a1Copy full SHA for 75931a1
components/vc-image/src/Image.tsx
@@ -44,9 +44,14 @@ export const ImageProps = {
44
previewPrefixCls: PropTypes.string,
45
placeholder: PropTypes.VNodeChild,
46
fallback: PropTypes.string,
47
- preview: PropTypes.oneOfType([PropTypes.looseBool, PropTypes.shape<ImagePreviewType>({})]).def(
48
- true,
49
- ),
+ preview: PropTypes.oneOfType([
+ PropTypes.looseBool,
+ PropTypes.shape({
50
+ visible: PropTypes.bool,
51
+ onVisibleChange: PropTypes.func,
52
+ getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
53
+ }),
54
+ ]).def(true),
55
};
56
type ImageStatus = 'normal' | 'error' | 'loading';
57
0 commit comments