File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
test/components/__snapshots__ Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ export const useCookie = <T = string>(
5050 _name : string ,
5151 _options : Record < string , any > = { }
5252) => {
53- const value = ref ( null ) as Ref < T >
53+ const value = ref ( _options ?. default ?. ( ) ?? null ) as Ref < T >
5454
5555 return {
56- value,
56+ value : value . value ,
5757 get : ( ) => value . value ,
5858 set : ( ) => { } ,
5959 update : ( ) => { } ,
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ export const useCookie = <T = string>(
3838 _name : string ,
3939 _options : Record < string , any > = { }
4040) => {
41- const value = ref ( null ) as Ref < T >
41+ const value = ref ( _options ?. default ?. ( ) ?? null ) as Ref < T >
4242
4343 return {
44- value,
44+ value : value . value ,
4545 get : ( ) => value . value ,
4646 set : ( ) => { } ,
4747 update : ( ) => { } ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ exports[`DashboardSidebar > renders with collapsible correctly 1`] = `
3939 <!---->
4040 <!---->
4141 <!--v-if-->
42- <div id = " dashboard-sidebar-v-0" data-dragging = " false" class = " relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0 border-r border-default" style = " --width: 0 %;" >
42+ <div id = " dashboard-sidebar-v-0" data-collapsed = " false " data- dragging= " false" class = " relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0 border-r border-default" style = " --width: 15 %;" >
4343 <!--v-if-->
4444 <div class = " flex flex-col gap-4 flex-1 overflow-y-auto px-4 py-2" ></div >
4545 <!--v-if-->
@@ -272,7 +272,7 @@ exports[`DashboardSidebar > renders with resizable correctly 1`] = `
272272 <!---->
273273 <!---->
274274 <!--v-if-->
275- <div id = " dashboard-sidebar-v-0" data-dragging = " false" class = " relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0 border-r border-default" style = " --width: 0 %;" >
275+ <div id = " dashboard-sidebar-v-0" data-collapsed = " false " data- dragging= " false" class = " relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0 border-r border-default" style = " --width: 15 %;" >
276276 <!--v-if-->
277277 <div class = " flex flex-col gap-4 flex-1 overflow-y-auto px-4 py-2" ></div >
278278 <!--v-if-->
You can’t perform that action at this time.
0 commit comments