From 8ab378dff100c3d2c619996c9460657d2bd02b3c Mon Sep 17 00:00:00 2001 From: jeesite Date: Tue, 14 Dec 2021 16:44:16 +0800 Subject: [PATCH] =?UTF-8?q?layer=E4=BC=98=E5=8C=96msg=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=EF=BC=8C=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E6=AF=94=E8=BE=83?= =?UTF-8?q?=E9=95=BF=E7=9A=84=E5=8A=A0=E5=85=B3=E9=97=AD=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=85=A8=E5=B1=8F=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E5=A2=9E=E5=AE=BD=E6=98=BE=E7=A4=BA=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/resources/static/layer/3.1/layer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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