interface.d.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import type { ExtractPropTypes, CSSProperties } from 'vue';
  2. import type { PlacementType } from './placements';
  3. import type { VueNode } from '../_util/type';
  4. export declare const tourStepInfo: () => {
  5. arrow: {
  6. type: import("vue").PropType<boolean | {
  7. pointAtCenter: boolean;
  8. }>;
  9. default: boolean | {
  10. pointAtCenter: boolean;
  11. };
  12. };
  13. target: {
  14. type: import("vue").PropType<HTMLElement | (() => HTMLElement) | (() => null)>;
  15. default: HTMLElement | (() => HTMLElement) | (() => null);
  16. };
  17. title: {
  18. type: import("vue").PropType<VueNode>;
  19. default: VueNode;
  20. };
  21. description: {
  22. type: import("vue").PropType<VueNode>;
  23. default: VueNode;
  24. };
  25. placement: {
  26. type: import("vue").PropType<PlacementType>;
  27. default: PlacementType;
  28. };
  29. mask: {
  30. type: import("vue").PropType<boolean | {
  31. style?: CSSProperties;
  32. color?: string;
  33. }>;
  34. default: boolean | {
  35. style?: CSSProperties;
  36. color?: string;
  37. };
  38. };
  39. className: {
  40. type: StringConstructor;
  41. };
  42. style: {
  43. type: import("vue").PropType<CSSProperties>;
  44. default: CSSProperties;
  45. };
  46. scrollIntoViewOptions: {
  47. type: import("vue").PropType<boolean | ScrollIntoViewOptions>;
  48. default: boolean | ScrollIntoViewOptions;
  49. };
  50. };
  51. export type TourStepInfo = Partial<ExtractPropTypes<ReturnType<typeof tourStepInfo>>>;
  52. export declare const tourStepProps: () => {
  53. prefixCls: {
  54. type: StringConstructor;
  55. };
  56. total: {
  57. type: NumberConstructor;
  58. };
  59. current: {
  60. type: NumberConstructor;
  61. };
  62. onClose: {
  63. type: import("vue").PropType<(e: MouseEvent) => void>;
  64. default: (e: MouseEvent) => void;
  65. };
  66. onFinish: {
  67. type: import("vue").PropType<(e: MouseEvent) => void>;
  68. default: (e: MouseEvent) => void;
  69. };
  70. renderPanel: {
  71. type: import("vue").PropType<(step: any, current: number) => VueNode>;
  72. default: (step: any, current: number) => VueNode;
  73. };
  74. onPrev: {
  75. type: import("vue").PropType<(e: MouseEvent) => void>;
  76. default: (e: MouseEvent) => void;
  77. };
  78. onNext: {
  79. type: import("vue").PropType<(e: MouseEvent) => void>;
  80. default: (e: MouseEvent) => void;
  81. };
  82. arrow: {
  83. type: import("vue").PropType<boolean | {
  84. pointAtCenter: boolean;
  85. }>;
  86. default: boolean | {
  87. pointAtCenter: boolean;
  88. };
  89. };
  90. target: {
  91. type: import("vue").PropType<HTMLElement | (() => HTMLElement) | (() => null)>;
  92. default: HTMLElement | (() => HTMLElement) | (() => null);
  93. };
  94. title: {
  95. type: import("vue").PropType<VueNode>;
  96. default: VueNode;
  97. };
  98. description: {
  99. type: import("vue").PropType<VueNode>;
  100. default: VueNode;
  101. };
  102. placement: {
  103. type: import("vue").PropType<PlacementType>;
  104. default: PlacementType;
  105. };
  106. mask: {
  107. type: import("vue").PropType<boolean | {
  108. style?: CSSProperties;
  109. color?: string;
  110. }>;
  111. default: boolean | {
  112. style?: CSSProperties;
  113. color?: string;
  114. };
  115. };
  116. className: {
  117. type: StringConstructor;
  118. };
  119. style: {
  120. type: import("vue").PropType<CSSProperties>;
  121. default: CSSProperties;
  122. };
  123. scrollIntoViewOptions: {
  124. type: import("vue").PropType<boolean | ScrollIntoViewOptions>;
  125. default: boolean | ScrollIntoViewOptions;
  126. };
  127. };
  128. export type TourStepProps = Partial<ExtractPropTypes<ReturnType<typeof tourStepProps>>>;