From 9866b0149f68688190a880fd77b9a7f125e4bc3c Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Thu, 3 Mar 2022 16:18:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BI-95364=20fix=EF=BC=9Atrigger.text?= =?UTF-8?q?=E4=BC=A0=E5=85=A5title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/trigger/trigger.text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/case/trigger/trigger.text.js b/src/case/trigger/trigger.text.js index 4c7c13937..ace4e0d41 100644 --- a/src/case/trigger/trigger.text.js +++ b/src/case/trigger/trigger.text.js @@ -28,7 +28,7 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { textAlign: "left", height: o.height, text: o.text, - title: function () { + title: o.title || function () { return self.text.getText(); }, tipType: o.tipType, From ab9eb454117f179b01bdcac7a03f4bf3220024f0 Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Fri, 4 Mar 2022 11:40:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BI-95364=20fix=EF=BC=9Atrigger.text?= =?UTF-8?q?=E7=9A=84title=E4=B8=8D=E4=BC=A0=E7=BB=99=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=9A=84label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/trigger/trigger.text.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/case/trigger/trigger.text.js b/src/case/trigger/trigger.text.js index ace4e0d41..eb9c7c937 100644 --- a/src/case/trigger/trigger.text.js +++ b/src/case/trigger/trigger.text.js @@ -11,11 +11,15 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { }, _defaultConfig: function () { + var self = this; var conf = BI.TextTrigger.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { baseCls: (conf.baseCls || "") + " bi-text-trigger", height: 24, - textCls: "" + textCls: "", + title: function () { + return self.text.getText(); + } }); }, @@ -28,9 +32,6 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { textAlign: "left", height: o.height, text: o.text, - title: o.title || function () { - return self.text.getText(); - }, tipType: o.tipType, warningTitle: o.warningTitle, hgap: c.hgap,