refactor: ♻️ 优化控制台通知公告样式
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
访问趋势
|
访问趋势
|
||||||
<el-tooltip effect="dark" content="点击试试下载" placement="bottom">
|
<el-tooltip effect="dark" content="点击试试下载" placement="bottom">
|
||||||
<i-ep-download
|
<i-ep-download
|
||||||
class="cursor-pointer hover:color-#409eff ml-2"
|
class="cursor-pointer hover:color-#409eff ml-1"
|
||||||
@click="handleDownloadChart"
|
@click="handleDownloadChart"
|
||||||
/>
|
/>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|||||||
@@ -141,16 +141,18 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<!-- Echarts 图表 -->
|
|
||||||
<el-row :gutter="10" class="mt-5">
|
<el-row :gutter="10" class="mt-5">
|
||||||
<el-col :xs="24" :span="16">
|
<el-col :xs="24" :span="16">
|
||||||
|
<!-- 访问趋势统计图 -->
|
||||||
<VisitTrend id="VisitTrend" width="100%" height="400px" />
|
<VisitTrend id="VisitTrend" width="100%" height="400px" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :span="8">
|
<el-col :xs="24" :span="8">
|
||||||
<el-card>
|
<el-card>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex-x-between">
|
<div class="flex-x-between">
|
||||||
<span> 通知公告</span>
|
<div class="flex-y-center">
|
||||||
|
通知公告<el-icon class="ml-1"><Notification /></el-icon>
|
||||||
|
</div>
|
||||||
<el-link type="primary">
|
<el-link type="primary">
|
||||||
<span class="text-xs">查看更多</span
|
<span class="text-xs">查看更多</span
|
||||||
><el-icon class="text-xs"><ArrowRight /></el-icon
|
><el-icon class="text-xs"><ArrowRight /></el-icon
|
||||||
@@ -162,16 +164,19 @@
|
|||||||
<div
|
<div
|
||||||
v-for="(item, index) in notices"
|
v-for="(item, index) in notices"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="py-3 flex-y-center"
|
class="flex-y-center py-3"
|
||||||
>
|
>
|
||||||
<el-tag :type="getNoticeLevelTag(item.level)" size="small">
|
<el-tag :type="getNoticeLevelTag(item.level)" size="small">
|
||||||
{{ getNoticeLabel(item.type) }}
|
{{ getNoticeLabel(item.type) }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-text truncated class="!mx-2 flex-1">
|
<el-text
|
||||||
|
truncated
|
||||||
|
class="!mx-2 flex-1 !text-xs !text-[var(--el-text-color-secondary)]"
|
||||||
|
>
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</el-text>
|
</el-text>
|
||||||
<el-link>
|
<el-link>
|
||||||
<i-ep-View />
|
<el-icon class="text-sm"><View /></el-icon>
|
||||||
</el-link>
|
</el-link>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|||||||
Reference in New Issue
Block a user