From d09bd2e3d936a884169937a69631f9b8d1b54f9d Mon Sep 17 00:00:00 2001 From: zsmj Date: Wed, 31 Aug 2022 17:38:33 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-12609=20fix:=20From=20FDL=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF=E5=9C=BA=E6=99=AF?= =?UTF-8?q?,label=E9=BB=98=E8=AE=A4=E5=B8=A6=E6=9C=89tooltip=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=AF=BC=E8=87=B4=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/tip/tip.tooltip.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index 70c710497..0357530e8 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -25,10 +25,12 @@ BI.Tooltip = BI.inherit(BI.Tip, { render: function () { var o = this.options; this.element.addClass("tooltip-" + o.level); + function fn(e) { o.stopPropagation && e.stopPropagation(); o.stopEvent && e.stopEvent(); } + this.element.bind({ click: fn, mousedown: fn, @@ -48,7 +50,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { innerVgap: this._const.vgap, items: BI.map(texts, function (i, text) { return { - type: "bi.label", + type: "bi.text", textAlign: o.textAlign, whiteSpace: "normal", text: text, @@ -58,7 +60,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { }); } else { this.text = BI.createWidget({ - type: "bi.label", + type: "bi.text", element: this, textAlign: o.textAlign, whiteSpace: "normal",