|
|
@ -12516,7 +12516,7 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_render: function(){ |
|
|
|
_render: function () { |
|
|
|
this.beforeCreate && this.beforeCreate(); |
|
|
|
this.beforeCreate && this.beforeCreate(); |
|
|
|
this._initElement(); |
|
|
|
this._initElement(); |
|
|
|
this._initEffects(); |
|
|
|
this._initEffects(); |
|
|
@ -58198,6 +58198,7 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
_initFreezeScroll: function () { |
|
|
|
_initFreezeScroll: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
scroll(this.scrollBottomRight.element, this.scrollTopRight.element, this.scrollBottomLeft.element); |
|
|
|
scroll(this.scrollBottomRight.element, this.scrollTopRight.element, this.scrollBottomLeft.element); |
|
|
|
|
|
|
|
|
|
|
|
// scroll(this.scrollBottomLeft.element, this.scrollTopLeft.element, this.scrollBottomRight.element);
|
|
|
|
// scroll(this.scrollBottomLeft.element, this.scrollTopLeft.element, this.scrollBottomRight.element);
|
|
|
|
|
|
|
|
|
|
|
|
function scroll (scrollElement, scrollTopElement, otherElement) { |
|
|
|
function scroll (scrollElement, scrollTopElement, otherElement) { |
|
|
@ -58277,6 +58278,7 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
createOneEl(i, j); |
|
|
|
createOneEl(i, j); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function mergeRow (i, j) { |
|
|
|
function mergeRow (i, j) { |
|
|
|
var height = (preCol[j].attr("height") | 0) + rowSize + 1; |
|
|
|
var height = (preCol[j].attr("height") | 0) + rowSize + 1; |
|
|
|
preCol[j].attr("height", height).css("height", height); |
|
|
|
preCol[j].attr("height", height).css("height", height); |
|
|
@ -58915,21 +58917,21 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
if (o.isNeedFreeze === true) { |
|
|
|
if (o.isNeedFreeze === true) { |
|
|
|
if (BI.size(this.bottomLeftBodyTds) > 0 || BI.size(this.bottomRightBodyTds) > 0) { |
|
|
|
if (BI.size(this.bottomLeftBodyTds) > 0 || BI.size(this.bottomRightBodyTds) > 0) { |
|
|
|
if (!BI.any(this.bottomLeftBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(this.bottomLeftBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
})) { |
|
|
|
})) { |
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(this.bottomLeftBodyTds[0], function (i, item) { |
|
|
|
BI.each(this.bottomLeftBodyTds[0], function (i, item) { |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
if (i == BI.size(self.bottomLeftBodyTds[0]) - 1) { |
|
|
|
if (i == BI.size(self.bottomLeftBodyTds[0]) - 1) { |
|
|
@ -58939,21 +58941,21 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!BI.any(this.bottomRightBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(this.bottomRightBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
})) { |
|
|
|
})) { |
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(this.bottomRightBodyTds[0], function (i, item) { |
|
|
|
BI.each(this.bottomRightBodyTds[0], function (i, item) { |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
if (i == BI.size(self.bottomRightBodyTds[0]) - 1) { |
|
|
|
if (i == BI.size(self.bottomRightBodyTds[0]) - 1) { |
|
|
@ -58965,21 +58967,21 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
return columnSize; |
|
|
|
return columnSize; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!BI.any(this.topLeftBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(this.topLeftBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
})) { |
|
|
|
})) { |
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(this.topLeftBodyTds[BI.size(this.topLeftBodyTds) - 1], function (i, item) { |
|
|
|
BI.each(this.topLeftBodyTds[BI.size(this.topLeftBodyTds) - 1], function (i, item) { |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
if (i == BI.size(self.topLeftBodyTds[BI.size(self.topLeftBodyTds) - 1]) - 1) { |
|
|
|
if (i == BI.size(self.topLeftBodyTds[BI.size(self.topLeftBodyTds) - 1]) - 1) { |
|
|
@ -58989,21 +58991,21 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!BI.any(this.topRightBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(this.topRightBodyTds, function (i, tds) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (!BI.any(tds, function (i, item) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
if (item.__mergeCols.length > 1) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
})) { |
|
|
|
})) { |
|
|
|
BI.each(tds, function (i, item) { |
|
|
|
|
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
|
|
|
|
if (i == BI.size(tds) - 1) { |
|
|
|
|
|
|
|
width++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
columnSize.push(width); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})) { |
|
|
|
|
|
|
|
BI.each(this.topRightBodyTds[BI.size(this.topRightBodyTds) - 1], function (i, item) { |
|
|
|
BI.each(this.topRightBodyTds[BI.size(this.topRightBodyTds) - 1], function (i, item) { |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
var width = item.width() / item.__mergeCols.length; |
|
|
|
if (i == BI.size(self.topRightBodyTds[BI.size(self.topRightBodyTds) - 1]) - 1) { |
|
|
|
if (i == BI.size(self.topRightBodyTds[BI.size(self.topRightBodyTds) - 1]) - 1) { |
|
|
@ -59417,10 +59419,9 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_empty: function () { |
|
|
|
_empty: function () { |
|
|
|
this.scrollBottomRight && this.scrollBottomRight.destroy(); |
|
|
|
this.scrollBottomRight && this.scrollBottomRight.destroy(); |
|
|
|
this.topLeft && this.topLeft.destroy(); |
|
|
|
BI.each(this.partitions._children, function (name, child) { |
|
|
|
this.topRight && this.topRight.destroy(); |
|
|
|
child && child.destroy(); |
|
|
|
this.bottomLeft && this.bottomLeft.destroy(); |
|
|
|
}); |
|
|
|
this.bottomRight && this.bottomRight.destroy(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items, header) { |
|
|
|
populate: function (items, header) { |
|
|
|