File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { App , createApp } from 'nativescript-vue3' ;
2
2
import { Frame , View , ViewBase } from '@nativescript/core' ;
3
3
import { BottomSheetOptions } from '../bottomsheet' ;
4
+ import { ComponentCustomProperties } from '@vue/runtime-core' ;
5
+
6
+ declare module '@vue/runtime-core' {
7
+ interface ComponentCustomProperties {
8
+ $showBottomSheet : ( component : any , options : VueBottomSheetOptions ) => Promise < any > ;
9
+ $closeBottomSheet ( ...args ) ;
10
+ }
11
+ }
4
12
5
13
const modalStack = [ ] ;
6
14
@@ -63,12 +71,6 @@ const BottomSheetPlugin = {
63
71
64
72
const createNativeView = ( component : any , props ?: any ) : App => createApp ( component , props ) ;
65
73
66
- declare module '@vue/runtime-core' {
67
- interface ComponentCustomProperties {
68
- $showBottomSheet : ( component : any , options : VueBottomSheetOptions ) => Promise < any > ;
69
- $closeBottomSheet ( ...args ) ;
70
- }
71
- }
72
74
73
75
interface VueBottomSheetOptions extends Partial < BottomSheetOptions > {
74
76
view ?: string | ViewBase ;
You can’t perform that action at this time.
0 commit comments