currentIndex 设置bug

This commit is contained in:
wanghaoo 2019-02-13 17:11:07 +08:00
parent 60c2f972fa
commit 4378adf3f6
5 changed files with 8 additions and 5 deletions

View File

@ -401,7 +401,7 @@
.u-table-thead-th-drag-gap .online { .u-table-thead-th-drag-gap .online {
height: 100%; height: 100%;
width: 1px; width: 1px;
background: #e9e9e9; background: transparent;
margin: 0 auto; } margin: 0 auto; }
.u-table-thead-th-drag-gap .online-hover { .u-table-thead-th-drag-gap .online-hover {
background: #000000; } background: #000000; }
@ -456,6 +456,9 @@
outline: none; outline: none;
box-shadow: 0 0 0; } box-shadow: 0 0 0; }
.u-table-bordered .u-table-drag-gap {
background: #e9e9e9; }
.u-table.bordered table { .u-table.bordered table {
border-collapse: collapse; } border-collapse: collapse; }

View File

@ -108,7 +108,7 @@ function bigData(Table) {
BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) { BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) {
var _this = this; var _this = this;
if (currentIndex > _this.currentIndex + _this.props.rowsInView) { if (currentIndex > _this.currentIndex + _this.rowsInView) {
_this.currentIndex = currentIndex; _this.currentIndex = currentIndex;
_this.endIndex = _this.currentIndex; //数据开始位置 _this.endIndex = _this.currentIndex; //数据开始位置
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置 _this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置

2
dist/demo.js vendored
View File

@ -67223,7 +67223,7 @@
BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) { BigData.prototype.setStartAndEndIndex = function setStartAndEndIndex(currentIndex, dataLen) {
var _this = this; var _this = this;
if (currentIndex > _this.currentIndex + _this.props.rowsInView) { if (currentIndex > _this.currentIndex + _this.rowsInView) {
_this.currentIndex = currentIndex; _this.currentIndex = currentIndex;
_this.endIndex = _this.currentIndex; //数据开始位置 _this.endIndex = _this.currentIndex; //数据开始位置
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置 _this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@ export default function bigData(Table) {
setStartAndEndIndex(currentIndex,dataLen){ setStartAndEndIndex(currentIndex,dataLen){
const _this = this; const _this = this;
if(currentIndex > _this.currentIndex + _this.props.rowsInView){ if(currentIndex > _this.currentIndex + _this.rowsInView){
_this.currentIndex = currentIndex; _this.currentIndex = currentIndex;
_this.endIndex = _this.currentIndex; //数据开始位置 _this.endIndex = _this.currentIndex; //数据开始位置
_this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置 _this.startIndex = _this.currentIndex - _this.loadCount; //数据结束位置