currentIndex 设置bug
This commit is contained in:
parent
60c2f972fa
commit
4378adf3f6
|
@ -401,7 +401,7 @@
|
|||
.u-table-thead-th-drag-gap .online {
|
||||
height: 100%;
|
||||
width: 1px;
|
||||
background: #e9e9e9;
|
||||
background: transparent;
|
||||
margin: 0 auto; }
|
||||
.u-table-thead-th-drag-gap .online-hover {
|
||||
background: #000000; }
|
||||
|
@ -456,6 +456,9 @@
|
|||
outline: none;
|
||||
box-shadow: 0 0 0; }
|
||||
|
||||
.u-table-bordered .u-table-drag-gap {
|
||||
background: #e9e9e9; }
|
||||
|
||||
.u-table.bordered table {
|
||||
border-collapse: collapse; }
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ function bigData(Table) {
|
|||
|
||||
BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) {
|
||||
var _this = this;
|
||||
if (currentIndex > _this.currentIndex + _this.props.rowsInView) {
|
||||
if (currentIndex > _this.currentIndex + _this.rowsInView) {
|
||||
_this.currentIndex = currentIndex;
|
||||
_this.endIndex = _this.currentIndex; //数据开始位置
|
||||
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置
|
||||
|
|
|
@ -67223,7 +67223,7 @@
|
|||
|
||||
BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) {
|
||||
var _this = this;
|
||||
if (currentIndex > _this.currentIndex + _this.props.rowsInView) {
|
||||
if (currentIndex > _this.currentIndex + _this.rowsInView) {
|
||||
_this.currentIndex = currentIndex;
|
||||
_this.endIndex = _this.currentIndex; //数据开始位置
|
||||
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -98,7 +98,7 @@ export default function bigData(Table) {
|
|||
|
||||
setStartAndEndIndex(currentIndex,dataLen){
|
||||
const _this = this;
|
||||
if(currentIndex > _this.currentIndex + _this.props.rowsInView){
|
||||
if(currentIndex > _this.currentIndex + _this.rowsInView){
|
||||
_this.currentIndex = currentIndex;
|
||||
_this.endIndex = _this.currentIndex; //数据开始位置
|
||||
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置
|
||||
|
|
Loading…
Reference in New Issue