From 35dfbcb563da021a66f4bb5fdece99cce060b398 Mon Sep 17 00:00:00 2001
From: gaoshuaixing <530353222@qq.com>
Date: Thu, 24 Jun 2021 18:58:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E9=94=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/hotkeyInput.vue | 256 ++++++++++++++++++++++++
frontend/src/config/router.config.js | 5 +
frontend/src/views/Layout.vue | 5 +
frontend/src/views/example/Ipc.vue | 4 +-
frontend/src/views/example/Shortcut.vue | 93 +++++++++
5 files changed, 361 insertions(+), 2 deletions(-)
create mode 100644 frontend/src/components/hotkeyInput.vue
create mode 100644 frontend/src/views/example/Shortcut.vue
diff --git a/frontend/src/components/hotkeyInput.vue b/frontend/src/components/hotkeyInput.vue
new file mode 100644
index 0000000..c8453e1
--- /dev/null
+++ b/frontend/src/components/hotkeyInput.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/config/router.config.js b/frontend/src/config/router.config.js
index 00b38ab..f868b19 100644
--- a/frontend/src/config/router.config.js
+++ b/frontend/src/config/router.config.js
@@ -22,6 +22,11 @@ export const constantRouterMap = [
name: 'Ipc',
component: () => import('@/views/example/Ipc')
},
+ {
+ path: 'shortcut',
+ name: 'Shortcut',
+ component: () => import('@/views/example/Shortcut')
+ },
{
path: 'setting',
name: 'Setting',
diff --git a/frontend/src/views/Layout.vue b/frontend/src/views/Layout.vue
index 771ab5b..bedc9f7 100644
--- a/frontend/src/views/Layout.vue
+++ b/frontend/src/views/Layout.vue
@@ -68,6 +68,11 @@ export default {
title: '通信',
pageName: 'Ipc',
params: {},
+ },
+ 'subMenu_4' : {
+ title: '快捷键',
+ pageName: 'Shortcut',
+ params: {},
}
},
'menu_2' : {
diff --git a/frontend/src/views/example/Ipc.vue b/frontend/src/views/example/Ipc.vue
index 85a0451..86e7fa3 100644
--- a/frontend/src/views/example/Ipc.vue
+++ b/frontend/src/views/example/Ipc.vue
@@ -2,7 +2,7 @@
- demo3 渲染进程与主进程IPC通信
+ demo3-1 渲染进程与主进程IPC通信
@@ -15,7 +15,7 @@
- demo4 主进程API执行网页函数
+ demo3-2 主进程API执行网页函数
diff --git a/frontend/src/views/example/Shortcut.vue b/frontend/src/views/example/Shortcut.vue
new file mode 100644
index 0000000..c4309d3
--- /dev/null
+++ b/frontend/src/views/example/Shortcut.vue
@@ -0,0 +1,93 @@
+
+
+
+ demo4 快捷键
+
+
+
+ 显示窗口
+
+
+
+ 保存
+
+
+
+
+ 隐藏窗口
+
+
+ 保存
+
+
+
+
+
+
+ 窗口最小化
+
+
+ 保存
+
+
+
+
+ 窗口还原
+
+
+ 保存
+
+
+
+
+
+
+
+