1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
| import { getCurrentInstance } from 'vue';
|
| const AFTER_APPEAR = "after-appear";
| const AFTER_ENTER = "after-enter";
| const AFTER_LEAVE = "after-leave";
| const APPEAR = "appear";
| const APPEAR_CANCELLED = "appear-cancelled";
| const BEFORE_ENTER = "before-enter";
| const BEFORE_LEAVE = "before-leave";
| const ENTER = "enter";
| const ENTER_CANCELLED = "enter-cancelled";
| const LEAVE = "leave";
| const LEAVE_CANCELLED = "leave-cancelled";
| const useTransitionFallthroughEmits = [
| AFTER_APPEAR,
| AFTER_ENTER,
| AFTER_LEAVE,
| APPEAR,
| APPEAR_CANCELLED,
| BEFORE_ENTER,
| BEFORE_LEAVE,
| ENTER,
| ENTER_CANCELLED,
| LEAVE,
| LEAVE_CANCELLED
| ];
| const useTransitionFallthrough = () => {
| const { emit } = getCurrentInstance();
| return {
| onAfterAppear: () => {
| emit(AFTER_APPEAR);
| },
| onAfterEnter: () => {
| emit(AFTER_ENTER);
| },
| onAfterLeave: () => {
| emit(AFTER_LEAVE);
| },
| onAppearCancelled: () => {
| emit(APPEAR_CANCELLED);
| },
| onBeforeEnter: () => {
| emit(BEFORE_ENTER);
| },
| onBeforeLeave: () => {
| emit(BEFORE_LEAVE);
| },
| onEnter: () => {
| emit(ENTER);
| },
| onEnterCancelled: () => {
| emit(ENTER_CANCELLED);
| },
| onLeave: () => {
| emit(LEAVE);
| },
| onLeaveCancelled: () => {
| emit(LEAVE_CANCELLED);
| }
| };
| };
|
| export { useTransitionFallthrough, useTransitionFallthroughEmits };
| //# sourceMappingURL=index.mjs.map
|
|