mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
doc(statistic): zh-cn
This commit is contained in:
parent
6f0223df6f
commit
99f6175e9a
@ -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`||
|
||||
|
31
demo/documentation/components/statistic/zhCN/basic.md
Normal file
31
demo/documentation/components/statistic/zhCN/basic.md
Normal 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
|
||||
}
|
||||
}
|
||||
```
|
@ -0,0 +1,17 @@
|
||||
# Statistic
|
||||
和它看起来一样简单。
|
||||
## 演示
|
||||
```demo
|
||||
basic
|
||||
```
|
||||
## Props
|
||||
|名称|类型|默认值|介绍|
|
||||
|-|-|-|-|
|
||||
|label|`string`|`null`||
|
||||
|value|`string`|`null`||
|
||||
|
||||
## Slots
|
||||
|名称|参数|介绍|
|
||||
|-|-|-|
|
||||
|suffix|`()`||
|
||||
|prefix|`()`||
|
Loading…
Reference in New Issue
Block a user