fix(ImageGroup):fix open imagegroup without animation (#6898)
							parent
							
								
									1254677805
								
							
						
					
					
						commit
						3c05b7704b
					
				|  | @ -12,6 +12,7 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined'; | |||
| import LeftOutlined from '@ant-design/icons-vue/LeftOutlined'; | ||||
| import RightOutlined from '@ant-design/icons-vue/RightOutlined'; | ||||
| import SwapOutlined from '@ant-design/icons-vue/SwapOutlined'; | ||||
| import { getTransitionName } from '../_util/transition'; | ||||
| import useStyle from './style'; | ||||
| import { anyType } from '../_util/type'; | ||||
| 
 | ||||
|  | @ -38,7 +39,7 @@ const InternalPreviewGroup = defineComponent({ | |||
|   inheritAttrs: false, | ||||
|   props: previewGroupProps(), | ||||
|   setup(props, { attrs, slots }) { | ||||
|     const { prefixCls } = useConfigInject('image', props); | ||||
|     const { prefixCls, rootPrefixCls } = useConfigInject('image', props); | ||||
|     const previewPrefixCls = computed(() => `${prefixCls.value}-preview`); | ||||
|     const [wrapSSR, hashId] = useStyle(prefixCls); | ||||
|     const mergedPreview = computed(() => { | ||||
|  | @ -51,6 +52,12 @@ const InternalPreviewGroup = defineComponent({ | |||
|       return { | ||||
|         ..._preview, | ||||
|         rootClassName: hashId.value, | ||||
|         transitionName: getTransitionName(rootPrefixCls.value, 'zoom', _preview.transitionName), | ||||
|         maskTransitionName: getTransitionName( | ||||
|           rootPrefixCls.value, | ||||
|           'fade', | ||||
|           _preview.maskTransitionName, | ||||
|         ), | ||||
|       }; | ||||
|     }); | ||||
|     return () => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 24min
						24min