diff --git a/common/src/main/resources/static/layer/3.1/layer.js b/common/src/main/resources/static/layer/3.1/layer.js index 9becb2e5..26b50d73 100644 --- a/common/src/main/resources/static/layer/3.1/layer.js +++ b/common/src/main/resources/static/layer/3.1/layer.js @@ -1,4 +1,4 @@ -/** +/** @Name:layer v3.1.1 Web弹层组件 @Author:贤心 @Site:http://layer.layui.com @@ -144,6 +144,7 @@ var layer = { msg: function(content, options, end){ //最常用提示层 var type = typeof options === 'function', rskin = ready.config.skin; var skin = (rskin ? rskin + ' ' + rskin + '-msg' : '')||'layui-layer-msg'; + skin = skin + ' ' + (options.positionClass || ''); var anim = doms.anim.length - 1; if(type) end = options; return layer.open($.extend({ @@ -152,7 +153,7 @@ var layer = { shade: false, skin: skin, title: false, - closeBtn: false, + closeBtn: options.time && options.time >= 5000 || false, btn: false, resize: false, end: end