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