mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
60 lines
1.4 KiB
Vue
60 lines
1.4 KiB
Vue
<template>
|
|
<CollapseContainer title="账号绑定" :canExpan="false">
|
|
<List>
|
|
<template v-for="item in list" :key="item.key">
|
|
<ListItem>
|
|
<ListItemMeta>
|
|
<template #avatar>
|
|
<Icon v-if="item.avatar" class="avatar" :icon="item.avatar" :color="item.color" />
|
|
</template>
|
|
<template #title>
|
|
{{ item.title }}
|
|
<div v-if="item.extra" class="extra"> {{ item.extra }} </div>
|
|
</template>
|
|
<template #description>
|
|
<div>{{ item.description }} </div>
|
|
</template>
|
|
</ListItemMeta>
|
|
</ListItem>
|
|
</template>
|
|
</List>
|
|
</CollapseContainer>
|
|
</template>
|
|
<script lang="ts">
|
|
import { List } from 'ant-design-vue';
|
|
import { defineComponent, onMounted } from 'vue';
|
|
import { CollapseContainer } from '/@/components/Container/index';
|
|
import Icon from '/@/components/Icon/index';
|
|
|
|
import { accountBindList } from './data';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
CollapseContainer,
|
|
List,
|
|
ListItem: List.Item,
|
|
ListItemMeta: List.Item.Meta,
|
|
Icon,
|
|
},
|
|
setup() {
|
|
return {
|
|
list: accountBindList,
|
|
};
|
|
},
|
|
});
|
|
</script>
|
|
<style lang="less" scoped>
|
|
.avatar {
|
|
font-size: 40px !important;
|
|
}
|
|
|
|
.extra {
|
|
float: right;
|
|
margin-top: 10px;
|
|
margin-right: 30px;
|
|
font-weight: normal;
|
|
color: #1890ff;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|