|
|
@ -99,7 +99,7 @@ BI.BubbleCombo = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createTriangle: function (direction) { |
|
|
|
_createTriangle: function (direction) { |
|
|
|
var o = this.options, pos = {}, op = {}; |
|
|
|
var self = this, o = this.options, pos = {}, op = {}; |
|
|
|
var adjustLength = this.options.adjustLength; |
|
|
|
var adjustLength = this.options.adjustLength; |
|
|
|
var offset = this.element.offset(); |
|
|
|
var offset = this.element.offset(); |
|
|
|
var left = offset.left, right = offset.left + this.element.outerWidth(); |
|
|
|
var left = offset.left, right = offset.left + this.element.outerWidth(); |
|
|
@ -147,15 +147,18 @@ BI.BubbleCombo = BI.inherit(BI.Widget, { |
|
|
|
cls: "button-combo-triangle-wrapper", |
|
|
|
cls: "button-combo-triangle-wrapper", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.layout", |
|
|
|
type: "bi.layout", |
|
|
|
cls: "bubble-combo-triangle-" + direction + (o.primary ? " bi-primary": "") |
|
|
|
cls: "bubble-combo-triangle-" + direction + (o.primary ? " bi-primary" : "") |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
pos.el = this.triangle; |
|
|
|
pos.el = this.triangle; |
|
|
|
BI.createWidget({ |
|
|
|
// 动画结束后再画三角
|
|
|
|
type: "bi.absolute", |
|
|
|
setTimeout(function () { |
|
|
|
element: this, |
|
|
|
BI.createWidget({ |
|
|
|
items: [pos] |
|
|
|
type: "bi.absolute", |
|
|
|
}); |
|
|
|
element: self, |
|
|
|
|
|
|
|
items: [pos] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, 200); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createLeftTriangle: function () { |
|
|
|
_createLeftTriangle: function () { |
|
|
|