style(station-card)
This commit is contained in:
@@ -112,13 +112,17 @@ const theme = useThemeVars();
|
||||
<template>
|
||||
<NCard bordered hoverable size="medium" :header-style="{ padding: `6px` }" :content-style="{ padding: `0px 6px 6px 6px` }">
|
||||
<template #header>
|
||||
<NTooltip v-if="station.ip" trigger="click">
|
||||
<template #trigger>
|
||||
<span style="font-size: medium">{{ station.name }}</span>
|
||||
</template>
|
||||
<span>{{ station.ip }}</span>
|
||||
</NTooltip>
|
||||
<span v-else style="font-size: medium">{{ station.name }}</span>
|
||||
<template v-if="station.ip">
|
||||
<NTooltip trigger="click">
|
||||
<template #trigger>
|
||||
<span style="font-size: smaller">{{ station.name }}</span>
|
||||
</template>
|
||||
<span>{{ station.ip }}</span>
|
||||
</NTooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span style="font-size: smaller">{{ station.name }}</span>
|
||||
</template>
|
||||
</template>
|
||||
<template #header-extra>
|
||||
<NFlex :size="4">
|
||||
@@ -145,7 +149,7 @@ const theme = useThemeVars();
|
||||
<NFlex justify="end" align="center">
|
||||
<span>
|
||||
<span :style="{ color: onlineDeviceCount > 0 ? theme.successColor : '' }">在线 {{ onlineDeviceCount }} 台</span>
|
||||
<NText depth="3">·</NText>
|
||||
<NText depth="3"> · </NText>
|
||||
<span :style="{ color: offlineDeviceCount > 0 ? theme.errorColor : '' }">离线 {{ offlineDeviceCount }} 台</span>
|
||||
</span>
|
||||
<NButton quaternary size="tiny" :focusable="false" style="visibility: hidden">
|
||||
|
||||
Reference in New Issue
Block a user