index.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //#region ../../packages/hooks/use-transition-fallthrough/index.d.ts
  2. declare const useTransitionFallthroughEmits: readonly ["after-appear", "after-enter", "after-leave", "appear", "appear-cancelled", "before-enter", "before-leave", "enter", "enter-cancelled", "leave", "leave-cancelled"];
  3. /**
  4. * NOTE:
  5. * This is only a delegator for delegating transition callbacks.
  6. * Use this at your need.
  7. */
  8. /**
  9. * Simple usage
  10. *
  11. * In your setups:
  12. *
  13. * setup() {
  14. * const fallthroughMethods = useTransitionFallthrough()
  15. * return fallthrough
  16. * }
  17. *
  18. * In your template:
  19. *
  20. * <template>
  21. * <transition name="whatever" v-bind="fallthrough">
  22. * <slot />
  23. * </transition>
  24. * </template>
  25. *
  26. */
  27. declare const useTransitionFallthrough: () => {
  28. onAfterAppear: () => void;
  29. onAfterEnter: () => void;
  30. onAfterLeave: () => void;
  31. onAppearCancelled: () => void;
  32. onBeforeEnter: () => void;
  33. onBeforeLeave: () => void;
  34. onEnter: () => void;
  35. onEnterCancelled: () => void;
  36. onLeave: () => void;
  37. onLeaveCancelled: () => void;
  38. };
  39. //#endregion
  40. export { useTransitionFallthrough, useTransitionFallthroughEmits };