From d1ee063d6fd3f35433e043b2b997bfc51f015f69 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 31 Aug 2020 10:15:21 +0800 Subject: [PATCH] style: update button type --- src/components/CodemirrorEditor/aboutDialog.vue | 4 ++-- src/components/CodemirrorEditor/header.vue | 2 +- src/components/CodemirrorEditor/insertForm.vue | 2 +- src/components/CodemirrorEditor/resetDialog.vue | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/CodemirrorEditor/aboutDialog.vue b/src/components/CodemirrorEditor/aboutDialog.vue index 007a812..c45b2fe 100644 --- a/src/components/CodemirrorEditor/aboutDialog.vue +++ b/src/components/CodemirrorEditor/aboutDialog.vue @@ -8,8 +8,8 @@ - GitHub 仓库 - Gitee 仓库 + GitHub 仓库 + Gitee 仓库 diff --git a/src/components/CodemirrorEditor/header.vue b/src/components/CodemirrorEditor/header.vue index 24082c8..ec3513e 100644 --- a/src/components/CodemirrorEditor/header.vue +++ b/src/components/CodemirrorEditor/header.vue @@ -100,7 +100,7 @@ export default { return this.nightMode ? 'dark' : 'light' }, btnType() { - return !this.nightMode ? 'success' : 'default'; + return this.nightMode ? 'default' : 'primary'; }, ...mapState({ output: state => state.output, diff --git a/src/components/CodemirrorEditor/insertForm.vue b/src/components/CodemirrorEditor/insertForm.vue index afd4504..334ebe3 100644 --- a/src/components/CodemirrorEditor/insertForm.vue +++ b/src/components/CodemirrorEditor/insertForm.vue @@ -73,7 +73,7 @@ }, computed: { btnType() { - return !this.nightMode ? "success" : "default"; + return this.nightMode ? "default" : "primary"; }, ...mapState({ nightMode: state => state.nightMode, diff --git a/src/components/CodemirrorEditor/resetDialog.vue b/src/components/CodemirrorEditor/resetDialog.vue index 30aaeca..7c7eae7 100644 --- a/src/components/CodemirrorEditor/resetDialog.vue +++ b/src/components/CodemirrorEditor/resetDialog.vue @@ -21,7 +21,7 @@ export default { }, computed: { btnType() { - return this.nightMode ? 'default' : 'success'; + return this.nightMode ? 'default' : 'primary'; }, ...mapState({ nightMode: state => state.nightMode