@@ -12,6 +12,7 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
12
12
import LeftOutlined from '@ant-design/icons-vue/LeftOutlined' ;
13
13
import RightOutlined from '@ant-design/icons-vue/RightOutlined' ;
14
14
import SwapOutlined from '@ant-design/icons-vue/SwapOutlined' ;
15
+ import { getTransitionName } from '../_util/transition' ;
15
16
import useStyle from './style' ;
16
17
import { anyType } from '../_util/type' ;
17
18
@@ -38,7 +39,7 @@ const InternalPreviewGroup = defineComponent({
38
39
inheritAttrs : false ,
39
40
props : previewGroupProps ( ) ,
40
41
setup ( props , { attrs, slots } ) {
41
- const { prefixCls } = useConfigInject ( 'image' , props ) ;
42
+ const { prefixCls, rootPrefixCls } = useConfigInject ( 'image' , props ) ;
42
43
const previewPrefixCls = computed ( ( ) => `${ prefixCls . value } -preview` ) ;
43
44
const [ wrapSSR , hashId ] = useStyle ( prefixCls ) ;
44
45
const mergedPreview = computed ( ( ) => {
@@ -51,6 +52,12 @@ const InternalPreviewGroup = defineComponent({
51
52
return {
52
53
..._preview ,
53
54
rootClassName : hashId . value ,
55
+ transitionName : getTransitionName ( rootPrefixCls . value , 'zoom' , _preview . transitionName ) ,
56
+ maskTransitionName : getTransitionName (
57
+ rootPrefixCls . value ,
58
+ 'fade' ,
59
+ _preview . maskTransitionName ,
60
+ ) ,
54
61
} ;
55
62
} ) ;
56
63
return ( ) => {
0 commit comments