HotkeyDoc.vue 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="hotkey-doc">
  3. <template v-for="item in HOTKEY_DOC" :key="item.type">
  4. <div class="title">{{item.type}}</div>
  5. <div class="hotkey-item" v-for="hotkey in item.children" :key="hotkey.label">
  6. <div class="label">{{hotkey.label}}</div>
  7. <div class="value">{{hotkey.value}}</div>
  8. </div>
  9. </template>
  10. </div>
  11. </template>
  12. <script lang="ts" setup>
  13. import { HOTKEY_DOC } from '@/configs/hotkey'
  14. </script>
  15. <style lang="scss" scoped>
  16. .hotkey-doc {
  17. height: 100%;
  18. overflow: auto;
  19. font-size: 12px;
  20. margin: 0 -15px;
  21. padding: 0 15px 15px;
  22. }
  23. .title {
  24. font-size: 14px;
  25. font-weight: 700;
  26. border-bottom: 1px solid #e5e5e5;
  27. padding: 25px 0 5px 0;
  28. &:first-child {
  29. padding-top: 0;
  30. }
  31. }
  32. .hotkey-item {
  33. border-bottom: 1px solid #e5e5e5;
  34. padding: 15px 0 5px 0;
  35. display: flex;
  36. align-items: center;
  37. }
  38. .label {
  39. width: 140px;
  40. @include ellipsis-oneline();
  41. }
  42. </style>