Skip to content

Commit 1f34aed

Browse files
authored
fix: imageProps type #4583 (#4586)
close #4583
1 parent 2b51d30 commit 1f34aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-image/src/Image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const imageProps = {
4343
PropTypes.shape({
4444
visible: PropTypes.bool,
4545
onVisibleChange: PropTypes.func,
46-
getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
46+
getContainer: PropTypes.oneOfType([PropTypes.func, PropTypes.looseBool, PropTypes.string]),
4747
}).loose,
4848
]).def(true),
4949
};

0 commit comments

Comments
 (0)