From 2f16efd29172771100f7dd181137047e8027f7f5 Mon Sep 17 00:00:00 2001 From: nsnail Date: Fri, 22 Nov 2024 18:12:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96=20(#215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] Co-authored-by: tk --- .../admin/src/components/naColUser/index.vue | 7 ++++++- src/frontend/admin/src/style/app.scss | 13 ++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/frontend/admin/src/components/naColUser/index.vue b/src/frontend/admin/src/components/naColUser/index.vue index ed3755ad..ccac418b 100644 --- a/src/frontend/admin/src/components/naColUser/index.vue +++ b/src/frontend/admin/src/components/naColUser/index.vue @@ -30,6 +30,9 @@ export default { emits: ['click'], methods: { async click(id) { + if (!this.clickOpenDialog) { + return + } this.dialog.save = true await this.$nextTick() await this.$refs.saveDialog.open({ mode: 'view', row: { id: id } }) @@ -40,7 +43,9 @@ export default { }, }, mounted() {}, - props: {}, + props: { + clickOpenDialog: { type: Boolean, default: true }, + }, watch: {}, } diff --git a/src/frontend/admin/src/style/app.scss b/src/frontend/admin/src/style/app.scss index 3f506dca..05c598a4 100644 --- a/src/frontend/admin/src/style/app.scss +++ b/src/frontend/admin/src/style/app.scss @@ -579,12 +579,15 @@ textarea { } } -.sc-statistic-error a { - font-size: inherit; - font-weight: inherit; - color: var(--el-color-danger) !important; +.sc-statistic-error { + a, + .sc-statistic-content-value { + font-size: inherit; + font-weight: bold; + color: var(--el-color-danger) !important; + } - &:after { + a:after { border-bottom: 1px solid var(--el-color-danger) !important; bottom: 0; content: '';