|
|
@ -14976,10 +14976,12 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
added.push(w); |
|
|
|
added.push(w); |
|
|
|
fragment.appendChild(w.element[0]); |
|
|
|
fragment.appendChild(w.element[0]); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this._getWrapper().append(fragment); |
|
|
|
if (this._isMounted) { |
|
|
|
BI.each(added, function (i, w) { |
|
|
|
this._getWrapper().append(fragment); |
|
|
|
w._mount(); |
|
|
|
BI.each(added, function (i, w) { |
|
|
|
}); |
|
|
|
w._mount(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
prependItems: function (items) { |
|
|
|
prependItems: function (items) { |
|
|
@ -14995,10 +14997,12 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
added.push(w); |
|
|
|
added.push(w); |
|
|
|
fragment.appendChild(w.element[0]); |
|
|
|
fragment.appendChild(w.element[0]); |
|
|
|
} |
|
|
|
} |
|
|
|
this._getWrapper().prepend(fragment); |
|
|
|
if (this._isMounted) { |
|
|
|
BI.each(added, function (i, w) { |
|
|
|
this._getWrapper().prepend(fragment); |
|
|
|
w._mount(); |
|
|
|
BI.each(added, function (i, w) { |
|
|
|
}); |
|
|
|
w._mount(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
@ -19149,6 +19153,7 @@ BI.prepares.push(function () { |
|
|
|
toElement.on(eventKey, handler); |
|
|
|
toElement.on(eventKey, handler); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
toElement.data(fromElement.data()); |
|
|
|
var fromChildren = fromElement.children(), toChildren = toElement.children(); |
|
|
|
var fromChildren = fromElement.children(), toChildren = toElement.children(); |
|
|
|
if(fromChildren.length !== toChildren.length) { |
|
|
|
if(fromChildren.length !== toChildren.length) { |
|
|
|
throw new Error("不匹配"); |
|
|
|
throw new Error("不匹配"); |
|
|
@ -37947,11 +37952,13 @@ BI.CollectionView = BI.inherit(BI.Widget, { |
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
this._calculateSizeAndPositionData(); |
|
|
|
this._populate(); |
|
|
|
this._populate(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
BI.nextTick(function () { |
|
|
|
this.element.scrollTop(o.scrollTop); |
|
|
|
self.element.scrollTop(o.scrollTop); |
|
|
|
this.element.scrollLeft(o.scrollLeft); |
|
|
|
self.element.scrollLeft(o.scrollLeft); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -40689,11 +40696,13 @@ BI.GridView = BI.inherit(BI.Widget, { |
|
|
|
if (o.items.length > 0) { |
|
|
|
if (o.items.length > 0) { |
|
|
|
this._populate(); |
|
|
|
this._populate(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
if (o.scrollLeft !== 0 || o.scrollTop !== 0) { |
|
|
|
BI.nextTick(function () { |
|
|
|
this.element.scrollTop(o.scrollTop); |
|
|
|
self.element.scrollTop(o.scrollTop); |
|
|
|
this.element.scrollLeft(o.scrollLeft); |
|
|
|
self.element.scrollLeft(o.scrollLeft); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -52876,7 +52885,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
buttons: [{ |
|
|
|
buttons: [{ |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
ghost: true, |
|
|
|
level: "ignore", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false); |
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false); |
|
|
@ -52905,7 +52914,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);/** |
|
|
|
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView); |
|
|
|
|
|
|
|
/** |
|
|
|
* Created by Young's on 2016/4/28. |
|
|
|
* Created by Young's on 2016/4/28. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, { |
|
|
|
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, { |
|
|
@ -53563,7 +53573,8 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
|
|
|
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);/** |
|
|
|
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo); |
|
|
|
|
|
|
|
/** |
|
|
|
* Created by Windy on 2018/2/5. |
|
|
|
* Created by Windy on 2018/2/5. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
|
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
@ -55892,7 +55903,7 @@ BI.Panel = BI.inherit(BI.Widget, { |
|
|
|
return { |
|
|
|
return { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.left_right_vertical_adapt", |
|
|
|
type: "bi.left_right_vertical_adapt", |
|
|
|
cls: "panel-title bi-border-bottom", |
|
|
|
cls: "panel-title bi-header-background bi-border-bottom", |
|
|
|
height: 29, |
|
|
|
height: 29, |
|
|
|
items: { |
|
|
|
items: { |
|
|
|
left: [this.text], |
|
|
|
left: [this.text], |
|
|
@ -55911,7 +55922,8 @@ BI.Panel = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE"; |
|
|
|
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.panel", BI.Panel);BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { |
|
|
|
BI.shortcut("bi.panel", BI.Panel); |
|
|
|
|
|
|
|
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: { |
|
|
|
extraCls: "bi-line-segment-button bi-list-item-effect", |
|
|
|
extraCls: "bi-line-segment-button bi-list-item-effect", |
|
|
|