tour.vue.d.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { TourGap, TourMask } from "./types.js";
  2. import { TourProps } from "./tour.js";
  3. import "../../../index.js";
  4. import * as vue from "vue";
  5. import * as _floating_ui_utils0 from "@floating-ui/utils";
  6. //#region ../../packages/components/tour/src/tour.vue.d.ts
  7. declare var __VLS_28: {}, __VLS_30: {
  8. current: number;
  9. total: number;
  10. };
  11. type __VLS_Slots = {} & {
  12. default?: (props: typeof __VLS_28) => any;
  13. } & {
  14. indicators?: (props: typeof __VLS_30) => any;
  15. };
  16. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TourProps>, {
  17. current: number;
  18. showArrow: boolean;
  19. showClose: boolean;
  20. placement: string;
  21. mask: boolean;
  22. gap: () => {
  23. offset: number;
  24. radius: number;
  25. };
  26. scrollIntoViewOptions: () => {
  27. block: string;
  28. };
  29. appendTo: string;
  30. closeOnPressEscape: boolean;
  31. targetAreaClickable: boolean;
  32. }>, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  33. change: (current: number) => void;
  34. close: (current: number) => void;
  35. "update:modelValue": (value: boolean) => void;
  36. finish: () => void;
  37. "update:current": (current: number) => void;
  38. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TourProps>, {
  39. current: number;
  40. showArrow: boolean;
  41. showClose: boolean;
  42. placement: string;
  43. mask: boolean;
  44. gap: () => {
  45. offset: number;
  46. radius: number;
  47. };
  48. scrollIntoViewOptions: () => {
  49. block: string;
  50. };
  51. appendTo: string;
  52. closeOnPressEscape: boolean;
  53. targetAreaClickable: boolean;
  54. }>>> & {
  55. onChange?: ((current: number) => any) | undefined;
  56. onClose?: ((current: number) => any) | undefined;
  57. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  58. onFinish?: (() => any) | undefined;
  59. "onUpdate:current"?: ((current: number) => any) | undefined;
  60. }, {
  61. appendTo: string | HTMLElement;
  62. placement: _floating_ui_utils0.Placement;
  63. showArrow: boolean;
  64. gap: TourGap;
  65. mask: TourMask;
  66. closeOnPressEscape: boolean;
  67. showClose: boolean;
  68. scrollIntoViewOptions: boolean | ScrollIntoViewOptions;
  69. current: number;
  70. targetAreaClickable: boolean;
  71. }, {}>;
  72. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  73. declare const _default: typeof __VLS_export;
  74. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  75. type: vue.PropType<Required<T>[K]>;
  76. } : {
  77. type: vue.PropType<T[K]>;
  78. required: true;
  79. } };
  80. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  81. default: D[K];
  82. }> : P[K] };
  83. type __VLS_WithSlots<T, S> = T & {
  84. new (): {
  85. $slots: S;
  86. };
  87. };
  88. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  89. //#endregion
  90. export { _default };