41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import type { ModalProps, DescriptionsProps, TabsProps, VideoViewRef, ImgViewRef } from '@zhst/meta';
|
|
import './index.less';
|
|
export declare const componentPrefix = "zhst-image";
|
|
export type TAB_TYPE = 'COMPATER' | 'NORMAL' | 'VIDEO';
|
|
export type MODEL_TYPE = 'VIDEO' | 'IMAGE';
|
|
export interface BigImageModalProps extends ModalProps {
|
|
visible: boolean;
|
|
activeTab?: TAB_TYPE;
|
|
attributeList: {
|
|
title: string;
|
|
children: Pick<DescriptionsProps, 'items'>;
|
|
};
|
|
tabs: {
|
|
data: Pick<TabsProps, 'items'> & {
|
|
key: TAB_TYPE;
|
|
};
|
|
};
|
|
dataSource: any;
|
|
imageData: any;
|
|
relatedData: any;
|
|
isRelated?: boolean;
|
|
footer?: React.ReactNode;
|
|
showCarousel?: boolean;
|
|
onTabChange?: (newVal?: TAB_TYPE, oldVal?: TAB_TYPE) => void;
|
|
onIndexChange?: (newVal?: number, oldVal?: number) => void;
|
|
transformPropFunc: (data: any) => void;
|
|
}
|
|
interface BigModalRef {
|
|
tab: TAB_TYPE;
|
|
setTab: (tab: TAB_TYPE) => void;
|
|
modalRef: ModalProps;
|
|
activeKey: string;
|
|
setActiveKey: (val: string) => void;
|
|
videoPlayerRef: VideoViewRef;
|
|
combineImageRef: any;
|
|
bigImagePreviewRef: ImgViewRef;
|
|
}
|
|
declare const BigImageModal: React.FC<BigImageModalProps, BigModalRef>;
|
|
export default BigImageModal;
|