From ee12a6742ab0e3f3f67c348ca2fb6a3593af3d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cjonyshi=E2=80=9D?= Date: Tue, 5 Nov 2019 16:30:55 +0800 Subject: [PATCH] =?UTF-8?q?demo=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demolist/Demo0402.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/demo/demolist/Demo0402.js b/demo/demolist/Demo0402.js index a0824ca..be5a86e 100644 --- a/demo/demolist/Demo0402.js +++ b/demo/demolist/Demo0402.js @@ -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 ( - { + console.log(width+"--调整列宽后触发事件",e.target); + }} scroll={{ y: 240 }} /> );