|
|
@ -14843,7 +14843,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
return eq(item1, item2); |
|
|
|
return eq(item1, item2); |
|
|
|
|
|
|
|
|
|
|
|
// 不比较函数
|
|
|
|
// 不比较函数
|
|
|
|
function eq(a, b, aStack, bStack) { |
|
|
|
function eq (a, b, aStack, bStack) { |
|
|
|
if (a === b) { |
|
|
|
if (a === b) { |
|
|
|
return a !== 0 || 1 / a === 1 / b; |
|
|
|
return a !== 0 || 1 / a === 1 / b; |
|
|
|
} |
|
|
|
} |
|
|
@ -15163,7 +15163,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
self._children[self._getChildName(i)] = children[key]; |
|
|
|
self._children[self._getChildName(i)] = children[key]; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function sameVnode(vnode1, vnode2, oldIndex, newIndex) { |
|
|
|
function sameVnode (vnode1, vnode2, oldIndex, newIndex) { |
|
|
|
vnode1 = self._getOptions(vnode1); |
|
|
|
vnode1 = self._getOptions(vnode1); |
|
|
|
vnode2 = self._getOptions(vnode2); |
|
|
|
vnode2 = self._getOptions(vnode2); |
|
|
|
if (BI.isKey(vnode1.key)) { |
|
|
|
if (BI.isKey(vnode1.key)) { |
|
|
@ -15174,20 +15174,20 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function addNode(vnode, index) { |
|
|
|
function addNode (vnode, index) { |
|
|
|
var opt = self._getOptions(vnode); |
|
|
|
var opt = self._getOptions(vnode); |
|
|
|
var key = opt.key == null ? self._getChildName(index) : opt.key; |
|
|
|
var key = opt.key == null ? self._getChildName(index) : opt.key; |
|
|
|
return children[key] = self._addElement(key, vnode); |
|
|
|
return children[key] = self._addElement(key, vnode); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function addVnodes(before, vnodes, startIdx, endIdx) { |
|
|
|
function addVnodes (before, vnodes, startIdx, endIdx) { |
|
|
|
for (; startIdx <= endIdx; ++startIdx) { |
|
|
|
for (; startIdx <= endIdx; ++startIdx) { |
|
|
|
var node = addNode(vnodes[startIdx], startIdx); |
|
|
|
var node = addNode(vnodes[startIdx], startIdx); |
|
|
|
insertBefore(node, before, false, startIdx); |
|
|
|
insertBefore(node, before, false, startIdx); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function removeVnodes(vnodes, startIdx, endIdx) { |
|
|
|
function removeVnodes (vnodes, startIdx, endIdx) { |
|
|
|
for (; startIdx <= endIdx; ++startIdx) { |
|
|
|
for (; startIdx <= endIdx; ++startIdx) { |
|
|
|
var node = self._getOptions(vnodes[startIdx]); |
|
|
|
var node = self._getOptions(vnodes[startIdx]); |
|
|
|
var key = node.key == null ? self._getChildName(startIdx) : node.key; |
|
|
|
var key = node.key == null ? self._getChildName(startIdx) : node.key; |
|
|
@ -15195,7 +15195,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function insertBefore(insert, before, isNext, index) { |
|
|
|
function insertBefore (insert, before, isNext, index) { |
|
|
|
insert = self._getOptions(insert); |
|
|
|
insert = self._getOptions(insert); |
|
|
|
before = before && self._getOptions(before); |
|
|
|
before = before && self._getOptions(before); |
|
|
|
var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index); |
|
|
|
var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index); |
|
|
@ -60481,6 +60481,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { |
|
|
|
|
|
|
|
|
|
|
|
}], |
|
|
|
}], |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
|
|
|
|
vgap: 5, |
|
|
|
lgap: 10, |
|
|
|
lgap: 10, |
|
|
|
rgap: 0 |
|
|
|
rgap: 0 |
|
|
|
}); |
|
|
|
}); |
|
|
@ -72007,6 +72008,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
self._setComboValueChangedEvent(self.smallCombo); |
|
|
|
self._setComboValueChangedEvent(self.smallCombo); |
|
|
|
self._setEditorValueChangedEvent(self.bigEditor); |
|
|
|
self._setEditorValueChangedEvent(self.bigEditor); |
|
|
|
self._setEditorValueChangedEvent(self.smallEditor); |
|
|
|
self._setEditorValueChangedEvent(self.smallEditor); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._checkValidation(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_checkValidation: function () { |
|
|
|
_checkValidation: function () { |
|
|
@ -72284,6 +72287,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
self.bigCombo.setValue(combo_value); |
|
|
|
self.bigCombo.setValue(combo_value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._checkValidation(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|