mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
fix(Image): preview.rootClassName (#51538)
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
f6afb89f17
commit
f7609a04a7
@ -54,7 +54,7 @@ const Image: CompositionImage<ImageProps> = (props) => {
|
||||
return preview;
|
||||
}
|
||||
const _preview = typeof preview === 'object' ? preview : {};
|
||||
const { getContainer, closeIcon, ...restPreviewProps } = _preview;
|
||||
const { getContainer, closeIcon, rootClassName, ...restPreviewProps } = _preview;
|
||||
return {
|
||||
mask: (
|
||||
<div className={`${prefixCls}-mask-info`}>
|
||||
@ -64,6 +64,7 @@ const Image: CompositionImage<ImageProps> = (props) => {
|
||||
),
|
||||
icons,
|
||||
...restPreviewProps,
|
||||
rootClassName: classNames(mergedRootClassName, rootClassName),
|
||||
getContainer: getContainer ?? getContextPopupContainer,
|
||||
transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),
|
||||
maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName),
|
||||
|
Loading…
Reference in New Issue
Block a user