-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
557 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<template> | ||
<List :class="prefixCls"> | ||
<Row :gutter="16"> | ||
<template v-for="(item, index) in list" :key="index"> | ||
<Col :span="6"> | ||
<ListItem> | ||
<Card :hoverable="true" :class="`${prefixCls}__card`"> | ||
<div :class="`${prefixCls}__card-title`"> | ||
<Icon class="icon" v-if="item.icon" :icon="item.icon" :color="item.color" /> | ||
{{ item.title }} | ||
</div> | ||
<div :class="`${prefixCls}__card-num`"> | ||
活跃用户:<span>{{ item.active }}</span> 万 | ||
</div> | ||
<div :class="`${prefixCls}__card-num`"> | ||
新增用户:<span>{{ item.new }}</span> | ||
</div> | ||
<Icon | ||
:class="`${prefixCls}__card-download`" | ||
v-if="item.download" | ||
:icon="item.download" | ||
/> | ||
</Card> | ||
</ListItem> | ||
</Col> | ||
</template> | ||
</Row> | ||
</List> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { List, Card, Row, Col } from 'ant-design-vue'; | ||
import Icon from '/@/components/Icon/index'; | ||
import { applicationList } from './data'; | ||
export default defineComponent({ | ||
components: { | ||
List, | ||
ListItem: List.Item, | ||
Card, | ||
Row, | ||
Col, | ||
Icon, | ||
}, | ||
setup() { | ||
return { | ||
prefixCls: 'account-center-application', | ||
list: applicationList, | ||
}; | ||
}, | ||
}); | ||
</script> | ||
<style lang="less" scoped> | ||
.account-center-application { | ||
&__card { | ||
width: 100%; | ||
/deep/ .ant-card-body { | ||
padding: 16px; | ||
} | ||
&-title { | ||
margin-bottom: 5px; | ||
font-size: 16px; | ||
font-weight: 500; | ||
color: rgba(0, 0, 0, 0.85); | ||
.icon { | ||
margin-top: -5px; | ||
font-size: 22px; | ||
} | ||
} | ||
&-num { | ||
margin-left: 24px; | ||
line-height: 36px; | ||
color: #7d7a7a; | ||
span { | ||
margin-left: 5px; | ||
font-size: 18px; | ||
color: #000; | ||
} | ||
} | ||
&-download { | ||
float: right; | ||
font-size: 20px !important; | ||
color: #1890ff; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<template> | ||
<List item-layout="vertical" :class="prefixCls"> | ||
<template v-for="(item, index) in list" :key="index"> | ||
<ListItem> | ||
<ListItemMeta> | ||
<template #description> | ||
<div :class="`${prefixCls}__content`">{{ item.content }}</div> | ||
</template> | ||
<template #title> | ||
<p :class="`${prefixCls}__title`"> {{ item.title }}</p> | ||
<div> | ||
<template v-for="(tag, index) in item.description" :key="index"> | ||
<Tag class="mb-2">{{ tag }}</Tag> | ||
</template> | ||
</div> | ||
</template> | ||
</ListItemMeta> | ||
<div> | ||
<template v-for="(action, index) in actions" :key="index"> | ||
<div :class="`${prefixCls}__action`"> | ||
<Icon | ||
v-if="action.icon" | ||
:class="`${prefixCls}__action-icon`" | ||
:icon="action.icon" | ||
:color="action.color" | ||
/> | ||
{{ action.text }} | ||
</div> | ||
</template> | ||
<span :class="`${prefixCls}__time`">{{ item.time }}</span> | ||
</div> | ||
</ListItem> | ||
</template> | ||
</List> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { List, Tag } from 'ant-design-vue'; | ||
import Icon from '/@/components/Icon/index'; | ||
import { actions, articleList } from './data'; | ||
export default defineComponent({ | ||
components: { | ||
List, | ||
ListItem: List.Item, | ||
ListItemMeta: List.Item.Meta, | ||
Tag, | ||
Icon, | ||
}, | ||
setup() { | ||
return { | ||
prefixCls: 'account-center-article', | ||
list: articleList, | ||
actions, | ||
}; | ||
}, | ||
}); | ||
</script> | ||
<style lang="less" scoped> | ||
.account-center-article { | ||
&__title { | ||
margin-bottom: 12px; | ||
font-size: 18px; | ||
} | ||
&__content { | ||
color: rgba(0, 0, 0, 0.65); | ||
} | ||
&__action { | ||
display: inline-block; | ||
padding: 0 16px; | ||
color: rgba(0, 0, 0, 0.45); | ||
&:not(:last-child) { | ||
border-right: 1px solid rgba(206, 206, 206, 0.4); | ||
} | ||
&-icon { | ||
margin-right: 3px; | ||
} | ||
} | ||
&__time { | ||
position: absolute; | ||
right: 20px; | ||
color: rgba(0, 0, 0, 0.45); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<template> | ||
<List :class="prefixCls"> | ||
<Row :gutter="16"> | ||
<template v-for="(item, index) in list" :key="index"> | ||
<Col :span="6"> | ||
<ListItem> | ||
<Card :hoverable="true" :class="`${prefixCls}__card`"> | ||
<img :src="demoImg" /> | ||
<div :class="`${prefixCls}__card-title`"> | ||
{{ item.title }} | ||
</div> | ||
<div :class="`${prefixCls}__card-content`"> {{ item.content }}</div> | ||
</Card> | ||
</ListItem> | ||
</Col> | ||
</template> | ||
</Row> | ||
</List> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { List, Card, Row, Col } from 'ant-design-vue'; | ||
import demoImg from '/@/assets/images/demo.png'; | ||
import { projectList } from './data'; | ||
export default defineComponent({ | ||
components: { | ||
List, | ||
ListItem: List.Item, | ||
Card, | ||
Row, | ||
Col, | ||
}, | ||
setup() { | ||
return { | ||
prefixCls: 'account-center-project', | ||
list: projectList, | ||
demoImg, | ||
}; | ||
}, | ||
}); | ||
</script> | ||
<style lang="less" scoped> | ||
.account-center-project { | ||
&__card { | ||
width: 100%; | ||
/deep/ .ant-card-body { | ||
padding: 0 0 24px 0; | ||
} | ||
img { | ||
width: 100%; | ||
height: 100px; | ||
} | ||
&-title { | ||
margin: 5px 10px; | ||
font-size: 16px; | ||
font-weight: 500; | ||
color: rgba(0, 0, 0, 0.85); | ||
} | ||
&-content { | ||
margin: 5px 10px; | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.