mirror of https://github.com/nocodb/nocodb
Wing-Kam Wong
2 years ago
3 changed files with 61 additions and 1 deletions
@ -0,0 +1,29 @@
|
||||
<script lang="ts" setup> |
||||
import { useI18n } from '#imports' |
||||
|
||||
const { modelValue } = defineProps<{ |
||||
modelValue: boolean |
||||
}>() |
||||
|
||||
const emit = defineEmits(['update:modelValue']) |
||||
|
||||
const dialogShow = computed({ |
||||
get: () => modelValue, |
||||
set: (v) => emit('update:modelValue', v), |
||||
}) |
||||
|
||||
const { t } = useI18n() |
||||
</script> |
||||
|
||||
<template> |
||||
<a-modal |
||||
v-model:visible="dialogShow" |
||||
width="max(30vw, 600px)" |
||||
class="p-2" |
||||
:wrap-class-name="`nc-modal-keyboard-shortcuts ${dialogShow ? 'active' : ''}`" |
||||
@keydown.esc="dialogShow = false" |
||||
> |
||||
<template #title> {{ $t('general.title.keyboardShortcut') }} </template> |
||||
<!-- TODO: --> |
||||
</a-modal> |
||||
</template> |
Loading…
Reference in new issue