mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-18 10:10:43 +08:00
✨ 增加服务器选项框的标题显示,展示服务器数量
This commit is contained in:
parent
4d57c3d8f1
commit
ca21559064
@ -7,6 +7,7 @@
|
|||||||
:class="{
|
:class="{
|
||||||
active: activeValue === item.value,
|
active: activeValue === item.value,
|
||||||
}"
|
}"
|
||||||
|
:title="item?.title || false"
|
||||||
@click="toggleModelValue(item)"
|
@click="toggleModelValue(item)"
|
||||||
>
|
>
|
||||||
<span class="option-label">{{ item.label }}</span>
|
<span class="option-label">{{ item.label }}</span>
|
||||||
|
|||||||
@ -100,6 +100,7 @@ const tagOptions = computed(() => store.state.serverGroup.map((i) => ({
|
|||||||
key: uuid(),
|
key: uuid(),
|
||||||
label: i.name,
|
label: i.name,
|
||||||
value: i.name,
|
value: i.name,
|
||||||
|
title: `${i.servers.length}台`,
|
||||||
})));
|
})));
|
||||||
|
|
||||||
const onlineOptions = computed(() => {
|
const onlineOptions = computed(() => {
|
||||||
@ -108,10 +109,12 @@ const onlineOptions = computed(() => {
|
|||||||
key: 'online',
|
key: 'online',
|
||||||
label: '在线',
|
label: '在线',
|
||||||
value: '1',
|
value: '1',
|
||||||
|
title: `${serverCount.value.online}台`,
|
||||||
}, {
|
}, {
|
||||||
key: 'offline',
|
key: 'offline',
|
||||||
label: '离线',
|
label: '离线',
|
||||||
value: '-1',
|
value: '-1',
|
||||||
|
title: `${serverCount.value.offline}台`,
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user