From c431eaece114af488ff53a0b335f12019cb94b72 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Tue, 25 Jun 2019 23:05:31 +0800 Subject: [PATCH] =?UTF-8?q?layer=E5=9B=BD=E9=99=85=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BC=98=E5=8C=96?= 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 | 4 ++-- 1 file changed, 2 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 cca8c162..b8a2130e 100644 --- a/common/src/main/resources/static/layer/3.1/layer.js +++ b/common/src/main/resources/static/layer/3.1/layer.js @@ -193,7 +193,7 @@ Class.pt.config = { shade: 0.3, fixed: true, move: doms[1], - title: layer.i18n.title, + title: function(){return layer.i18n.title}, offset: 'auto', area: 'auto', closeBtn: 1, @@ -215,7 +215,7 @@ Class.pt.vessel = function(conType, callback){ var zIndex = config.zIndex + times, titype = typeof config.title === 'object'; var ismax = config.maxmin && (config.type === 1 || config.type === 2); var titleHTML = (config.title ? '
' - + (titype ? config.title[0] : layer.i18n.title) + + (titype ? config.title[0] : (typeof config.title === 'function' ? config.title() : config.title)) + '
' : ''); config.zIndex = zIndex;