blue-layer
v1.0.10
Published
blue-layer in vue layer component
Downloads
3
Readme
blueLayer
methods
blueLayer.msg(opts)
opts:Object:{content[,icon]}
content: tip msg string
icon: 1 => 'error' , 2 => 'success' , undefined => 'default';
blueLayer.msg({
content:'tip msg'
});
blueLayer.msg({
icon:1,
content:'tip success icon msg'
});
blueLayer.msg({
icon:2,
content:'tip error icon msg'
});
blueLayer.open(opts)
opts:Object:{(url||content),area:['500px','500px'],title:'string' || false,[,shade]}
url: 'url string'
content: 'dom string'
area: ['500px','10%']
title: 'string' || false
shade:true || false
type: 1 (default) => 'window'; 2 => 'bottom window';
blueLayer.open({
content:'<div>dom string</div>',
area:['400px','200px'],
shade:false,
title:false
});
blueLayer.open({
url:'http://baidu.com',
shade:true,
title:'title value'
});
blueLayer.load()
return layer id;
blueLayer.close(id,timer)
id: layer.id
timer: 1500 (ms)
blueLayer.closeAll()
close all layer