Young 6 years ago
parent
commit
6749f2958e
  1. 2
      demo/js/config/demo.pane.js
  2. 25
      dist/base.js
  3. 55
      dist/bundle.ie.js
  4. 55
      dist/bundle.js
  5. 7
      dist/case.js
  6. 2
      dist/demo.js
  7. 55
      dist/fineui.ie.js
  8. 55
      dist/fineui.js
  9. 55
      dist/fineui_without_jquery_polyfill.js
  10. 25
      src/base/pane.js
  11. 31
      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.Pane, { var Pane = BI.inherit(BI.LoadingPane, {
props: { props: {
}, },

25
dist/base.js vendored

@ -218,31 +218,6 @@ 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) {

55
dist/bundle.ie.js vendored

@ -35308,31 +35308,6 @@ 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) {
@ -57200,6 +57175,36 @@ 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:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

55
dist/bundle.js vendored

@ -35712,31 +35712,6 @@ 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) {
@ -57604,6 +57579,36 @@ 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:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

7
dist/case.js vendored

@ -7975,14 +7975,11 @@ BI.shortcut("bi.sort_list", BI.SortList);
/** /**
* author: young * author: young
* createdDate: 2018/12/18 * createdDate: 2018/12/18
* description: 实现先loading 然后再渲染解决beforeInit中loading无效 * description:
* 继承此类你需要明确你的页面是根据动态请求后的结果来渲染的
* 使用1在子类中使用loadedRender代替render方法2请求数据放到reqInitData中
*/ */
BI.LoadingPane = BI.inherit(BI.Pane, { BI.LoadingPane = BI.inherit(BI.Pane, {
_mount: function () { _mount: function () {
var isMounted = BI.LoadingPane.superclass._mount.apply(this, arguments); var isMounted = BI.Pane.superclass._mount.apply(this, arguments);
if (isMounted) { if (isMounted) {
if (this.beforeInit) { if (this.beforeInit) {
this.__asking = true; this.__asking = true;

2
dist/demo.js vendored

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

55
dist/fineui.ie.js vendored

@ -35553,31 +35553,6 @@ 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) {
@ -57445,6 +57420,36 @@ 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:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

55
dist/fineui.js vendored

@ -35957,31 +35957,6 @@ 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) {
@ -57849,6 +57824,36 @@ 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:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

55
dist/fineui_without_jquery_polyfill.js vendored

@ -24464,31 +24464,6 @@ 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) {
@ -40862,6 +40837,36 @@ 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:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});/**
* 有总页数和总行数的分页控件 * 有总页数和总行数的分页控件
* Created by Young's on 2016/10/13. * Created by Young's on 2016/10/13.
*/ */

25
src/base/pane.js

@ -17,31 +17,6 @@ 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) {

31
src/case/loading/loading_pane.js

@ -0,0 +1,31 @@
/**
* author: young
* createdDate: 2018/12/18
* description:
*/
BI.LoadingPane = BI.inherit(BI.Pane, {
_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();
}
});
Loading…
Cancel
Save