Browse Source

🚀 demo 个人中心

master
wangxiang 2 years ago
parent
commit
2459322fbe
  1. 10
      src/views/system/user/account/center/Application.vue
  2. 2
      src/views/system/user/account/center/Project.vue
  3. 8
      src/views/system/user/account/center/index.vue

10
src/views/system/user/account/center/Application.vue

@ -6,8 +6,11 @@
<ListItem> <ListItem>
<Card :hoverable="true" :class="`${prefixCls}__card`"> <Card :hoverable="true" :class="`${prefixCls}__card`">
<div :class="`${prefixCls}__card-title`"> <div :class="`${prefixCls}__card-title`">
<Icon class="icon" v-if="item.icon" :icon="item.icon" :color="item.color" /> <Icon v-if="item.icon"
{{ item.title }} class="icon"
:icon="item.icon"
:color="item.color"
/>{{ item.title }}
</div> </div>
<div :class="`${prefixCls}__card-num`"> <div :class="`${prefixCls}__card-num`">
活跃用户<span>{{ item.active }}</span> 活跃用户<span>{{ item.active }}</span>
@ -15,9 +18,8 @@
<div :class="`${prefixCls}__card-num`"> <div :class="`${prefixCls}__card-num`">
新增用户<span>{{ item.new }}</span> 新增用户<span>{{ item.new }}</span>
</div> </div>
<Icon <Icon v-if="item.download"
:class="`${prefixCls}__card-download`" :class="`${prefixCls}__card-download`"
v-if="item.download"
:icon="item.download" :icon="item.download"
/> />
</Card> </Card>

2
src/views/system/user/account/center/Project.vue

@ -22,7 +22,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { List, Card, Row, Col } from 'ant-design-vue'; import { List, Card, Row, Col } from 'ant-design-vue';
import demoImg from '/@/assets/images/demo.png'; import demoImg from '/@/assets/images/illustration.svg';
import { projectList } from './data'; import { projectList } from './data';
export default defineComponent({ export default defineComponent({

8
src/views/system/user/account/center/index.vue

@ -5,7 +5,7 @@
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<div :class="`${prefixCls}-top__avatar`"> <div :class="`${prefixCls}-top__avatar`">
<img width="70" :src="avatar" /> <img width="70" :src="avatar">
<span>Vben</span> <span>Vben</span>
<div>海纳百川有容乃大</div> <div>海纳百川有容乃大</div>
</div> </div>
@ -14,7 +14,7 @@
<div :class="`${prefixCls}-top__detail`"> <div :class="`${prefixCls}-top__detail`">
<template v-for="detail in details" :key="detail.title"> <template v-for="detail in details" :key="detail.title">
<p> <p>
<Icon :icon="detail.icon" /> <Icon :icon="detail.icon"/>
{{ detail.title }} {{ detail.title }}
</p> </p>
</template> </template>
@ -34,7 +34,7 @@
<a-col :span="8" :class="`${prefixCls}-col`"> <a-col :span="8" :class="`${prefixCls}-col`">
<CollapseContainer :class="`${prefixCls}-top__team`" title="团队" :canExpan="false"> <CollapseContainer :class="`${prefixCls}-top__team`" title="团队" :canExpan="false">
<div v-for="(team, index) in teams" :key="index" :class="`${prefixCls}-top__team-item`"> <div v-for="(team, index) in teams" :key="index" :class="`${prefixCls}-top__team-item`">
<Icon :icon="team.icon" :color="team.color" /> <Icon :icon="team.icon" :color="team.color"/>
<span>{{ team.title }}</span> <span>{{ team.title }}</span>
</div> </div>
</CollapseContainer> </CollapseContainer>
@ -44,7 +44,7 @@
<Tabs> <Tabs>
<template v-for="item in achieveList" :key="item.key"> <template v-for="item in achieveList" :key="item.key">
<TabPane :tab="item.name"> <TabPane :tab="item.name">
<component :is="item.component" /> <component :is="item.component"/>
</TabPane> </TabPane>
</template> </template>
</Tabs> </Tabs>

Loading…
Cancel
Save