|
|
@ -12,6 +12,7 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
|
|
|
|
import LeftOutlined from '@ant-design/icons-vue/LeftOutlined';
|
|
|
|
import LeftOutlined from '@ant-design/icons-vue/LeftOutlined';
|
|
|
|
import RightOutlined from '@ant-design/icons-vue/RightOutlined';
|
|
|
|
import RightOutlined from '@ant-design/icons-vue/RightOutlined';
|
|
|
|
import SwapOutlined from '@ant-design/icons-vue/SwapOutlined';
|
|
|
|
import SwapOutlined from '@ant-design/icons-vue/SwapOutlined';
|
|
|
|
|
|
|
|
import { getTransitionName } from '../_util/transition';
|
|
|
|
import useStyle from './style';
|
|
|
|
import useStyle from './style';
|
|
|
|
import { anyType } from '../_util/type';
|
|
|
|
import { anyType } from '../_util/type';
|
|
|
|
|
|
|
|
|
|
|
@ -38,7 +39,7 @@ const InternalPreviewGroup = defineComponent({
|
|
|
|
inheritAttrs: false,
|
|
|
|
inheritAttrs: false,
|
|
|
|
props: previewGroupProps(),
|
|
|
|
props: previewGroupProps(),
|
|
|
|
setup(props, { attrs, slots }) {
|
|
|
|
setup(props, { attrs, slots }) {
|
|
|
|
const { prefixCls } = useConfigInject('image', props);
|
|
|
|
const { prefixCls, rootPrefixCls } = useConfigInject('image', props);
|
|
|
|
const previewPrefixCls = computed(() => `${prefixCls.value}-preview`);
|
|
|
|
const previewPrefixCls = computed(() => `${prefixCls.value}-preview`);
|
|
|
|
const [wrapSSR, hashId] = useStyle(prefixCls);
|
|
|
|
const [wrapSSR, hashId] = useStyle(prefixCls);
|
|
|
|
const mergedPreview = computed(() => {
|
|
|
|
const mergedPreview = computed(() => {
|
|
|
@ -51,6 +52,12 @@ const InternalPreviewGroup = defineComponent({
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
..._preview,
|
|
|
|
..._preview,
|
|
|
|
rootClassName: hashId.value,
|
|
|
|
rootClassName: hashId.value,
|
|
|
|
|
|
|
|
transitionName: getTransitionName(rootPrefixCls.value, 'zoom', _preview.transitionName),
|
|
|
|
|
|
|
|
maskTransitionName: getTransitionName(
|
|
|
|
|
|
|
|
rootPrefixCls.value,
|
|
|
|
|
|
|
|
'fade',
|
|
|
|
|
|
|
|
_preview.maskTransitionName,
|
|
|
|
|
|
|
|
),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return () => {
|
|
|
|
return () => {
|
|
|
|