props.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { IBaseProps } from '../_util/base';
  2. interface IStep {
  3. /**
  4. * @description 图片地址
  5. */
  6. imageUrl: string;
  7. /**
  8. * @description 图片模式
  9. */
  10. imageMode: string;
  11. /**
  12. * @description 图片内联样式
  13. */
  14. imageStyle: string;
  15. /**
  16. * @description 距离顶部
  17. */
  18. top: string;
  19. /**
  20. * @description 距离左边
  21. */
  22. left: string;
  23. }
  24. export interface IGuideTour extends IBaseProps {
  25. /**
  26. * @description 蒙层样式
  27. */
  28. maskStyle: string;
  29. /**
  30. * @description 步骤详情
  31. */
  32. items: IStep[];
  33. /**
  34. * @description 当前步骤
  35. */
  36. current: number;
  37. /**
  38. * @description 初始step
  39. */
  40. defaultCurrent: number;
  41. /**
  42. * @description 是否开启滑动模式
  43. */
  44. swiperable: boolean;
  45. /**
  46. * @description 引导是否可见, 受控
  47. * @default true
  48. */
  49. visible: boolean;
  50. /**
  51. * @description 关闭回调
  52. */
  53. onCancel: () => void;
  54. /**
  55. * @description 步骤改变回调
  56. */
  57. onChange: (index: number) => boolean;
  58. }
  59. export declare const GuideTourDefaultProps: Partial<IGuideTour>;
  60. export {};