刘建东 1164d312f6 [refactor] Loading 组件升级 (#178)
* refactor: loading

* fix: modify api
2018-04-15 11:25:26 +08:00

28 lines
721 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Loading 加载
### 属性
| 名称 | 类型 | 是否必须 | 默认 | 描述 |
| ------- | --------------- | -------- | ----- | ----------------- |
| type | String | 否 | circle | loading 类型,可支持 circlespinnerdot |
| color | String | 否 | 无 | 可选值 black |
| use | StringNumber | 否 | 1 | 选择每种 Loading 类型的样式 |
### 代码演示
```json
{
...
"usingComponents": {
"zan-loading": "../../dist/loading/index"
}
...
}
```
```html
<zan-loading type="circle"></zan-loading>
<zan-loading type="spinner" color="black"></zan-loading>
<zan-loading type="dot"></zan-loading>
```