mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-22 13:36:23 +08:00
perf: 新增快捷键说明
This commit is contained in:
parent
f0412e7fae
commit
90d7060a22
@ -79,5 +79,6 @@ export enum MacKeyboard {
|
|||||||
ALT = '⌥',
|
ALT = '⌥',
|
||||||
CTRL_SOURCE_KEY = '⌘',
|
CTRL_SOURCE_KEY = '⌘',
|
||||||
SHIFT_SOURCE_KEY = '⇧',
|
SHIFT_SOURCE_KEY = '⇧',
|
||||||
ALT_SOURCE_KEY = '⌥'
|
ALT_SOURCE_KEY = '⌥',
|
||||||
|
SPACE = 'Space'
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
<tr v-for="(item, index) in shortcutKeyOptions" :key="index">
|
<tr v-for="(item, index) in shortcutKeyOptions" :key="index">
|
||||||
<td>{{ item.label }}</td>
|
<td>{{ item.label }}</td>
|
||||||
<td>{{ item.win }}</td>
|
<td>{{ item.win }}</td>
|
||||||
<td>
|
<td v-if="item.macSource">{{ item.mac }}</td>
|
||||||
|
<td v-else>
|
||||||
<n-gradient-text :size="22">{{ item.mac.substr(0, 1) }}</n-gradient-text>
|
<n-gradient-text :size="22">{{ item.mac.substr(0, 1) }}</n-gradient-text>
|
||||||
+ {{ item.mac.substr(3) }}
|
+ {{ item.mac.substr(3) }}
|
||||||
</td>
|
</td>
|
||||||
@ -44,25 +45,16 @@ defineProps({
|
|||||||
// 快捷键
|
// 快捷键
|
||||||
const shortcutKeyOptions = [
|
const shortcutKeyOptions = [
|
||||||
{
|
{
|
||||||
label: '向上移动',
|
label: '拖拽画布',
|
||||||
win: `${WinKeyboard.CTRL.toUpperCase()} + ↑ `,
|
win: `${WinKeyboard.SPACE.toUpperCase()} + 🖱️ `,
|
||||||
|
mac: `${MacKeyboard.SPACE.toUpperCase()} + 🖱️ `,
|
||||||
|
macSource: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '向 上/右/下/左 移动',
|
||||||
|
win: `${WinKeyboard.CTRL.toUpperCase()} + ↑ 或 → 或 ↓ 或 ←`,
|
||||||
mac: `${MacKeyboard.CTRL.toUpperCase()} + ↑ `
|
mac: `${MacKeyboard.CTRL.toUpperCase()} + ↑ `
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: '向右移动',
|
|
||||||
win: `${WinKeyboard.CTRL.toUpperCase()} + → `,
|
|
||||||
mac: `${MacKeyboard.CTRL.toUpperCase()} + → `
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '向下移动',
|
|
||||||
win: `${WinKeyboard.CTRL.toUpperCase()} + ↓ `,
|
|
||||||
mac: `${MacKeyboard.CTRL.toUpperCase()} + ↓ `
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '向左移动',
|
|
||||||
win: `${WinKeyboard.CTRL.toUpperCase()} + ← `,
|
|
||||||
mac: `${MacKeyboard.CTRL.toUpperCase()} + ← `
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '锁定',
|
label: '锁定',
|
||||||
win: `${WinKeyboard.CTRL.toUpperCase()} + L `,
|
win: `${WinKeyboard.CTRL.toUpperCase()} + L `,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user