<template>
<main>
<button @click="toggle">toggle</button>
<height-transition>
<div v-if="show">
<!-- contents -->
</div>
</height-transition>
</main>
</template>
<script>
import HeightTransition from '@yvany/height-transition'
export default {
el: '#app',
components: { HeightTransition },
data: () => ({
show: true
}),
methods: {
toggle() {
this.show = !this.show
}
}
}
</script>
<style src="@yvany/height-transition/dist/style.css"></style>
YvanY/height-transition
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
vue height transition component
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published