feat 搭建架构骨架

This commit is contained in:
Ironsp
2026-09-24 09:09:47 +08:00
parent dd9f6b77a4
commit 7a2efa3fea
180 changed files with 18967 additions and 9 deletions

View File

@@ -0,0 +1,55 @@
<script setup lang="ts">
import type { HomeStats } from '@/types/business/home'
interface Props {
stats: HomeStats
}
defineProps<Props>()
const items = [
{ key: 'pending', label: '待您处理' },
{ key: 'inProgress', label: '进行中' },
{ key: 'total', label: '累计项目' },
] as const
</script>
<template>
<section class="home-stats">
<div
v-for="item in items"
:key="item.key"
class="home-stats__item"
>
<span class="home-stats__value">{{ stats[item.key] }}</span>
<span class="home-stats__label text-secondary">{{ item.label }}</span>
</div>
</section>
</template>
<style lang="less" scoped>
.home-stats {
.flex(row, space-between);
gap: @spacing-base;
&__item {
.flex(column, center);
flex: 1;
gap: @spacing-xs;
padding: @spacing-base @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-base;
}
&__value {
font-size: @font-size-xxl;
font-weight: 600;
color: @primary-color;
}
&__label {
font-size: @font-size-base;
}
}
</style>