From 2dde6aa8e746a2ac2e33f8865fe4f2a4995c97e7 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Thu, 30 Dec 2021 23:20:34 +0800 Subject: [PATCH] =?UTF-8?q?layer.msg=20=E5=8A=A0=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= 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 | 6 ++++-- 1 file changed, 4 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 26b50d73..12898711 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 @@ -141,9 +141,11 @@ var layer = { }, type ? {} : options)); }, - msg: function(content, options, end){ //最常用提示层 + //最常用提示层 + msg: function(content, options, end){ var type = typeof options === 'function', rskin = ready.config.skin; var skin = (rskin ? rskin + ' ' + rskin + '-msg' : '')||'layui-layer-msg'; + options = options || {}; skin = skin + ' ' + (options.positionClass || ''); var anim = doms.anim.length - 1; if(type) end = options;