@@ -4,37 +4,36 @@ import { ref, version } from 'vue'
44import BottomSheet from ' vue-spring-bottom-sheet'
55import ' vue-spring-bottom-sheet/dist/style.css'
66
7- const myBottomSheet = ref <InstanceType <typeof BottomSheet >>()
7+ const bottomSheet = ref <InstanceType <typeof BottomSheet >>()
88
99const open = () => {
10- myBottomSheet .value ?.open ()
10+ bottomSheet .value ?.open ()
1111}
1212
1313const close = () => {
14- myBottomSheet .value ?.close ()
14+ bottomSheet .value ?.close ()
1515}
1616 </script >
1717
1818<template >
1919 <div class =" content" >
20- <button class = " btn btn-primary " type =" button" @click =" open" >Open bottom sheet</button >
20+ <button type =" button" @click =" open" >Open bottom sheet</button >
2121 <p >vue js: {{ version }}</p >
2222 </div >
23- <BottomSheet ref =" myBottomSheet " >
24- <p v-for = " i in 5 " :key = " i " >
25- Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste aperiam, accusamus amet veniam officiis libero necessitatibus ipsum ,
26- reprehenderit eveniet neque ad delectus fugit!
23+ <BottomSheet ref =" bottomSheet " >
24+ <p class = " mb-4 " >
25+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias atque error dignissimos impedit iure facilis ipsam sit cum molestias ,
26+ natus, cupiditate molestiae, id exercitationem eaque obcaecati a animi. Accusamus, pariatur.
2727 </p >
28- <details >
29- <summary >Epcot Center</summary >
30- <p v-for =" i in 5" :key =" i" >
31- Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste aperiam, accusamus amet veniam officiis libero necessitatibus ipsum,
32- reprehenderit eveniet neque ad delectus fugit!
33- </p >
28+ <details class =" mb-4" >
29+ <summary >Tap to expand</summary >
30+ <div class =" py-4" >
31+ <Placeholder class =" h-8" />
32+ <p class =" my-5" >It adjusts its height based on the content.</p >
33+ <Placeholder class =" h-8" />
34+ </div >
3435 </details >
35- <template #footer >
36- <button type =" button" @click =" close" >Close bottom sheet</button >
37- </template >
36+ <button type =" button" class =" mb-4" @click =" close" > Close bottom sheet </button >
3837 </BottomSheet >
3938</template >
4039
0 commit comments