style(command): 优化指令组子指令数量显示UI
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
"group": "Group",
|
||||
"subCommand": "Sub-command"
|
||||
},
|
||||
"subCommandCount": "sub-commands",
|
||||
"status": {
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
"group": "指令组",
|
||||
"subCommand": "子指令"
|
||||
},
|
||||
"subCommandCount": "个子指令",
|
||||
"status": {
|
||||
"enabled": "已启用",
|
||||
"disabled": "已禁用",
|
||||
|
||||
@@ -488,15 +488,6 @@ onMounted(async () => {
|
||||
<div>
|
||||
<div class="text-subtitle-1 font-weight-medium">
|
||||
<code :class="{ 'sub-command-code': item.type === 'sub_command' }">{{ item.effective_command }}</code>
|
||||
<v-chip
|
||||
v-if="item.is_group && item.sub_commands?.length > 0"
|
||||
size="x-small"
|
||||
color="info"
|
||||
variant="tonal"
|
||||
class="ml-2"
|
||||
>
|
||||
{{ item.sub_commands.length }} {{ tm('subCommandCount') }}
|
||||
</v-chip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -509,7 +500,7 @@ onMounted(async () => {
|
||||
variant="tonal"
|
||||
>
|
||||
<v-icon start size="14">{{ getTypeInfo(item.type).icon }}</v-icon>
|
||||
{{ getTypeInfo(item.type).text }}
|
||||
{{ getTypeInfo(item.type).text }}{{ item.is_group && item.sub_commands?.length > 0 ? `(${item.sub_commands.length})` : '' }}
|
||||
</v-chip>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user