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/no-wrapper.md

21 lines
485 B

7 years ago
<cn>
#### 独立使用
不包裹任何元素即是独立使用,可自定样式展现。
在右上角的 badge 则限定为红色。
</cn>
<us>
#### Standalone
Used in standalone when children is empty.
</us>
```html
<template>
<div>
<a-badge count="25" />
<a-badge count="4" :numberStyle="{backgroundColor: '#fff', color: '#999', boxShadow: '0 0 0 1px #d9d9d9 inset'}" />
<a-badge count="109" :numberStyle= "{backgroundColor: '#52c41a'} " />
7 years ago
</div>
</template>
```