File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,15 @@ import MyComponent from 'MyComponent.vue';
137137
138138// inside another Vue component
139139const options: VueBottomSheetOptions = {
140+ // props to be passed to MyComponent
141+ props: {
142+ someProp: true ,
143+ anotherProp: false
144+ },
145+ // listeners to be connected to MyComponent
146+ on: {
147+ someEvent : (value ) => { console .log (value ) }
148+ }
140149};
141150this .$showBottomSheet (MyComponent , options )
142151```
@@ -158,7 +167,15 @@ import MyComponent from 'MyComponent.vue';
158167
159168
160169const options: VueBottomSheetOptions = {
161- ...
170+ // props to be passed to MyComponent
171+ props: {
172+ someProp: true ,
173+ anotherProp: false
174+ },
175+ // listeners to be connected to MyComponent
176+ on: {
177+ someEvent : (value ) => { console .log (value ) }
178+ }
162179};
163180
164181const { showBottomSheet, closeBottomSheet } = useBottomSheet ()
You can’t perform that action at this time.
0 commit comments