doc(statistic): zh-cn

This commit is contained in:
07akioni 2020-02-04 10:47:48 +08:00
parent 6f0223df6f
commit 99f6175e9a
3 changed files with 49 additions and 1 deletions

View File

@ -5,7 +5,7 @@ As simple as it looks.
basic
```
## Props
|Property|Type|Default|Description|
|Name|Type|Default|Description|
|-|-|-|-|
|label|`string`|`null`||
|value|`string`|`null`||

View File

@ -0,0 +1,31 @@
# 基础用法
```html
<n-row>
<n-col :span="12">
<n-statistic label="统计数据" :value="99">
<template v-slot:prefix>
<n-icon>
<md-save/>
</n-icon>
</template>
<template v-slot:suffix>
/ 100
</template>
</n-statistic>
</n-col>
<n-col :span="12">
<n-statistic label="活跃用户" value="1,234,123">
</n-statistic>
</n-col>
</n-row>
```
```js
import mdSave from 'naive-ui/lib/icons/md-save'
export default {
components: {
mdSave
}
}
```

View File

@ -0,0 +1,17 @@
# Statistic
和它看起来一样简单。
## 演示
```demo
basic
```
## Props
|名称|类型|默认值|介绍|
|-|-|-|-|
|label|`string`|`null`||
|value|`string`|`null`||
## Slots
|名称|参数|介绍|
|-|-|-|
|suffix|`()`||
|prefix|`()`||