Browse Source

update

master
Young 6 years ago
parent
commit
d4daee240e
  1. 2
      demo/js/config/demo.pane.js
  2. 25
      dist/base.js
  3. 58
      dist/bundle.ie.js
  4. 58
      dist/bundle.js
  5. 2
      dist/demo.js
  6. 58
      dist/fineui.ie.js
  7. 58
      dist/fineui.js
  8. 58
      dist/fineui_without_jquery_polyfill.js
  9. 25
      src/base/pane.js
  10. 34
      src/case/loading/loading_pane.js

2
demo/js/config/demo.pane.js

@ -4,7 +4,7 @@
* description: * description:
*/ */
!(function () { !(function () {
var Pane = BI.inherit(BI.LoadingPane, { var Pane = BI.inherit(BI.Pane, {
props: { props: {
}, },

25
dist/base.js vendored

@ -218,6 +218,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {

58
dist/bundle.ie.js vendored

@ -35308,6 +35308,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {
@ -57175,39 +57200,6 @@ BI.SortList = BI.inherit(BI.Widget, {
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

58
dist/bundle.js vendored

@ -35712,6 +35712,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {
@ -57579,39 +57604,6 @@ BI.SortList = BI.inherit(BI.Widget, {
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

2
dist/demo.js vendored

@ -3504,7 +3504,7 @@ Demo.COMPONENT_CONFIG = [{
* description: * description:
*/ */
!(function () { !(function () {
var Pane = BI.inherit(BI.LoadingPane, { var Pane = BI.inherit(BI.Pane, {
props: { props: {
}, },

58
dist/fineui.ie.js vendored

@ -35553,6 +35553,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {
@ -57420,39 +57445,6 @@ BI.SortList = BI.inherit(BI.Widget, {
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

58
dist/fineui.js vendored

@ -35957,6 +35957,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {
@ -57824,39 +57849,6 @@ BI.SortList = BI.inherit(BI.Widget, {
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

58
dist/fineui_without_jquery_polyfill.js vendored

@ -24464,6 +24464,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {
@ -40837,39 +40862,6 @@ BI.SortList = BI.inherit(BI.Widget, {
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

25
src/base/pane.js

@ -17,6 +17,31 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
}, },
_mount: function () {
var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
},
_assertTip: function () { _assertTip: function () {
var o = this.options; var o = this.options;
if (!this._tipText) { if (!this._tipText) {

34
src/case/loading/loading_pane.js

@ -1,34 +0,0 @@
/**
* author: young
* createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments);
if (isMounted) {
if (this.beforeInit) {
this.__asking = true;
this.loading();
this.beforeInit(BI.bind(this.__loaded, this));
}
}
},
_initRender: function () {
if (this.beforeInit) {
this.__async = true;
} else {
this._render();
}
},
__loaded: function () {
this.__asking = false;
this.loaded();
this._render();
}
});
Loading…
Cancel
Save