更新 layer 示例

pull/1253/head
贤心 2023-05-14 19:32:06 +08:00
parent cb9d9d4acd
commit 81bab8942f
1 changed files with 8 additions and 6 deletions

View File

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