预览截图
组件说明
loading([option])
loading控件
Kind: global function
Param | Type | Description |
---|---|---|
[option] | object | |
[option.title] | string | 标题名称? 默认: "laoding组件" |
[option.progress] | number | 完成度 默认:Math.random() |
[option.background] | string | 背景颜色, 默认:rgb(33,48,76) |
[option.width] | string | 控件宽度, 默认:100% |
[option.height] | string | 控件高度, 默认:100% |
Example
示例1:
<component id="comploading" name="pages/components/loading/index" progress="0.5"></component>
示例2:
<component id="comploading" name="pages/components/loading/index" delay="true"></component>
loader.delay({
id:"#tab1",
param:{
progress:0.5
}
});
发表评论 取消回复