mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
29 lines
922 B
TypeScript
29 lines
922 B
TypeScript
|
import type { ReactNode } from 'react';
|
||
|
import type {
|
||
|
TourProps as RCTourProps,
|
||
|
TourStepProps as RCTourStepProps,
|
||
|
} from '@rc-component/tour';
|
||
|
|
||
|
export type TourProps = Omit<RCTourProps, 'renderPanel'> & {
|
||
|
steps?: TourStepProps[];
|
||
|
className?: string;
|
||
|
prefixCls?: string;
|
||
|
current?: number;
|
||
|
stepRender?: (current: number, total: number) => ReactNode;
|
||
|
type?: 'default' | 'primary'; // default 类型,影响底色与文字颜色
|
||
|
};
|
||
|
|
||
|
export interface TourStepProps extends RCTourStepProps {
|
||
|
cover?: ReactNode; // 展示的图片或者视频
|
||
|
nextButtonProps?: { children?: ReactNode; onClick?: () => void };
|
||
|
prevButtonProps?: { children?: ReactNode; onClick?: () => void };
|
||
|
stepRender?: (current: number, total: number) => ReactNode;
|
||
|
type?: 'default' | 'primary'; // default 类型,影响底色与文字颜色
|
||
|
}
|
||
|
|
||
|
export interface TourLocale {
|
||
|
Next: string;
|
||
|
Previous: string;
|
||
|
Finish: string;
|
||
|
}
|