99 <!-- ====================================================== Navigation Drawer -->
1010 <VResizeDrawer
1111 v-model =" drawer"
12- :absolute =" drawerOptions.absolute"
13- :color =" drawerOptions.color"
14- :elevation =" drawerOptions.elevation"
15- :expand-on-hover =" drawerOptions.expandOnHover"
16- :floating =" drawerOptions.floating"
17- :handle-border-width =" drawerOptions.handleBorderWidth"
18- :handle-color =" drawerOptions.handleColor"
19- :handle-icon =" drawerOptions.handleIcon"
20- :handle-icon-size =" drawerOptions.handleIconSize"
21- :handle-position =" (drawerOptions.handlePosition as HandlePositions)"
22- :image =" drawerOptions.image"
23- :location =" (drawerOptions.location as DrawerLocations)"
24- :max-width =" drawerOptions.maxWidth"
25- :min-width =" drawerOptions.minWidth"
26- :rail =" drawerOptions.rail"
27- :rail-width =" drawerOptions.railWidth"
28- :resizable =" drawerOptions.resizable"
29- :save-width =" drawerOptions.saveWidth"
30- :sticky =" drawerOptions.sticky"
31- :storage-name =" drawerOptions.storageName"
32- :storage-type =" (drawerOptions.storageType as StorageType)"
33- :tag =" drawerOptions.tag"
34- :temporary =" drawerOptions.temporary"
35- :theme =" drawerOptions.theme"
36- :touchless =" drawerOptions.touchless"
37- :width =" drawerOptions.width"
38- :width-snap-back =" drawerOptions.widthSnapBack"
12+ v-bind =" drawerOptions"
3913 @close =" drawerClose"
4014 @drawer:mouseenter =" drawerMouseenter"
4115 @drawer:mouseleave =" drawerMouseleave"
6236
6337 <!-- ====================================================== Grid Drawer -->
6438 <VResizeDrawer
65- :absolute =" gridDrawerOptions.absolute"
66- :color =" gridDrawerOptions.color"
67- :elevation =" gridDrawerOptions.elevation"
68- location =" right"
69- max-width =" 90%"
70- :min-width =" gridDrawerOptions.minWidth"
39+ v-bind =" gridDrawerOptions"
7140 :model-value =" gridDrawer"
72- :permanent =" gridDrawerOptions.permanent"
73- :resizable =" gridDrawerOptions.resizable"
7441 :save-width =" false"
75- :scrim =" gridDrawerOptions.scrim"
7642 style =" z-index : 9999 ;"
77- :temporary =" gridDrawerOptions.temporary"
7843 :theme =" drawerOptions.theme"
7944 :width =" gridDrawerWidth"
80- :width-snap-back =" gridDrawerOptions.widthSnapBack"
8145 @close =" gridDrawerClose"
8246 @handle:dblclick =" gridHandleDoubleClick"
8347 @handle:drag =" gridHandleDrag"
12488<script setup lang=ts>
12589import { onMounted , provide , ref } from ' vue' ;
12690import AppBar from ' @/documentation/layout/AppBar.vue' ;
127- import type {
128- DrawerLocations ,
129- HandlePositions ,
130- StorageType ,
131- } from ' @/plugin/types' ;
13291
13392
13493defineProps ({
@@ -138,37 +97,40 @@ defineProps({
13897 },
13998});
14099
141-
142100const drawerOptions = ref ({
143- absolute: false ,
101+ absolute: true ,
144102 color: ' ' ,
145103 drawerImage: undefined ,
146104 elevation: 0 ,
147105 expandOnHover: true ,
148- floating: false ,
106+ fixed: true ,
107+ floating: true ,
149108 handleBorderWidth: 8 ,
150109 handleColor: ' primary' ,
151- handleIcon: undefined ,
152110 // handleIcon: 'mdi:mdi-arrow-right-bold-box',
153111 handleIconSize: ' x-small' ,
154- handlePosition: ' center' ,
112+ handlePosition: ' center' as const ,
113+ height: undefined ,
155114 image: undefined ,
156- location: ' left' ,
115+ location: ' left' as const ,
116+ maxHeight: ' 50%' ,
157117 maxWidth: ' 50%' ,
118+ minHeight: ' 256px' ,
158119 minWidth: ' 256px' ,
159120 rail: false ,
160121 railWidth: 56 ,
161122 resizable: true ,
162- saveWidth: true ,
123+ saveHeight: true ,
124+ saveWidth: false ,
125+ snapBack: true ,
163126 sticky: false ,
164- storageName: ' vuetify-resize-drawer-playground-width ' ,
165- storageType: ' local' ,
127+ storageName: ' vuetify-resize-drawer-playground-amount ' ,
128+ storageType: ' local' as const ,
166129 tag: ' nav' ,
167130 temporary: false ,
168131 theme: ' dark' ,
169132 touchless: false ,
170133 width: undefined ,
171- widthSnapBack: true ,
172134});
173135
174136const drawer = ref (true );
@@ -220,11 +182,14 @@ const gridDrawerOptions = ref({
220182 absolute: true ,
221183 color: ' ' ,
222184 elevation: 0 ,
223- location: ' right' ,
224- maxWidth: ' 100%' ,
185+ handleIconSize: ' x-small' ,
186+ handlePosition: ' center' as const ,
187+ location: ' right' as const ,
188+ maxWidth: ' 90%' ,
225189 minWidth: ' 256px' ,
226190 permanent: false ,
227191 resizable: true ,
192+ saveHeight: true ,
228193 saveWidth: false ,
229194 scrim: false ,
230195 temporary: true ,
0 commit comments