32 lines
535 B
Vue
32 lines
535 B
Vue
<docs>
|
||
---
|
||
order: 1
|
||
title:
|
||
zh-CN: 独立使用
|
||
en-US: Standalone
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
不包裹任何元素即是独立使用,可自定样式展现。
|
||
在右上角的 badge 则限定为红色。
|
||
|
||
## en-US
|
||
|
||
Used in standalone when children is empty.
|
||
|
||
</docs>
|
||
|
||
<template>
|
||
<a-badge count="25" />
|
||
<a-badge
|
||
count="4"
|
||
:number-style="{
|
||
backgroundColor: '#fff',
|
||
color: '#999',
|
||
boxShadow: '0 0 0 1px #d9d9d9 inset',
|
||
}"
|
||
/>
|
||
<a-badge count="109" :number-style="{ backgroundColor: '#52c41a' }" />
|
||
</template>
|