focus-pro
Version:
focus-pro 中台前端组件库
21 lines (20 loc) • 672 B
TypeScript
import { TooltipPlacement } from 'antd/es/tooltip';
import React, { FC } from 'react';
import './index.module.less';
export interface OnBoardingStepConfig {
selector: () => HTMLElement | null;
placement?: TooltipPlacement;
renderContent?: (currentStep: number) => React.ReactNode;
beforeForward?: (currentStep: number) => void;
beforeBack?: (currentStep: number) => void;
}
export interface OnBoardingProps {
step?: number;
steps: OnBoardingStepConfig[];
getContainer?: () => HTMLElement;
onStepsEnd?: () => void;
open?: boolean;
onClose?: () => void;
}
declare const OnBoarding: FC<OnBoardingProps>;
export default OnBoarding;