mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
doc(loading-bar): chinese
This commit is contained in:
parent
eb6050f8fb
commit
15391d1115
32
demo/documentation/components/loadingBar/zhCN/basic.md
Normal file
32
demo/documentation/components/loadingBar/zhCN/basic.md
Normal 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;
|
||||
}
|
||||
```
|
@ -0,0 +1,13 @@
|
||||
# Loading Bar 加载条
|
||||
焦虑的安慰剂,疗效尚可。
|
||||
## 例子
|
||||
```demo
|
||||
basic
|
||||
```
|
||||
## API
|
||||
### $NLoadingBar
|
||||
|方法|介绍|
|
||||
|-|-|
|
||||
|`start()`||
|
||||
|`finish()`||
|
||||
|`error()`||
|
Loading…
Reference in New Issue
Block a user