@noction/vue-bezier 1.0.9 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/Collapse/CollapseTransition.vue.d.ts +66 -0
- package/dist/types/components/Fade/FadeTransition.vue.d.ts +66 -0
- package/dist/types/components/Scale/ScaleTransition.vue.d.ts +66 -0
- package/dist/types/components/Slide/SlideXLeftTransition.vue.d.ts +66 -0
- package/dist/types/components/Slide/SlideXRightTransition.vue.d.ts +66 -0
- package/dist/types/components/Slide/SlideYDownTransition.vue.d.ts +66 -0
- package/dist/types/components/Slide/SlideYUpTransition.vue.d.ts +66 -0
- package/dist/types/components/Zoom/ZoomCenterTransition.vue.d.ts +66 -0
- package/dist/types/components/Zoom/ZoomUpTransition.vue.d.ts +66 -0
- package/dist/types/components/Zoom/ZoomXTransition.vue.d.ts +66 -0
- package/dist/types/components/Zoom/ZoomYTransition.vue.d.ts +66 -0
- package/{src/components/index.ts → dist/types/components/index.d.ts} +0 -9
- package/dist/types/composables/buildComponentType.d.ts +4 -0
- package/dist/types/composables/index.d.ts +3 -0
- package/dist/types/composables/useHooks.d.ts +15 -0
- package/dist/types/main.d.ts +7 -0
- package/{src/types/index.ts → dist/types/types/index.d.ts} +10 -19
- package/dist/web-types.json +1 -1
- package/package.json +17 -17
- package/LICENSE +0 -21
- package/src/components/Collapse/CollapseTransition.vue +0 -127
- package/src/components/Fade/FadeTransition.vue +0 -52
- package/src/components/Scale/ScaleTransition.vue +0 -61
- package/src/components/Slide/SlideXLeftTransition.vue +0 -62
- package/src/components/Slide/SlideXRightTransition.vue +0 -60
- package/src/components/Slide/SlideYDownTransition.vue +0 -59
- package/src/components/Slide/SlideYUpTransition.vue +0 -61
- package/src/components/Slide/move.scss +0 -1
- package/src/components/Zoom/ZoomCenterTransition.vue +0 -62
- package/src/components/Zoom/ZoomUpTransition.vue +0 -63
- package/src/components/Zoom/ZoomXTransition.vue +0 -64
- package/src/components/Zoom/ZoomYTransition.vue +0 -65
- package/src/components/Zoom/move.scss +0 -1
- package/src/composables/buildComponentType.ts +0 -5
- package/src/composables/index.ts +0 -4
- package/src/composables/useHooks.ts +0 -110
- package/src/main.ts +0 -20
- package/src/vue-shim.d.ts +0 -5
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
6
|
-
enter-active-class="slide-y-down-in"
|
|
7
|
-
leave-active-class="slide-y-down-out"
|
|
8
|
-
>
|
|
9
|
-
<slot />
|
|
10
|
-
</component>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
15
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
16
|
-
|
|
17
|
-
defineOptions({ inheritAttrs: false })
|
|
18
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
19
|
-
delay: 0,
|
|
20
|
-
duration: 300,
|
|
21
|
-
group: false,
|
|
22
|
-
origin: '',
|
|
23
|
-
styles: () => ({
|
|
24
|
-
animationFillMode: 'both',
|
|
25
|
-
animationTimingFunction: 'cubic-bezier(.25,.8,.50,1)'
|
|
26
|
-
}),
|
|
27
|
-
tag: 'span'
|
|
28
|
-
})
|
|
29
|
-
const emit = defineEmits<ComponentEvents>()
|
|
30
|
-
|
|
31
|
-
const componentType = buildComponentType(props)
|
|
32
|
-
const hooks = useHooks(props, emit)
|
|
33
|
-
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style lang="scss">
|
|
37
|
-
@import 'move';
|
|
38
|
-
|
|
39
|
-
@keyframes slide-y-down-in {
|
|
40
|
-
from {
|
|
41
|
-
opacity: 0;
|
|
42
|
-
transform: translateY(15px);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
to { opacity: 1; }
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@keyframes slide-y-down-out {
|
|
49
|
-
from { opacity: 1; }
|
|
50
|
-
|
|
51
|
-
to {
|
|
52
|
-
opacity: 0;
|
|
53
|
-
transform: translateY(15px);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.slide-y-down-in { animation-name: slide-y-down-in; }
|
|
58
|
-
.slide-y-down-out { animation-name: slide-y-down-out; }
|
|
59
|
-
</style>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
type="animation"
|
|
6
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
7
|
-
enter-active-class="slide-y-in"
|
|
8
|
-
move-class="slide-move"
|
|
9
|
-
leave-active-class="slide-y-out"
|
|
10
|
-
>
|
|
11
|
-
<slot />
|
|
12
|
-
</component>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="ts">
|
|
16
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
17
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
18
|
-
|
|
19
|
-
defineOptions({ inheritAttrs: false })
|
|
20
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
21
|
-
delay: 0,
|
|
22
|
-
duration: 300,
|
|
23
|
-
group: false,
|
|
24
|
-
origin: '',
|
|
25
|
-
styles: () => ({
|
|
26
|
-
animationFillMode: 'both',
|
|
27
|
-
animationTimingFunction: 'cubic-bezier(.25,.8,.50,1)'
|
|
28
|
-
}),
|
|
29
|
-
tag: 'span'
|
|
30
|
-
})
|
|
31
|
-
const emit = defineEmits<ComponentEvents>()
|
|
32
|
-
|
|
33
|
-
const componentType = buildComponentType(props)
|
|
34
|
-
const hooks = useHooks(props, emit)
|
|
35
|
-
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style lang="scss">
|
|
39
|
-
@import 'move';
|
|
40
|
-
|
|
41
|
-
@keyframes slide-y-in {
|
|
42
|
-
from {
|
|
43
|
-
opacity: 0;
|
|
44
|
-
transform: translateY(-15px);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
to { opacity: 1; }
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@keyframes slide-y-out {
|
|
51
|
-
from { opacity: 1; }
|
|
52
|
-
|
|
53
|
-
to {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
transform: translateY(-15px);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.slide-y-in { animation-name: slide-y-in; }
|
|
60
|
-
.slide-y-out { animation-name: slide-y-out; }
|
|
61
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.slide-move { transition: transform .3s; }
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
6
|
-
enter-active-class="zoom-in"
|
|
7
|
-
move-class="zoom-move"
|
|
8
|
-
leave-active-class="zoom-out"
|
|
9
|
-
>
|
|
10
|
-
<slot />
|
|
11
|
-
</component>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
16
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
17
|
-
|
|
18
|
-
defineOptions({ inheritAttrs: false })
|
|
19
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
20
|
-
delay: 0,
|
|
21
|
-
duration: 300,
|
|
22
|
-
group: false,
|
|
23
|
-
origin: '',
|
|
24
|
-
styles: () => ({
|
|
25
|
-
animationFillMode: 'both',
|
|
26
|
-
animationTimingFunction: 'ease-out'
|
|
27
|
-
}),
|
|
28
|
-
tag: 'span'
|
|
29
|
-
})
|
|
30
|
-
const emit = defineEmits<ComponentEvents>()
|
|
31
|
-
|
|
32
|
-
const componentType = buildComponentType(props)
|
|
33
|
-
const hooks = useHooks(props, emit)
|
|
34
|
-
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style lang="scss">
|
|
38
|
-
@import 'move';
|
|
39
|
-
|
|
40
|
-
@keyframes zoom-in {
|
|
41
|
-
0% {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transform: scale3d(.3, .3, .3);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
50% { opacity: 1; }
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes zoom-out {
|
|
50
|
-
0% { opacity: 1; }
|
|
51
|
-
|
|
52
|
-
50% {
|
|
53
|
-
opacity: 0;
|
|
54
|
-
transform: scale3d(.3, .3, .3);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
100% { opacity: 0; }
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.zoom-in { animation-name: zoom-in; }
|
|
61
|
-
.zoom-out { animation-name: zoom-out; }
|
|
62
|
-
</style>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
6
|
-
enter-active-class="zoom-in-up"
|
|
7
|
-
move-class="zoom-move"
|
|
8
|
-
leave-active-class="zoom-out-up"
|
|
9
|
-
>
|
|
10
|
-
<slot />
|
|
11
|
-
</component>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
16
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
17
|
-
|
|
18
|
-
defineOptions({ inheritAttrs: false })
|
|
19
|
-
|
|
20
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
21
|
-
delay: 0,
|
|
22
|
-
duration: 300,
|
|
23
|
-
group: false,
|
|
24
|
-
origin: '',
|
|
25
|
-
styles: () => ({
|
|
26
|
-
animationFillMode: 'both',
|
|
27
|
-
animationTimingFunction: 'ease-out'
|
|
28
|
-
}),
|
|
29
|
-
tag: 'span'
|
|
30
|
-
})
|
|
31
|
-
const emit = defineEmits<ComponentEvents>()
|
|
32
|
-
|
|
33
|
-
const componentType = buildComponentType(props)
|
|
34
|
-
const hooks = useHooks(props, emit)
|
|
35
|
-
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style lang="scss">
|
|
39
|
-
@import 'move';
|
|
40
|
-
|
|
41
|
-
@keyframes zoom-in-up {
|
|
42
|
-
0% {
|
|
43
|
-
opacity: 0;
|
|
44
|
-
transform: scaleY(0);
|
|
45
|
-
transform-origin: top center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
50% { opacity: 1; }
|
|
49
|
-
|
|
50
|
-
100% { transform: scaleY(1); }
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@keyframes zoom-out-up {
|
|
54
|
-
0% { opacity: 1; }
|
|
55
|
-
|
|
56
|
-
50% { transform: scaleY(0); }
|
|
57
|
-
|
|
58
|
-
100% { opacity: 0; }
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.zoom-in-up { animation-name: zoom-in-up; }
|
|
62
|
-
.zoom-out-up { animation-name: zoom-out-up; }
|
|
63
|
-
</style>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
enter-active-class="zoom-in-x"
|
|
6
|
-
move-class="zoom-move"
|
|
7
|
-
leave-active-class="zoom-out-x"
|
|
8
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
9
|
-
>
|
|
10
|
-
<slot />
|
|
11
|
-
</component>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
16
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
17
|
-
|
|
18
|
-
defineOptions({ inheritAttrs: false })
|
|
19
|
-
|
|
20
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
21
|
-
delay: 0,
|
|
22
|
-
duration: 300,
|
|
23
|
-
group: false,
|
|
24
|
-
origin: '',
|
|
25
|
-
styles: () => ({
|
|
26
|
-
animationFillMode: 'both',
|
|
27
|
-
animationTimingFunction: 'cubic-bezier(.55,0,.1,1)'
|
|
28
|
-
}),
|
|
29
|
-
tag: 'span'
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const emit = defineEmits<ComponentEvents>()
|
|
33
|
-
|
|
34
|
-
const componentType = buildComponentType(props)
|
|
35
|
-
const hooks = useHooks(props, emit)
|
|
36
|
-
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<style lang="scss">
|
|
40
|
-
@import 'move';
|
|
41
|
-
|
|
42
|
-
@keyframes zoom-in-x {
|
|
43
|
-
0% {
|
|
44
|
-
opacity: 0;
|
|
45
|
-
transform: scaleX(0);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
50% { opacity: 1; }
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@keyframes zoom-out-x {
|
|
52
|
-
0% { opacity: 1; }
|
|
53
|
-
|
|
54
|
-
50% {
|
|
55
|
-
opacity: 0;
|
|
56
|
-
transform: scaleX(0);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
100% { opacity: 0; }
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.zoom-in-x { animation-name: zoom-in-x; }
|
|
63
|
-
.zoom-out-x { animation-name: zoom-out-x; }
|
|
64
|
-
</style>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="componentType"
|
|
4
|
-
:tag="props.tag"
|
|
5
|
-
enter-active-class="zoom-in-y"
|
|
6
|
-
move-class="zoom-move"
|
|
7
|
-
leave-active-class="zoom-out-y"
|
|
8
|
-
v-bind="{ ...$attrs, ...hooks }"
|
|
9
|
-
>
|
|
10
|
-
<slot />
|
|
11
|
-
</component>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { ComponentEvents, ComponentProps } from '@/types'
|
|
16
|
-
import { buildComponentType, useHooks } from '@/composables'
|
|
17
|
-
|
|
18
|
-
defineOptions({ inheritAttrs: false })
|
|
19
|
-
const props = withDefaults(defineProps<ComponentProps>(), {
|
|
20
|
-
delay: 0,
|
|
21
|
-
duration: 300,
|
|
22
|
-
group: false,
|
|
23
|
-
origin: '',
|
|
24
|
-
styles: () => ({
|
|
25
|
-
animationFillMode: 'both',
|
|
26
|
-
animationTimingFunction: 'cubic-bezier(.55,0,.1,1)'
|
|
27
|
-
}),
|
|
28
|
-
tag: 'span'
|
|
29
|
-
})
|
|
30
|
-
const emit = defineEmits<ComponentEvents>()
|
|
31
|
-
|
|
32
|
-
const componentType = buildComponentType(props)
|
|
33
|
-
const hooks = useHooks(props, emit)
|
|
34
|
-
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style lang="scss">
|
|
38
|
-
@import 'move';
|
|
39
|
-
|
|
40
|
-
@keyframes zoom-in-y {
|
|
41
|
-
0% {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transform: scaleY(0);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
50% {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
transform: scaleY(1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes zoom-out-y {
|
|
53
|
-
0% { opacity: 1; }
|
|
54
|
-
|
|
55
|
-
50% {
|
|
56
|
-
opacity: 0;
|
|
57
|
-
transform: scaleY(0);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
100% { opacity: 0; }
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.zoom-in-y { animation-name: zoom-in-y; }
|
|
64
|
-
.zoom-out-y { animation-name: zoom-out-y; }
|
|
65
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.zoom-move { transition: transform .3s ease-out; }
|
package/src/composables/index.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import type { BaseTransitionProps, RendererElement } from 'vue'
|
|
2
|
-
import type { ComponentProps, NumberOrTimings } from '@/types'
|
|
3
|
-
|
|
4
|
-
function getTimingValue (timing: NumberOrTimings | undefined, key: 'enter' | 'leave'): number {
|
|
5
|
-
if (typeof timing === 'number') {
|
|
6
|
-
return timing
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
if (typeof timing === 'object' && timing !== null) {
|
|
10
|
-
return timing[key] ?? 0
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return 0
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function beforeEnter (props: ComponentProps, el: RendererElement) {
|
|
17
|
-
const enterDuration = getTimingValue(props.duration, 'enter')
|
|
18
|
-
const enterDelay = getTimingValue(props.delay, 'enter')
|
|
19
|
-
|
|
20
|
-
el.style.animationDuration = `${enterDuration}ms`
|
|
21
|
-
el.style.animationDelay = `${enterDelay}ms`
|
|
22
|
-
|
|
23
|
-
setStyles(props, el)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function beforeLeave (props: ComponentProps, el: RendererElement) {
|
|
27
|
-
const leaveDuration = getTimingValue(props.duration, 'leave')
|
|
28
|
-
const leaveDelay = getTimingValue(props.delay, 'leave')
|
|
29
|
-
|
|
30
|
-
el.style.animationDuration = `${leaveDuration}ms`
|
|
31
|
-
el.style.animationDelay = `${leaveDelay}ms`
|
|
32
|
-
|
|
33
|
-
setStyles(props, el)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function leave (props: ComponentProps, el: RendererElement, done: () => void) {
|
|
37
|
-
setAbsolutePosition(props, el)
|
|
38
|
-
|
|
39
|
-
const leaveDuration = getTimingValue(props.duration, 'leave')
|
|
40
|
-
const leaveDelay = getTimingValue(props.delay, 'leave')
|
|
41
|
-
|
|
42
|
-
setTimeout(done, leaveDuration + leaveDelay)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function cleanUpStyles (props: ComponentProps, el: RendererElement) {
|
|
46
|
-
if (props.styles) {
|
|
47
|
-
Object
|
|
48
|
-
.entries(props.styles)
|
|
49
|
-
.forEach(([key]) => {
|
|
50
|
-
if (key in el.style) {
|
|
51
|
-
el.style[key] = ''
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
el.style.animationDuration = ''
|
|
57
|
-
el.style.animationDelay = ''
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function setStyles (props: ComponentProps, el: RendererElement) {
|
|
61
|
-
setTransformOrigin(props, el)
|
|
62
|
-
|
|
63
|
-
if (props.styles) {
|
|
64
|
-
Object
|
|
65
|
-
.entries(props.styles)
|
|
66
|
-
.forEach(([key, value]) => {
|
|
67
|
-
if (key in el.style) {
|
|
68
|
-
el.style[key] = value
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function setAbsolutePosition (props: ComponentProps, el: RendererElement) {
|
|
75
|
-
if (props.group) el.style.position = 'absolute'
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function setTransformOrigin (props: ComponentProps, el: RendererElement) {
|
|
79
|
-
if (props.origin) el.style.transformOrigin = props.origin
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export default (props: ComponentProps, emit: any) => ({
|
|
83
|
-
onAfterEnter: (el: RendererElement) => {
|
|
84
|
-
cleanUpStyles(props, el)
|
|
85
|
-
emit('after-enter', el)
|
|
86
|
-
},
|
|
87
|
-
onAfterLeave: (el: RendererElement) => {
|
|
88
|
-
cleanUpStyles(props, el)
|
|
89
|
-
emit('after-leave', el)
|
|
90
|
-
},
|
|
91
|
-
onBeforeEnter: (el: RendererElement) => {
|
|
92
|
-
beforeEnter(props, el)
|
|
93
|
-
emit('before-enter', el)
|
|
94
|
-
},
|
|
95
|
-
onBeforeLeave: (el: RendererElement) => {
|
|
96
|
-
beforeLeave(props, el)
|
|
97
|
-
emit('before-leave', el)
|
|
98
|
-
},
|
|
99
|
-
onLeave: (el: RendererElement, done: () => void) => {
|
|
100
|
-
leave(props, el, done)
|
|
101
|
-
emit('leave', el, done)
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
export {
|
|
106
|
-
getTimingValue,
|
|
107
|
-
leave,
|
|
108
|
-
setAbsolutePosition,
|
|
109
|
-
setStyles
|
|
110
|
-
}
|
package/src/main.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as components from './components'
|
|
2
|
-
export * from './components'
|
|
3
|
-
import type { App } from 'vue'
|
|
4
|
-
|
|
5
|
-
export function install (app: App) {
|
|
6
|
-
// @ts-expect-error it's a custom flag
|
|
7
|
-
if (app.$_vueBezierInstalled) return
|
|
8
|
-
// @ts-expect-error it's a custom flag
|
|
9
|
-
app.$_vueBezierInstalled = true
|
|
10
|
-
|
|
11
|
-
Object
|
|
12
|
-
.entries(components)
|
|
13
|
-
.forEach(([componentName, component]) =>
|
|
14
|
-
app.component(componentName, component)
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
install
|
|
20
|
-
}
|