若依框架详情弹窗默认最大
在ry-ui当中,模仿addFull和detail写一个detailFull方法。
添加
var index = layer.open({
type: 2,
Boolean:true,
title: '编辑',
maxmin: true,//此处需开启
area: [_width+'px',_height+'px'],
content: _url
});
layer.full(index);//这句话需写
layer框架宽度自动调整
//单参
function getByType(){
var width=$(document.body).width();
actions.push('<a class="btn '+ viewFlag +'" href="javascript:void(0)" οnclick="$.operate.detail(\''+row.id+'\')">查看详情</a>')
return actions.join('');
}
//多参
function getByType(){
var width=$(document.body).width();
actions.push('<a class="btn '+ viewFlag +'" href="javascript:void(0)" οnclick="$.operate.detail(\''+row.id+'\',\''+width+'\')">查看详情</a>')
return actions.join('');
}