mirror of https://github.com/layui/layui
更新 layer 示例
parent
cb9d9d4acd
commit
81bab8942f
|
@ -145,8 +145,8 @@ layui.use(['layer', 'util'], function(layer, util){
|
||||||
content: $('#test11111'),
|
content: $('#test11111'),
|
||||||
maxmin: true,
|
maxmin: true,
|
||||||
shade: false,
|
shade: false,
|
||||||
minStack: false, //最小化不堆叠在左下角
|
minStack: false, // 最小化不堆叠在左下角
|
||||||
id: 'page1', //定义 ID,防止重复弹出
|
id: 'page-1', // 定义 ID,防止重复弹出
|
||||||
min: function(layero, index){
|
min: function(layero, index){
|
||||||
layer.msg('阻止了默认的最小化');
|
layer.msg('阻止了默认的最小化');
|
||||||
layer.style(index, {top: 'auto', bottom: 0});
|
layer.style(index, {top: 'auto', bottom: 0});
|
||||||
|
@ -156,10 +156,12 @@ layui.use(['layer', 'util'], function(layer, util){
|
||||||
}
|
}
|
||||||
,test6: function(){
|
,test6: function(){
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2
|
type: 2,
|
||||||
,content: 'https://www.aliyun.com/activity?userCode=ap0255is'
|
content: 'https://www.aliyun.com/activity?userCode=ap0255is',
|
||||||
,area: ['375px', '500px']
|
area: ['375px', '500px'],
|
||||||
,maxmin: true
|
id: 'iframe-1',
|
||||||
|
hideOnClose: true, // 关闭时是否隐藏弹层容器,下次打开时直接显示原来的弹层
|
||||||
|
maxmin: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
,testLoading: function(){
|
,testLoading: function(){
|
||||||
|
|
Loading…
Reference in New Issue