index.d.ts 995 B

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