From 2877f5f7c086b72a67ae9bfe94826df870158bd7 Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 6 Sep 2022 14:02:33 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"KERNEL-12609=20fix:=20From=20FDL=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF=E5=9C=BA?= =?UTF-8?q?=E6=99=AF,label=E9=BB=98=E8=AE=A4=E5=B8=A6=E6=9C=89tooltip?= =?UTF-8?q?=E9=80=BB=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 This reverts commit d09bd2e3d936a884169937a69631f9b8d1b54f9d. --- src/base/single/tip/tip.tooltip.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index 0357530e8..70c710497 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -25,12 +25,10 @@ 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, @@ -50,7 +48,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { innerVgap: this._const.vgap, items: BI.map(texts, function (i, text) { return { - type: "bi.text", + type: "bi.label", textAlign: o.textAlign, whiteSpace: "normal", text: text, @@ -60,7 +58,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { }); } else { this.text = BI.createWidget({ - type: "bi.text", + type: "bi.label", element: this, textAlign: o.textAlign, whiteSpace: "normal",