62 lines
1.1 KiB
TypeScript
62 lines
1.1 KiB
TypeScript
![]() |
import { IBaseProps } from '../_base';
|
||
|
|
||
|
interface IStep {
|
||
|
/**
|
||
|
* @description 图片地址
|
||
|
*/
|
||
|
imageUrl?: string;
|
||
|
/**
|
||
|
* @description 图片模式
|
||
|
*/
|
||
|
imageMode?: string;
|
||
|
/**
|
||
|
* @description 图片内联样式
|
||
|
*/
|
||
|
imageStyle?: string;
|
||
|
/**
|
||
|
* @description 距离顶部
|
||
|
*/
|
||
|
top?: string;
|
||
|
/**
|
||
|
* @description 距离左边
|
||
|
*/
|
||
|
left?: string;
|
||
|
}
|
||
|
|
||
|
export interface IGuideTour extends IBaseProps {
|
||
|
/**
|
||
|
* @description 蒙层样式
|
||
|
*/
|
||
|
maskStyle?: string;
|
||
|
/**
|
||
|
* @description 步骤详情
|
||
|
*/
|
||
|
items: IStep[];
|
||
|
/**
|
||
|
* @description 当前步骤
|
||
|
*/
|
||
|
current?: number;
|
||
|
/**
|
||
|
* @description 初始step
|
||
|
*/
|
||
|
defaultCurrent?: number;
|
||
|
/**
|
||
|
* @description 是否开启滑动模式
|
||
|
*/
|
||
|
swiperable?: boolean;
|
||
|
/**
|
||
|
* @description 引导是否可见, 受控
|
||
|
* @default true
|
||
|
*/
|
||
|
visible?: boolean;
|
||
|
/**
|
||
|
* @description 关闭回调
|
||
|
*/
|
||
|
onCancel?: () => void;
|
||
|
/**
|
||
|
* @description 步骤改变回调
|
||
|
*/
|
||
|
onChange?: (index: number) => boolean;
|
||
|
}
|
||
|
export declare const GuideTourDefaultProps: Partial<IGuideTour>;
|