parent
eafc6dd0ba
commit
75931a1b39
|
@ -44,9 +44,14 @@ export const ImageProps = {
|
||||||
previewPrefixCls: PropTypes.string,
|
previewPrefixCls: PropTypes.string,
|
||||||
placeholder: PropTypes.VNodeChild,
|
placeholder: PropTypes.VNodeChild,
|
||||||
fallback: PropTypes.string,
|
fallback: PropTypes.string,
|
||||||
preview: PropTypes.oneOfType([PropTypes.looseBool, PropTypes.shape<ImagePreviewType>({})]).def(
|
preview: PropTypes.oneOfType([
|
||||||
true,
|
PropTypes.looseBool,
|
||||||
),
|
PropTypes.shape({
|
||||||
|
visible: PropTypes.bool,
|
||||||
|
onVisibleChange: PropTypes.func,
|
||||||
|
getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
|
||||||
|
}),
|
||||||
|
]).def(true),
|
||||||
};
|
};
|
||||||
type ImageStatus = 'normal' | 'error' | 'loading';
|
type ImageStatus = 'normal' | 'error' | 'loading';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue