Skip to content

Commit

Permalink
feat(v-app-bar): new default-hidden prop
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Oct 25, 2021
1 parent be0af0a commit 5789648
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/VAppBar/VAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
defaultHidden: {
type: Boolean,
default: false,
},
});
const emit = defineEmits(['toggleMenu', 'update:modelValue']);
Expand All @@ -43,7 +47,7 @@ const toggleMenu = () => emit('toggleMenu');
:class="[
dark ? 'bg-black' : 'bg-white',
mini ? 'v-app-bar-mini' : drawer ? 'v-app-bar-drawer' : '',
fixed ? 'fixed w-full' : 'relative',
defaultHidden ? 'flex sm:hidden' : fixed ? 'fixed w-full' : 'relative',
]"
>
<slot v-if="!hideToggle" name="toggle" :toggle="toggleMenu">
Expand Down Expand Up @@ -71,7 +75,7 @@ const toggleMenu = () => emit('toggleMenu');
shadow-md
px-4
py-3
flex flex-initial
flex-initial
items-center
justify-between
z-20
Expand Down

0 comments on commit 5789648

Please sign in to comment.