1
1
<template >
2
- <teleport :to =" props.to " :disabled =" staticBoolean " >
2
+ <teleport :to =" props.teleportTo " :disabled =" teleportDisabledBoolean " >
3
3
<b-transition
4
4
:no-fade =" true"
5
5
:trans-props =" {
@@ -93,9 +93,9 @@ interface BOffcanvasProps {
93
93
lazy? : Booleanish
94
94
id? : string
95
95
noFocus? : Booleanish
96
- static? : Booleanish
97
96
backdropVariant? : ColorVariant | null
98
- to? : string | RendererElement | null | undefined
97
+ teleportDisabled? : Booleanish
98
+ teleportTo? : string | RendererElement | null | undefined
99
99
// TODO responsive doesn't work
100
100
// responsive?: Breakpoint
101
101
}
@@ -105,7 +105,6 @@ const props = withDefaults(defineProps<BOffcanvasProps>(), {
105
105
id: undefined ,
106
106
title: undefined ,
107
107
modelValue: false ,
108
- static: false ,
109
108
backdropVariant: ' dark' ,
110
109
noFocus: false ,
111
110
bodyScrolling: false ,
@@ -116,7 +115,8 @@ const props = withDefaults(defineProps<BOffcanvasProps>(), {
116
115
placement: ' start' ,
117
116
noHeaderClose: false ,
118
117
noHeader: false ,
119
- to: ' body' ,
118
+ teleportDisabled: false ,
119
+ teleportTo: ' body' ,
120
120
})
121
121
122
122
interface BOffcanvasEmits {
@@ -167,7 +167,7 @@ const noFocusBoolean = useBooleanish(() => props.noFocus)
167
167
const noCloseOnBackdropBoolean = useBooleanish (() => props .noCloseOnBackdrop )
168
168
const noCloseOnEscBoolean = useBooleanish (() => props .noCloseOnEsc )
169
169
const lazyBoolean = useBooleanish (() => props .lazy )
170
- const staticBoolean = useBooleanish (() => props .static )
170
+ const teleportDisabledBoolean = useBooleanish (() => props .teleportDisabled )
171
171
172
172
const computedId = useId (() => props .id , ' offcanvas' )
173
173
0 commit comments