@@ -76,22 +76,20 @@ const close = () => {
76
76
77
77
``` vue
78
78
<script setup lang="ts">
79
- import { ref } from "vue";
80
-
81
- import BottomSheet from "@douxcode/vue-spring-bottom-sheet";
82
- import "@douxcode/vue-spring-bottom-sheet/dist/style.css";
79
+ import { ref } from 'vue'
83
80
84
- const sheet = ref(false);
81
+ import BottomSheet from '@douxcode/vue-spring-bottom-sheet'
82
+ import '@douxcode/vue-spring-bottom-sheet/dist/style.css'
85
83
84
+ const sheet = ref(false)
86
85
</script>
87
86
88
87
<template>
89
- <button type="button" @click="sheet = true"> Open bottom sheet </button>
88
+ <button type="button" @click="sheet = true">Open bottom sheet</button>
90
89
<BottomSheet v-model="sheet"> Your content </BottomSheet>
91
90
</template>
92
91
```
93
92
94
-
95
93
## Usage in Nuxt 3
96
94
97
95
For Nuxt 3, just wrap component in ` <ClientOnly> `
@@ -123,6 +121,7 @@ For Nuxt 3, just wrap component in `<ClientOnly>`
123
121
--vsbs-shadow-color: rgba(89, 89, 89, 0.2 );
124
122
--vsbs-background: #fff;
125
123
--vsbs-border-radius: 16px;
124
+ --vsbs-outer-border-color: transparent;
126
125
--vsbs-max-width: 640px;
127
126
--vsbs-border-color: rgba(46, 59, 66, 0.125 );
128
127
--vsbs-padding-x: 16px;
@@ -155,13 +154,13 @@ Assuming there is `const bottomSheet = ref()`
155
154
156
155
## Events
157
156
158
- | Event | Description | Payload |
159
- | -------------- | -------------------------------------- | --------------- |
160
- | opened | Emitted when sheet finishes opening | - |
161
- | closed | Emitted when sheet finishes closing | - |
162
- | dragging-up | Emitted when user drags sheet upward | - |
163
- | dragging-down | Emitted when user drags sheet downward | - |
164
- | instinctHeight | Emitted when content height changes | height (number) |
157
+ | Event | Description | Payload |
158
+ | -------------- | -------------------------------------- | ----------------------- |
159
+ | opened | Emitted when sheet finishes opening | - |
160
+ | closed | Emitted when sheet finishes closing | - |
161
+ | dragging-up | Emitted when user drags sheet upward | - |
162
+ | dragging-down | Emitted when user drags sheet downward | - |
163
+ | instinctHeight | Emitted when content height changes | height (number) |
165
164
| snapped | Emitted when sheet finishes snapping | snapPointIndex (number) |
166
165
167
166
## Acknowledgments
0 commit comments