Browse Source

JSY-4371 feat: 提供最后一行最后一列标记

es6
Kira 4 years ago
parent
commit
402f2c594f
  1. 2
      src/base/collection/collection.js
  2. 4
      src/core/structure/sectionManager.js

2
src/base/collection/collection.js

@ -156,7 +156,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
border[offset] = 0; border[offset] = 0;
} }
}; };
var lastDatum = BI.last(BI.sortBy(childrenToDisplay, function (index, child) { var lastDatum = BI.last(BI.sortBy(this._sectionManager.getAllCellMetadata(), function (index, child) {
return (child.x + child.width + child.y + child.height); return (child.x + child.width + child.y + child.height);
})); }));
for (var i = 0, len = childrenToDisplay.length; i < len; i++) { for (var i = 0, len = childrenToDisplay.length; i < len; i++) {

4
src/core/structure/sectionManager.js

@ -46,6 +46,10 @@
}); });
}, },
getAllCellMetadata: function () {
return this._cellMetadata;
},
getCellMetadata: function (index) { getCellMetadata: function (index) {
return this._cellMetadata[index]; return this._cellMetadata[index];
}, },

Loading…
Cancel
Save