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,