Files
wireguard-dashboard-admin/src/views/workbench/index.vue

59 lines
1.9 KiB
Vue
Raw Normal View History

2022-01-08 17:20:46 +08:00
<template>
2022-08-28 19:37:23 +08:00
<AppPage :show-footer="true">
<div flex-1>
<n-card rounded-10>
<div flex items-center>
<img rounded-full width="60" :src="userStore.avatar" />
<div ml-20>
<p text-16>Hello, {{ userStore.name }}</p>
<p mt-5 text-12 op-60>今天又是元气满满的一天</p>
</div>
<div ml-auto flex items-center>
<n-statistic label="待办" :value="4">
2023-06-03 16:38:45 +08:00
<template #suffix>/ 10</template>
2022-08-28 19:37:23 +08:00
</n-statistic>
2023-05-08 14:15:03 +08:00
<n-statistic label="Stars" ml-80 w-100>
2022-08-28 19:37:23 +08:00
<a href="https://github.com/zclzone/vue-naive-admin">
<img alt="stars" src="https://badgen.net/github/stars/zclzone/vue-naive-admin" />
2022-08-28 19:37:23 +08:00
</a>
</n-statistic>
2023-05-08 14:15:03 +08:00
<n-statistic label="Forks" ml-80 w-100>
2022-08-28 19:37:23 +08:00
<a href="https://github.com/zclzone/vue-naive-admin">
<img alt="forks" src="https://badgen.net/github/forks/zclzone/vue-naive-admin" />
2022-08-28 19:37:23 +08:00
</a>
</n-statistic>
</div>
2022-03-20 18:59:20 +08:00
</div>
2022-08-28 19:37:23 +08:00
</n-card>
2022-03-20 18:59:20 +08:00
2022-08-28 19:37:23 +08:00
<n-card title="项目" size="small" :segmented="true" mt-15 rounded-10>
<template #header-extra>
<n-button text type="primary">更多</n-button>
</template>
<div flex flex-wrap justify-between>
<n-card
v-for="i in 10"
:key="i"
2023-05-08 14:15:03 +08:00
class="mb-10 mt-10 w-300 flex-shrink-0 cursor-pointer"
2022-08-28 19:37:23 +08:00
hover:card-shadow
title="Vue Naive Admin"
size="small"
>
<p op-60>一个基于 Vue3.0ViteNaive UI 的轻量级后台管理模板</p>
</n-card>
2023-05-08 14:15:03 +08:00
<div h-0 w-300></div>
<div h-0 w-300></div>
<div h-0 w-300></div>
<div h-0 w-300></div>
2022-08-28 19:37:23 +08:00
</div>
</n-card>
</div>
</AppPage>
2022-01-08 17:20:46 +08:00
</template>
2022-03-20 18:59:20 +08:00
<script setup>
2022-09-18 20:05:40 +08:00
import { useUserStore } from '@/store'
2022-03-20 18:59:20 +08:00
const userStore = useUserStore()
</script>