1.0.10 • Published 6 years ago

blue-layer v1.0.10

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago