Merge branch 'master' of github.com:tinper-bee/bee-table

This commit is contained in:
jonyshi 2019-03-20 12:36:30 +08:00
commit 2fdd8a8982
7 changed files with 4562 additions and 4570 deletions

View File

@ -15,6 +15,7 @@ const columns = [
title:'序号', title:'序号',
dataIndex:'index', dataIndex:'index',
width:'50', width:'50',
key:'index',
render:(text,record,index)=>{ render:(text,record,index)=>{
return index return index
} }

View File

@ -19,6 +19,7 @@ const columns = [
title:'序号', title:'序号',
dataIndex:'index', dataIndex:'index',
width:'50', width:'50',
key:'index',
render:(text,record,index)=>{ render:(text,record,index)=>{
return index return index
} }

View File

@ -16,6 +16,7 @@ const columns = [
title:'序号', title:'序号',
dataIndex:'index', dataIndex:'index',
width:'150', width:'150',
key:'index',
render:(text,record,index)=>{ render:(text,record,index)=>{
return index return index
} }

File diff suppressed because one or more lines are too long

9118
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -548,7 +548,7 @@ class Table extends Component {
const expandIconColumnIndex = fixed !== 'right' ? props.expandIconColumnIndex : -1; const expandIconColumnIndex = fixed !== 'right' ? props.expandIconColumnIndex : -1;
if(props.lazyLoad && props.lazyLoad.preHeight && indent == 0){ if(props.lazyLoad && props.lazyLoad.preHeight && indent == 0){
rst.push( rst.push(
<TableRow height={props.lazyLoad.preHeight} columns={[]} className='' store={this.store} visible = {true}/> <TableRow height={props.lazyLoad.preHeight} columns={[]} className='' key={'table_row_first'} store={this.store} visible = {true}/>
) )
} }
const lazyCurrentIndex = props.lazyLoad && props.lazyLoad.startIndex ?props.lazyLoad.startIndex :0; const lazyCurrentIndex = props.lazyLoad && props.lazyLoad.startIndex ?props.lazyLoad.startIndex :0;
@ -669,7 +669,7 @@ class Table extends Component {
if(props.lazyLoad && props.lazyLoad.sufHeight && indent == 0){ if(props.lazyLoad && props.lazyLoad.sufHeight && indent == 0){
rst.push( rst.push(
<TableRow height={props.lazyLoad.sufHeight} columns={[]} className='' store={this.store} visible = {true}/> <TableRow height={props.lazyLoad.sufHeight} key={'table_row_end'} columns={[]} className='' store={this.store} visible = {true}/>
) )
} }
return rst; return rst;
@ -678,7 +678,8 @@ class Table extends Component {
getRows(columns, fixed) { getRows(columns, fixed) {
//统计index只有含有鼠表结构才有用因为数表结构时固定列的索引取值有问题 //统计index只有含有鼠表结构才有用因为数表结构时固定列的索引取值有问题
this.treeRowIndex = 0; this.treeRowIndex = 0;
return this.getRowsByData(this.state.data, true, 0, columns, fixed); let rs = this.getRowsByData(this.state.data, true, 0, columns, fixed);
return rs;
} }
getColGroup(columns, fixed) { getColGroup(columns, fixed) {