ant-design-vue/components/statistic/demo/unit.md

39 lines
688 B
Markdown

<cn>
#### å•ä―
通čŋ‡å‰įž€å’ŒåŽįž€æ·ŧåŠ å•ä―ã€‚
</cn>
<us>
#### Unit
Add unit through `prefix` and `suffix`.
</us>
```html
<template>
<a-row :gutter="16">
<a-col :span="12">
<a-statistic
title="Feedback"
:value="1128"
style="margin-right: 50px"
>
<template v-slot:suffix>
<a-icon type="like" />
</template>
</a-statistic>
</a-col>
<a-col :span="12">
<a-statistic
title="Unmerged"
:value="93"
valueClass="demo-class"
>
<template v-slot:suffix>
<span> / 100</span>
</template>
</a-statistic>
</a-col>
</a-row>
</template>
```