增加服务器选项框的标题显示,展示服务器数量

This commit is contained in:
hi2hi 2024-12-12 12:53:59 +00:00
parent 4d57c3d8f1
commit ca21559064
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
:class="{
active: activeValue === item.value,
}"
:title="item?.title || false"
@click="toggleModelValue(item)"
>
<span class="option-label">{{ item.label }}</span>

View File

@ -100,6 +100,7 @@ const tagOptions = computed(() => store.state.serverGroup.map((i) => ({
key: uuid(),
label: i.name,
value: i.name,
title: `${i.servers.length}`,
})));
const onlineOptions = computed(() => {
@ -108,10 +109,12 @@ const onlineOptions = computed(() => {
key: 'online',
label: '在线',
value: '1',
title: `${serverCount.value.online}`,
}, {
key: 'offline',
label: '离线',
value: '-1',
title: `${serverCount.value.offline}`,
}];
}
return [];