From e3333e7910857a9874d7eebee5136ee3cc3d47fe Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 2 Apr 2021 16:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E4=B8=A5?= =?UTF-8?q?=E6=A0=BC=E6=8C=89=E7=85=A7beforemount=20render=20mounted?= =?UTF-8?q?=E7=9A=84=E9=A1=BA=E5=BA=8F=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index e85eefe80..8655b8ef9 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -221,7 +221,10 @@ } this._mount(); - this.__async === true && isMounted && callLifeHook(this, "mounted"); + if (this.__async === true && isMounted) { + callLifeHook(this, "mounted"); + this.fireEvent(BI.Events.MOUNT); + } }, _setParent: function (parent) {