import type { ComputedRef, ImgHTMLAttributes, Ref } from 'vue';
import type { IDialogChildProps } from '../../vc-dialog/src/IDialogPropTypes';
import type { PreviewProps } from './Preview';
export interface PreviewGroupPreview extends Omit {
/**
* If Preview the show img index
* @default 0
*/
current?: number;
}
export interface GroupConsumerProps {
previewPrefixCls?: string;
icons?: PreviewProps['icons'];
preview?: boolean | PreviewGroupPreview;
}
export interface PreviewUrl {
url: string;
canPreview: boolean;
imgCommonProps: ImgHTMLAttributes;
}
export interface GroupConsumerValue extends GroupConsumerProps {
isPreviewGroup?: Ref;
previewUrls: ComputedRef