From 72aeb56fee9ee354cb46b509d41fee67e63ac1b9 Mon Sep 17 00:00:00 2001 From: Frost-ZX <30585462+Frost-ZX@users.noreply.github.com> Date: Tue, 4 May 2021 22:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=B8=80=E4=BA=9B=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E3=80=81=E4=BC=98=E5=8C=96=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/OtherRunJS.vue | 2 +- src/views/About.vue | 4 ---- src/views/Settings.vue | 4 +++- src/views/ToolsDetail.vue | 19 +++++++++++++++++-- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/components/tools/OtherRunJS.vue b/src/components/tools/OtherRunJS.vue index 329511d..d2b9c3e 100644 --- a/src/components/tools/OtherRunJS.vue +++ b/src/components/tools/OtherRunJS.vue @@ -75,7 +75,7 @@ export default { // 清空 btnClear() { - this.$confirm('确定要清空输入和输出的内容吗?', '确认', { + this.$confirm('确定要清空输入和输出的内容吗?', '', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' diff --git a/src/views/About.vue b/src/views/About.vue index 18046e0..acb81d6 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -85,10 +85,6 @@ export default { line-height: 1.8rem; font-size: 0.85rem; color: #888; - - /deep/ .el-link { - font-size: inherit; - } } } } diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 835b433..0534fe4 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -47,13 +47,14 @@ export default { }); }, methods: { + /** * 清除数据 * * @param {string} type 清除类型(cache、settings) */ resetDatas(type) { - this.$confirm('确定要清除吗?', '确认', { + this.$confirm('确定要清除吗?', '', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -85,6 +86,7 @@ export default { }); } + } } diff --git a/src/views/ToolsDetail.vue b/src/views/ToolsDetail.vue index a15f5da..9d03de7 100644 --- a/src/views/ToolsDetail.vue +++ b/src/views/ToolsDetail.vue @@ -45,9 +45,24 @@ export default { > div { > .title { - padding: 1rem 0; + position: relative; + margin: 1.5rem 0; font-size: 1rem; - font-weight: bold; + color: #222; + } + + > .title::before { + content: ""; + position: absolute; + top: 0; + left: -0.5rem; + width: 0.2rem; + height: 100%; + background-color: @colorPrimary; + } + + > .content { + font-size: 0.9rem; } } }