feat: quick shortcut key for menu items

This commit is contained in:
liyasthomas
2021-12-20 00:22:31 +05:30
parent 39d6b1bfeb
commit 827f2157fa
25 changed files with 749 additions and 467 deletions

View File

@@ -1,9 +1,11 @@
<template>
<div class="flex">
<div class="flex" @click="$refs.logout.$el.click()">
<SmartItem
ref="logout"
svg="log-out"
:label="`${$t('auth.logout')}`"
:outline="outline"
:shortcut="shortcut"
@click.native="
() => {
$emit('confirm-logout')
@@ -30,6 +32,10 @@ export default defineComponent({
type: Boolean,
default: false,
},
shortcut: {
type: Array,
default: () => [],
},
},
data() {
return {