From 662c3f9ac36c733f3bbff9f670f9f4f2763e0a6d Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 20 Oct 2021 19:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E6=94=B9?= =?UTF-8?q?=E4=B8=8B=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.compact.js | 2 +- src/core/4.widget.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index c57c525ec..fc7d7dfff 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -183,7 +183,7 @@ delete this.__cacheStore; }; - _.each(["_rendered", "_mount", "__afterMount"], function (name) { + _.each(["_afterRender", "_mount", "__afterMount"], function (name) { var old = BI.Widget.prototype[name]; old && (BI.Widget.prototype[name] = function () { this.store && pushTarget(this.store); diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 00029c375..94a2fe6e8 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -128,7 +128,7 @@ } renderCallbackCalled = true; self._render(); - self._rendered(); + self._afterRender(); self.__async = false; } @@ -137,7 +137,7 @@ (self.options.beforeRender || self.beforeRender).call(self, render); } else { self._render(); - self._rendered(); + self._afterRender(); } } @@ -149,7 +149,7 @@ } }, - _rendered: function () { + _afterRender: function () { pushTarget(this); this.__async === true && this._isMounted && callLifeHook(this, "beforeMount"); this._mount();