demo修改

This commit is contained in:
“jonyshi” 2019-11-05 16:30:55 +08:00
parent 376e572bad
commit ee12a6742a
1 changed files with 9 additions and 2 deletions

View File

@ -11,7 +11,8 @@ import React, { Component } from "react";
import Table from "../../src";
import {Button} from "tinper-bee";
const { ColumnGroup, Column } = Table;
import dragColumn from '../../src/lib/dragColumn';
// const { ColumnGroup, Column } = Table;
const columns = [
{
@ -103,15 +104,21 @@ for (let i = 0; i < 20; i++) {
});
}
const DragColumnTable = dragColumn(Table);
class Demo32 extends Component {
render() {
return (
<Table
<DragColumnTable
className={'demo32'}
columns={columns}
data={data}
headerHeight={40} //自定义表头高度
bordered
dragborder={true}
onDropBorder ={(e,width)=>{
console.log(width+"--调整列宽后触发事件",e.target);
}}
scroll={{ y: 240 }}
/>
);