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

34 lines
571 B
Markdown
Raw Normal View History

2019-05-25 09:18:04 +00:00
<cn>
#### 单位
通过前缀和后缀添加单位。
</cn>
<us>
#### Unit
Add unit through `prefix` and `suffix`.
</us>
```html
<template>
<div>
<a-statistic
title="Feedback"
:value="11.28"
:precision="2"
suffix="%"
:valueStyle="{color: '#3f8600'}"
style="margin-right: 50px"
>
<a-icon slot="prefix" type="arrow-up" />
</a-statistic>
<a-statistic
title="Unmerged"
:value="78"
valueClass="demo-class"
>
<span slot="suffix"> / 100</span>
</a-statistic>
</div>
</template>
```