fix: `imageProps` type #4583 (#4586)

close #4583
pull/4592/head
John 2021-08-28 16:39:40 +08:00 committed by GitHub
parent 2b51d30c2e
commit 1f34aed666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export const imageProps = {
PropTypes.shape({
visible: PropTypes.bool,
onVisibleChange: PropTypes.func,
getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
getContainer: PropTypes.oneOfType([PropTypes.func, PropTypes.looseBool, PropTypes.string]),
}).loose,
]).def(true),
};