Yao d331b69b0c
[Doc] 更新文档网站 (#204)
* 修改组件 readme

* remove empty line
2018-04-28 12:06:39 +08:00

28 lines
806 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 加载
### 使用指南
在 index.json 中引入组件
```json
{
...
"usingComponents": {
"zan-loading": "../../dist/loading/index"
}
...
}
```
在页面上直接使用 zan-loading 标签即可
```html
<zan-loading type="circle"></zan-loading>
<zan-loading type="spinner" color="black"></zan-loading>
<zan-loading type="dot"></zan-loading>
```
### 具体参数
| 名称 | 类型 | 是否必须 | 默认 | 描述 |
| ------- | --------------- | -------- | ----- | ----------------- |
| type | String | 否 | circle | loading 类型,可支持 circlespinnerdot |
| color | String | 否 | 无 | 可选值 black |
| use | StringNumber | 否 | 1 | 选择每种 Loading 类型的样式 |