From ae4a45cdfd0c66b2e4a75241361be3e7822fce44 Mon Sep 17 00:00:00 2001 From: zhanghy7 Date: Wed, 27 Sep 2017 23:42:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=9A=84=E6=9C=AC=E5=9C=B0=E6=B5=8B=E8=AF=95=E4=BE=8B?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demolist/Demo16.js | 76 ----------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 demo/demolist/Demo16.js diff --git a/demo/demolist/Demo16.js b/demo/demolist/Demo16.js deleted file mode 100644 index 60c73ab..0000000 --- a/demo/demolist/Demo16.js +++ /dev/null @@ -1,76 +0,0 @@ -/** -* -* @title 合计test -* @description -* -*/ - -import React, { Component } from "react"; -import Table from "../../src"; -import Sum from "../../src/lib/sum.js"; - -const columns14 = [ - { title: "用户名", dataIndex: "a", key: "a", width: 100 }, - { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, - { - title: "年龄", - dataIndex: "c", - key: "c", - width: 200, - heji: true - }, - { - title: "操作", - dataIndex: "d", - key: "d", - render(data) { - return 一些操作; - } - } -]; - -//合计表头 -// const columns14_ = [ -// { title: "用户名", dataIndex: "a", key: "a", width: 100 }, -// { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, -// { -// title: "年龄", -// dataIndex: "c", -// key: "c", -// width: 200, -// heji: true -// }, -// { -// title: "操作", -// dataIndex: "d", -// key: "d" -// } -// ]; - -const data14 = [ - { a: "令狐冲", b: "男", c: 41, key: "1" }, - { a: "杨过", b: "男", c: 67, key: "2" }, - { a: "郭靖", b: "男", c: 25, key: "3" }, -]; - -//合计数据 -// const data14_ = [ -// { a: "郭靖", b: "男", c: 25,d:11, key: "3" } -// ]; - -class Demo16 extends Component { - - render() { - //使用高阶组件 - let SumTable = Sum(Table); - return ( - - ); - } -} - -export default Demo16;