index.vue
989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<template>
<div class="go-edit-shortcut">
<shortcut-key-modal v-model:modelShow="modelShow"></shortcut-key-modal>
<n-tooltip trigger="hover">
<template #trigger>
<n-button
class="scale-btn"
secondary
size="small"
@click="modelShow = true"
>
<n-icon size="21" :depth="3">
<dicom-overlay-icon></dicom-overlay-icon>
</n-icon>
</n-button>
</template>
<span>{{ t('common.shortcutKeys') }}</span>
</n-tooltip>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { icon } from '@/plugins'
import ShortcutKeyModal from './ShortcutKeyModal.vue'
const { DicomOverlayIcon } = icon.carbon
const t = window['$t']
const modelShow = ref<boolean>(false)
</script>
<style lang="scss" scoped>
@include go('edit-shortcut') {
.scale-btn {
margin: 0 10px 0 0;
.btn-text {
font-size: 12px;
margin-right: 3px;
}
}
}
</style>