ShortcutsEntry.vue 528 B

12345678910111213141516171819202122232425262728293031
  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-${index}`"
  9. class="shortcut-key"
  10. >
  11. {{ key }}
  12. </span>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. defineProps<{
  17. shortcut: Object
  18. }>()
  19. </script>
  20. <style lang="scss" scoped>
  21. .shortcut-key {
  22. @apply bg-dividerLight;
  23. @apply rounded;
  24. @apply ml-2;
  25. @apply py-1;
  26. @apply px-2;
  27. @apply inline-flex;
  28. }
  29. </style>