ShortcutsEntry.vue 611 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="flex items-center">
  3. <span class="flex flex-1 mr-4">
  4. {{ t(shortcut.label) }}
  5. </span>
  6. <span
  7. v-for="(key, index) in shortcut.keys"
  8. :key="`key-${String(index)}`"
  9. class="shortcut-key"
  10. >
  11. {{ key }}
  12. </span>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { useI18n } from "~/helpers/utils/composables"
  17. const t = useI18n()
  18. defineProps<{
  19. shortcut: Object
  20. }>()
  21. </script>
  22. <style lang="scss" scoped>
  23. .shortcut-key {
  24. @apply bg-dividerLight;
  25. @apply rounded;
  26. @apply ml-2;
  27. @apply py-1;
  28. @apply px-2;
  29. @apply inline-flex;
  30. }
  31. </style>