20 lines
503 B
Vue
20 lines
503 B
Vue
<template>
|
|
<transition v-if="name=='slideInUp'"
|
|
enter-active-class="linear duration-300 overflow-hidden"
|
|
enter-class="max-h-0"
|
|
enter-to-class="max-h-screen"
|
|
leave-active-class="linear duration-300 overflow-hidden"
|
|
leave-class="max-h-screen"
|
|
leave-to-class="max-h-0"
|
|
>
|
|
<slot />
|
|
</transition>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'VTransition',
|
|
props: { name: { default: 'slideInUp' } }
|
|
}
|
|
</script>
|