2021-03-12 07:48:30 +00:00
|
|
|
|
<script>
|
|
|
|
|
import Basic from './basic';
|
|
|
|
|
import Badge from './badge';
|
|
|
|
|
import Type from './type';
|
|
|
|
|
import Dynamic from './dynamic';
|
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
|
|
|
|
|
|
|
|
|
const md = {
|
2021-07-30 23:40:55 +00:00
|
|
|
|
cn: `# Avatar 头像
|
2021-03-12 07:48:30 +00:00
|
|
|
|
用来代表用户或事物,支持图片、图标或字符展示。
|
|
|
|
|
## 设计师专属
|
|
|
|
|
安装 [Kitchen Sketch 插件 <EFBFBD>](https://kitchen.alipay.com),一键填充高逼格头像和文本.
|
|
|
|
|
|
|
|
|
|
## 代码演示`,
|
|
|
|
|
us: `# Avatar
|
|
|
|
|
Avatars can be used to represent people or objects. It supports images, 'Icon's, or letters.
|
|
|
|
|
## Examples
|
|
|
|
|
`,
|
|
|
|
|
};
|
|
|
|
|
export default {
|
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '头像',
|
|
|
|
|
type: 'Data Display',
|
|
|
|
|
zhType: '数据展示',
|
|
|
|
|
title: 'Avatar',
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<md cn={md.cn} us={md.us} />
|
|
|
|
|
<demo-sort>
|
|
|
|
|
<Basic />
|
|
|
|
|
<Badge />
|
|
|
|
|
<Type />
|
|
|
|
|
<Dynamic />
|
|
|
|
|
</demo-sort>
|
|
|
|
|
<api>
|
|
|
|
|
<template slot="cn">
|
|
|
|
|
<CN />
|
|
|
|
|
</template>
|
|
|
|
|
<US />
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|