Browse Source

生命周期严格按照beforemount render mounted的顺序执行

es6
guy 4 years ago
parent
commit
e3333e7910
  1. 5
      src/core/4.widget.js

5
src/core/4.widget.js

@ -221,7 +221,10 @@
} }
this._mount(); 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) { _setParent: function (parent) {

Loading…
Cancel
Save