From bca29dab3061ac2e93860b232fb4592d7547dc45 Mon Sep 17 00:00:00 2001 From: obkoro1 <1677593011@qq.com> Date: Sun, 29 Dec 2019 19:51:53 +0800 Subject: [PATCH] =?UTF-8?q?webview=20=E9=AA=8C=E8=AF=81=E5=92=8C=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=EF=BC=8C=E6=95=B0=E6=8D=AE=E4=BC=A0=E5=8F=82=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/autoCommit.css | 62 ++++--- src/models/WebView.ts | 4 +- src/views/autoCommit.html | 308 +++++++++++++++++++++---------- 3 files changed, 244 insertions(+), 130 deletions(-) diff --git a/src/assets/styles/autoCommit.css b/src/assets/styles/autoCommit.css index 8de36b4..4a52ae3 100644 --- a/src/assets/styles/autoCommit.css +++ b/src/assets/styles/autoCommit.css @@ -1,30 +1,34 @@ #app{ - background: #272822; - height: 100vh; - color: #fff; - } - - .el-main { - background-color: #272822; - } - - .form_item { - font-size: 16px; - } - .form_item .el-form-item__label{ - font-size: 16px; - color: #fff; - } - - .form-title { - padding-top: 20px; - font-weight: bold; - font-size: 30px; - text-align: center; - } - - body > .el-container { - margin-bottom: 40px; - } - - \ No newline at end of file + background: #272822; + height: 100vh; + color: #fff; +} + +.el-main { + background-color: #272822; +} + +body > .el-container { + margin-bottom: 40px; +} + +.form_item { + font-size: 16px; +} + +.el-form-item__label{ + font-size: 16px; + color: #fff; +} + +.form-title { + padding-top: 20px; + font-weight: bold; + font-size: 30px; + text-align: center; +} + +.input_form{ + width: 200px; +} + diff --git a/src/models/WebView.ts b/src/models/WebView.ts index 6d8fa6f..4756fa4 100644 --- a/src/models/WebView.ts +++ b/src/models/WebView.ts @@ -2,7 +2,7 @@ * Author : OBKoro1 * Date : 2019-12-26 13:49:02 * LastEditors : OBKoro1 - * LastEditTime : 2019-12-26 20:04:51 + * LastEditTime : 2019-12-29 19:01:20 * FilePath : /autoCommit/src/models/WebView.ts * Description : 创建webview * https://github.com/OBKoro1 @@ -101,7 +101,7 @@ class WebView { // webview消息回调 public handleMessage(message: webviewMsg) { const { command, data } = message; - if (command === 'event') { + if (command !== 'msg') { this.MessageCallBack(message); return; } diff --git a/src/views/autoCommit.html b/src/views/autoCommit.html index 29c494d..cf6560e 100644 --- a/src/views/autoCommit.html +++ b/src/views/autoCommit.html @@ -1,106 +1,216 @@ -
- - -