|
|
|
@ -36009,13 +36009,6 @@ BI.BasicButton = BI.inherit(BI.Single, {
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.BasicButton.superclass._init.apply(this, arguments); |
|
|
|
|
var opts = this.options; |
|
|
|
|
if (opts.selected === true) { |
|
|
|
|
BI.nextTick(BI.bind(function () { |
|
|
|
|
this.setSelected(opts.selected); |
|
|
|
|
}, this)); |
|
|
|
|
} |
|
|
|
|
BI.nextTick(BI.bind(this.bindEvent, this)); |
|
|
|
|
|
|
|
|
|
if (opts.shadow) { |
|
|
|
|
this._createShadow(); |
|
|
|
|
} |
|
|
|
@ -36024,6 +36017,17 @@ BI.BasicButton = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_mount: function () { |
|
|
|
|
var _mount = BI.BasicButton.superclass._mount.apply(this, arguments); |
|
|
|
|
if(_mount === true) { |
|
|
|
|
var o = this.options; |
|
|
|
|
if (o.selected === true) { |
|
|
|
|
this.setSelected(o.selected); |
|
|
|
|
} |
|
|
|
|
this.bindEvent(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createShadow: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
@ -36180,8 +36184,8 @@ BI.BasicButton = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
// 之后的300ms点击无效
|
|
|
|
|
var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, { |
|
|
|
|
"leading": true, |
|
|
|
|
"trailing": false |
|
|
|
|
leading: true, |
|
|
|
|
trailing: false |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function ev (e) { |
|
|
|
@ -36407,10 +36411,13 @@ BI.NodeButton = BI.inherit(BI.BasicButton, {
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.NodeButton.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this; |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.setOpened(self.isOpened()); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_mount: function () { |
|
|
|
|
var _mount = BI.NodeButton.superclass._mount.apply(this, arguments); |
|
|
|
|
if(_mount === true) { |
|
|
|
|
this.setOpened(this.isOpened()); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
@ -37945,11 +37952,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
|
|
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
|
this._populate(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.element.scrollTop(o.scrollTop); |
|
|
|
|
self.element.scrollLeft(o.scrollLeft); |
|
|
|
|
}); |
|
|
|
|
this.element.scrollTop(o.scrollTop); |
|
|
|
|
this.element.scrollLeft(o.scrollLeft); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -40687,11 +40696,13 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
if (o.items.length > 0) { |
|
|
|
|
this._populate(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.element.scrollTop(o.scrollTop); |
|
|
|
|
self.element.scrollLeft(o.scrollLeft); |
|
|
|
|
}); |
|
|
|
|
this.element.scrollTop(o.scrollTop); |
|
|
|
|
this.element.scrollLeft(o.scrollLeft); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|