mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 20:38:45 +08:00
54c5721f48
* chore: bump trigger * chore: bump trigger * chore: bump trigger * chore: bump trigger * chore: fix logic * fix: context tour config * test: coverage
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import type {
|
|
TourProps as RCTourProps,
|
|
TourStepProps as RCTourStepProps,
|
|
} from '@rc-component/tour';
|
|
|
|
export interface TourProps extends Omit<RCTourProps, 'renderPanel'> {
|
|
steps?: TourStepProps[];
|
|
className?: string;
|
|
prefixCls?: string;
|
|
current?: number;
|
|
indicatorsRender?: (current: number, total: number) => ReactNode;
|
|
type?: 'default' | 'primary'; // default type, affects the background color and text color
|
|
}
|
|
|
|
export interface TourStepProps extends RCTourStepProps {
|
|
cover?: ReactNode; // Display pictures or videos
|
|
nextButtonProps?: {
|
|
children?: ReactNode;
|
|
onClick?: () => void;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
prevButtonProps?: {
|
|
children?: ReactNode;
|
|
onClick?: () => void;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
indicatorsRender?: (current: number, total: number) => ReactNode;
|
|
type?: 'default' | 'primary'; // default type, affects the background color and text color
|
|
}
|
|
|
|
export interface TourLocale {
|
|
Next: string;
|
|
Previous: string;
|
|
Finish: string;
|
|
}
|