From 265094e88f2233cc71244e354a55b33a4477ae5c Mon Sep 17 00:00:00 2001 From: Young Date: Tue, 23 Jan 2018 16:06:49 +0800 Subject: [PATCH] =?UTF-8?q?pane=E4=B8=AD=E5=9C=A8beforeinit=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E5=8A=A0=E5=85=A5loading=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/base.js | 10 ++++++++++ dist/bundle.js | 10 ++++++++++ dist/fineui.js | 10 ++++++++++ src/base/pane.js | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/dist/base.js b/dist/base.js index 16cc38d65..8ab402101 100644 --- a/dist/base.js +++ b/dist/base.js @@ -224,6 +224,16 @@ BI.Pane = BI.inherit(BI.Widget, { _init: function () { BI.Pane.superclass._init.apply(this, arguments); + if (this.beforeInit) { + this.loading(); + } + }, + + _render: function () { + BI.Pane.superclass._render.apply(this, arguments); + if (this.beforeInit) { + this.loaded(); + } }, _assertTip: function () { diff --git a/dist/bundle.js b/dist/bundle.js index edafe8f2c..97f2d91f0 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -26218,6 +26218,16 @@ BI.Pane = BI.inherit(BI.Widget, { _init: function () { BI.Pane.superclass._init.apply(this, arguments); + if (this.beforeInit) { + this.loading(); + } + }, + + _render: function () { + BI.Pane.superclass._render.apply(this, arguments); + if (this.beforeInit) { + this.loaded(); + } }, _assertTip: function () { diff --git a/dist/fineui.js b/dist/fineui.js index 996ed9a14..a984561c9 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -27972,6 +27972,16 @@ BI.Pane = BI.inherit(BI.Widget, { _init: function () { BI.Pane.superclass._init.apply(this, arguments); + if (this.beforeInit) { + this.loading(); + } + }, + + _render: function () { + BI.Pane.superclass._render.apply(this, arguments); + if (this.beforeInit) { + this.loaded(); + } }, _assertTip: function () { diff --git a/src/base/pane.js b/src/base/pane.js index d540bf2e0..adfe3f966 100644 --- a/src/base/pane.js +++ b/src/base/pane.js @@ -19,6 +19,16 @@ BI.Pane = BI.inherit(BI.Widget, { _init: function () { BI.Pane.superclass._init.apply(this, arguments); + if (this.beforeInit) { + this.loading(); + } + }, + + _render: function () { + BI.Pane.superclass._render.apply(this, arguments); + if (this.beforeInit) { + this.loaded(); + } }, _assertTip: function () {