From fc71af3150f08d0a0ec5fb09f401eacbab3948c2 Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 18 Dec 2024 13:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=A6=81=E7=94=A8=E4=B8=94?= =?UTF-8?q?=E6=9A=97=E8=89=B2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=9A=84=E8=A7=86=E8=A7=89=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandCard.vue | 71 ++++++++++++++++++++++++---------- 1 file changed, 51 insertions(+), 20 deletions(-) diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index 0501876..8c55388 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -150,11 +150,14 @@ > - {{ - getShortStrByByte(cmd) - }} + + {{ getShortStrByByte(cmd) }} +
{{ cmd }} @@ -162,11 +165,16 @@ - + {{ getShortStrByByte(cmd.match.app[0]) }} + /> + {{ getShortStrByByte(cmd.match.app[0]) }}
- + + {{ (cmd.match && getShortStrByByte(cmd.match)) || "所有文件" - }} + }} +
{{ cmd.match || "所有文件" }} @@ -192,11 +204,16 @@ - + {{ getShortStrByByte(cmd.match) }} + /> + {{ getShortStrByByte(cmd.match) }}
@@ -205,15 +222,23 @@ - + 所有文本 - + 图片 @@ -325,9 +350,10 @@ export default { // 匹配类型的颜色 matchTypeColor() { return (cmdType = "key") => { - return this.canCommandRunAtCurrentOS && this.isCommandActivated - ? this.commandTypes[cmdType].color - : this.disabledColor; + if (!this.canCommandRunAtCurrentOS || !this.isCommandActivated) { + return this.$q.dark.isActive ? 'grey-9' : this.disabledColor; + } + return this.commandTypes[cmdType].color; }; }, programColor() { @@ -344,6 +370,11 @@ export default { cronExp() { return this.$root.nativeProfile.crontabs[this.featureCode]; }, + cardBadgeClass() { + return (!this.canCommandRunAtCurrentOS || !this.isCommandActivated) && this.$q.dark.isActive + ? 'text-grey-6' + : ''; + }, }, props: { commandInfo: Object,