You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/badge/demo/index.vue

60 lines
1.5 KiB

<script>
import Basic from './basic.md'
import NoWapper from './no-wrapper'
import Dot from './dot'
import Change from './change'
import Overflow from './overflow'
import Status from './status'
import CN from './../index.zh-CN.md'
import US from './../index.en_US.md'
const md = {
cn: `# Badge徽标数
图标右上角的圆形徽标数字。
## 何时使用
一般出现在通知图标或头像的右上角,用于显示需要处理的消息条数,通过醒目视觉形式吸引用户处理。
## 代码演示
`,
us: `# Badge
Small numerical value or status descriptor for UI elements.
## When To Use
Badge normally appears in proximity to notifications or user avatars with eye-catching appeal, typically displaying unread messages count.
## Examples
`,
}
export default {
render () {
return (
<div id='components-badge-demo'>
<md cn={md.cn} us={md.us} />
<Basic />
<NoWapper />
<Overflow />
<Dot />
<Status />
<Change />
<api>
<CN slot='cn' />
<US />
</api>
</div>
)
},
}
</script>
<style>
#components-badge-demo .ant-badge:not(.ant-badge-status) {
margin-right: 20px;
}
#components-badge-demo .head-example {
width: 42px;
height: 42px;
border-radius: 4px;
background: #eee;
display: inline-block;
}
</style>