doc(loading-bar): chinese

This commit is contained in:
07akioni 2020-01-29 21:53:48 +08:00
parent eb6050f8fb
commit 15391d1115
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# 基础用法
```html
<n-button @click="handleStart">
开始
</n-button>
<n-button @click="handleFinish">
结束
</n-button>
<n-button @click="handleError">
报个错
</n-button>
```
```js
export default {
methods: {
handleStart() {
this.$NLoadingBar.start();
},
handleFinish() {
this.$NLoadingBar.finish();
},
handleError() {
this.$NLoadingBar.error();
}
}
};
```
```css
.n-button {
margin: 0 12px 8px 0;
}
```

View File

@ -0,0 +1,13 @@
# Loading Bar 加载条
焦虑的安慰剂,疗效尚可。
## 例子
```demo
basic
```
## API
### $NLoadingBar
|方法|介绍|
|-|-|
|`start()`||
|`finish()`||
|`error()`||