File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
<v-navigation-drawer
3
3
v-bind =" bindingSettings"
4
4
ref =" resizeDrawer"
5
+ v-model =" internalModelValue"
5
6
:class =" drawerClasses"
6
7
:location =" settings.location"
7
- :model-value =" modelValue"
8
8
:name =" settings.name"
9
9
:style =" drawerStyles"
10
10
:tag =" settings.tag"
@@ -106,6 +106,8 @@ const emit = defineEmits([
106
106
]);
107
107
108
108
109
+ const internalModelValue = defineModel <boolean >(' modelValue' , { default: false });
110
+
109
111
// -------------------------------------------------- Props //
110
112
const props = withDefaults (defineProps <Props >(), { ... AllProps });
111
113
@@ -204,7 +206,7 @@ function init(): void {
204
206
205
207
206
208
// -------------------------------------------------- Model Watcher //
207
- watch (() => props . modelValue , (val ) => {
209
+ watch (() => internalModelValue , (val ) => {
208
210
emit (' update:modelValue' , val );
209
211
210
212
if (! val ) {
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ export interface Props {
46
46
maxWidth ?: VNavigationDrawer [ 'width' ] ;
47
47
minHeight ?: Height ;
48
48
minWidth ?: VNavigationDrawer [ 'width' ] ;
49
- modelValue ?: VNavigationDrawer [ 'modelValue' ] ;
50
49
name ?: VNavigationDrawer [ 'name' ] ;
51
50
rail ?: VNavigationDrawer [ 'rail' ] ;
52
51
railWidth ?: VNavigationDrawer [ 'railWidth' ] ;
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export const AllProps: Props = {
14
14
maxWidth : window . innerWidth ,
15
15
minHeight : 56 ,
16
16
minWidth : 56 ,
17
- modelValue : true ,
18
17
name : undefined ,
19
18
rail : false ,
20
19
railWidth : 8 ,
You can’t perform that action at this time.
0 commit comments