@ -61,6 +61,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
}
},
// mounted之后绑定事件
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
@ -52,7 +52,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
});
created: function () {
if (o.showIndex !== false) {
this.setSelect(o.showIndex);
@ -76,7 +76,7 @@ BI.Tab = BI.inherit(BI.Widget, {
@ -63,6 +63,7 @@ BI.GridView = BI.inherit(BI.Widget, {
@ -152,6 +152,7 @@ BI.Popover = BI.inherit(BI.Widget, {
var self = this; var o = this.options;
this.dragger.element.mousedown(function (e) {
@ -38,6 +38,7 @@ BI.ListView = BI.inherit(BI.Widget, {
};
var self = this, o = this.options;
this._populate();
@ -47,6 +47,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
@ -177,6 +177,7 @@ BI.HexColorChooserPopup = BI.inherit(BI.Widget, {
// 这里就实现的不好了,setValue里面有个editor,editor的setValue会检测错误然后出bubble提示
var self = this;
@ -161,6 +161,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
@ -80,7 +80,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
if (BI.isKey(o.value)) {
this.setValue(o.value);
@ -115,7 +115,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
if(BI.isKey(o.value)) {
this._checkError(o.value);
@ -45,6 +45,7 @@ BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
// mounted之后做check
mounted: function() {
this.check();
@ -254,10 +254,10 @@
this._mountChildren && this._mountChildren();
if (layer === 0) {
// mounted放到下一个宏任务里执行
setTimeout(function () {
self.__afterMount(lifeHook, predicate);
}, 0);
// mounted里面会执行scrollTo之类的方法,如果放宏任务里会闪
// setTimeout(function () {
// }, 0);
return true;
@ -109,7 +109,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
this.setValue(this.options.value);
@ -141,7 +141,6 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
setValue: function (v) {
v = v || {};
var type = v.type || BI.DynamicDateCombo.Static;
@ -109,7 +109,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
@ -238,7 +238,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
this._checkDynamicValue(this.storeValue);
@ -246,7 +246,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
@ -98,7 +98,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
created: function() {
this._checkMonthStatus(this.selectedYear);