Skip to content

Commit

Permalink
feat(v-nav-drawer): new emit event: toggle:click
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Oct 25, 2021
1 parent e958a81 commit 4594a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/VNavDrawer/VNavDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ const props = defineProps({
const {modelValue, mini, menus, logoProps, dark, color, hideToggle} =
toRefs(props);
const emit = defineEmits(['update:modelValue', 'update:mini']);
const emit = defineEmits(['update:modelValue', 'update:mini', 'toggle:click']);
const toggleMenu = () => {
emit('toggle:click');
emit('update:mini', !mini.value);
};
Expand Down

0 comments on commit 4594a5e

Please sign in to comment.