mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 补充快捷操作提示
This commit is contained in:
parent
dd2d530522
commit
faa198a8d0
@ -31,7 +31,15 @@ export const enum KEYS {
|
||||
F5 = 'F5',
|
||||
}
|
||||
|
||||
export const HOTKEY_DOC = [
|
||||
interface HotkeyItem {
|
||||
type: string
|
||||
children: {
|
||||
label: string
|
||||
value?: string
|
||||
}[]
|
||||
}
|
||||
|
||||
export const HOTKEY_DOC: HotkeyItem[] = [
|
||||
{
|
||||
type: '通用',
|
||||
children: [
|
||||
@ -126,4 +134,15 @@ export const HOTKEY_DOC = [
|
||||
{ label: '选中段落', value: `ESC` },
|
||||
],
|
||||
},
|
||||
{
|
||||
type: '其他快捷操作',
|
||||
children: [
|
||||
{ label: '添加图片 - 粘贴来自系统剪贴板的图片' },
|
||||
{ label: '添加图片 - 将本地图片拖拽到画布中' },
|
||||
{ label: '添加图片 - 在画布中粘贴SVG代码' },
|
||||
{ label: '添加图片 - 粘贴来自 pexels 的图片链接' },
|
||||
{ label: '添加文本 - 将外部选中文字拖拽到画布中' },
|
||||
{ label: '文本编辑 - 支持 markdown 语法创建列表和引用' },
|
||||
],
|
||||
},
|
||||
]
|
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
<div class="btns">
|
||||
<Button class="btn" type="primary" @click="createPPT()">生成</Button>
|
||||
<Button class="btn" @click="outline = ''; step = 'setup'">返回重新生成</Button>
|
||||
<Button class="btn" @click="step = 'outline'">返回大纲</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -3,8 +3,11 @@
|
||||
<template v-for="item in HOTKEY_DOC" :key="item.type">
|
||||
<div class="title">{{item.type}}</div>
|
||||
<div class="hotkey-item" v-for="hotkey in item.children" :key="hotkey.label">
|
||||
<div class="label">{{hotkey.label}}</div>
|
||||
<div class="value">{{hotkey.value}}</div>
|
||||
<template v-if="hotkey.value">
|
||||
<div class="label">{{hotkey.label}}</div>
|
||||
<div class="value">{{hotkey.value}}</div>
|
||||
</template>
|
||||
<div class="row" v-else>{{hotkey.label}}</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user