mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-14 16:20:44 +08:00
✨ 增加服务器选项框的标题显示,展示服务器数量
This commit is contained in:
parent
4d57c3d8f1
commit
ca21559064
@ -7,6 +7,7 @@
|
||||
:class="{
|
||||
active: activeValue === item.value,
|
||||
}"
|
||||
:title="item?.title || false"
|
||||
@click="toggleModelValue(item)"
|
||||
>
|
||||
<span class="option-label">{{ item.label }}</span>
|
||||
|
||||
@ -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 [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user