From 3dbbf1deee07aad8c669c39ed7ed0ebf541f76f6 Mon Sep 17 00:00:00 2001 From: dailer Date: Fri, 8 Oct 2021 13:51:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?DEC-20930=20fix:=20=E3=80=90=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E3=80=91=E5=B9=B3=E5=8F=B0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E5=93=81=E7=89=8C=E4=BF=A1=E6=81=AF=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bi.a用render,父类的BI.Text render就失效了 --- src/base/single/a/a.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/single/a/a.js b/src/base/single/a/a.js index a4192db03..a227bccb1 100644 --- a/src/base/single/a/a.js +++ b/src/base/single/a/a.js @@ -18,8 +18,9 @@ BI.A = BI.inherit(BI.Text, { }); }, - render: function () { + _init: function () { var o = this.options; + BI.A.superclass._init.apply(this, arguments); this.element.attr({href: o.href, target: o.target}); if (o.el) { BI.createWidget(o.el, { From 1eaa9f5110dba8c6fc1cc7a86b081f5ff36a4a8b Mon Sep 17 00:00:00 2001 From: dailer Date: Sat, 9 Oct 2021 09:23:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?DEC-20930=20fix:=20=E3=80=90=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E3=80=91=E5=B9=B3=E5=8F=B0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E5=93=81=E7=89=8C=E4=BF=A1=E6=81=AF=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/a/a.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/single/a/a.js b/src/base/single/a/a.js index a227bccb1..2bab1ea6d 100644 --- a/src/base/single/a/a.js +++ b/src/base/single/a/a.js @@ -18,9 +18,9 @@ BI.A = BI.inherit(BI.Text, { }); }, - _init: function () { + render: function () { var o = this.options; - BI.A.superclass._init.apply(this, arguments); + BI.A.superclass.render.apply(this, arguments); this.element.attr({href: o.href, target: o.target}); if (o.el) { BI.createWidget(o.el, {