From 3e04dbd8b1e950a14bf2a1e2c8dc450a69ed92f7 Mon Sep 17 00:00:00 2001
From: izbz wh <731215820@qq.com>
Date: Thu, 18 Apr 2019 11:08:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E6=A0=B7=E5=BC=8F=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
build/Table.css | 9 +-
demo/demolist/Demo01.js | 5 +-
demo/index.js | 2 +-
dist/demo.css | 8264 +--------------------------------------
dist/demo.css.map | 2 +-
dist/demo.js | 5 +-
dist/demo.js.map | 2 +-
src/Table.scss | 7 +
8 files changed, 30 insertions(+), 8266 deletions(-)
diff --git a/build/Table.css b/build/Table.css
index f8cd1f4..acf5a06 100644
--- a/build/Table.css
+++ b/build/Table.css
@@ -49,6 +49,12 @@
.u-table td {
padding: 12px 16px;
word-break: break-all; }
+ .u-table th.text-center,
+ .u-table td.text-center {
+ text-align: center; }
+ .u-table th.text-right,
+ .u-table td.text-right {
+ text-align: right; }
.u-table tr.filterable th {
padding-top: 5px !important;
padding-bottom: 5px !important; }
@@ -341,7 +347,8 @@
line-height: 14px;
margin: 0px; }
.u-table .u-checkbox .u-checkbox-label {
- line-height: 14px; }
+ line-height: 14px;
+ padding-left: 16px; }
.u-table .u-checkbox .u-checkbox-label:before, .u-table .u-checkbox .u-checkbox-label:after {
width: 14px;
height: 14px; }
diff --git a/demo/demolist/Demo01.js b/demo/demolist/Demo01.js
index b7714ae..47b78c9 100644
--- a/demo/demolist/Demo01.js
+++ b/demo/demolist/Demo01.js
@@ -28,8 +28,8 @@ const columns = [
);
}
},
- { id: "123", title: "性别", dataIndex: "b", key: "b", width: 500},
- { title: "年龄", dataIndex: "c", key: "c", width: 200 }
+ { id: "123", title: "性别", dataIndex: "b", key: "b", width: 500,"textAlign":'center'},
+ { title: "年龄", dataIndex: "c", key: "c", width: 200,"textAlign":'center' }
];
const data = [
@@ -68,6 +68,7 @@ class Demo01 extends Component {
parentNodeId='parent'
height={40}
headerHeight={40}
+ bordered = {true}
hoverContent={this.getHoverContent}
onRowHover={this.onRowHover}
/>
diff --git a/demo/index.js b/demo/index.js
index 34ed097..647438a 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -8,7 +8,7 @@ import Button from '../src';
-var Demo01 = require("./demolist/Demo01");var Demo02 = require("./demolist/Demo02");var Demo03 = require("./demolist/Demo03");var Demo04 = require("./demolist/Demo04");var Demo05 = require("./demolist/Demo05");var Demo11 = require("./demolist/Demo11");var Demo12 = require("./demolist/Demo12");var Demo32 = require("./demolist/Demo32");var Demo35 = require("./demolist/Demo35");var Demo41 = require("./demolist/Demo41");var Demo51 = require("./demolist/Demo51");var Demo52 = require("./demolist/Demo52");var Demo53 = require("./demolist/Demo53");var Demo62 = require("./demolist/Demo62");var Demo63 = require("./demolist/Demo63");var Demo71 = require("./demolist/Demo71");var Demo81 = require("./demolist/Demo81");var Demo82 = require("./demolist/Demo82");var Demo83 = require("./demolist/Demo83");var Demo91 = require("./demolist/Demo91");var Demo92 = require("./demolist/Demo92");var Demo101 = require("./demolist/Demo101");var Demo102 = require("./demolist/Demo102");var Demo103 = require("./demolist/Demo103");var Demo104 = require("./demolist/Demo104");var Demo105 = require("./demolist/Demo105");var Demo121 = require("./demolist/Demo121");var Demo131 = require("./demolist/Demo131");var Demo132 = require("./demolist/Demo132");var Demo133 = require("./demolist/Demo133");var Demo134 = require("./demolist/Demo134");var Demo161 = require("./demolist/Demo161");var Demo162 = require("./demolist/Demo162");var Demo181 = require("./demolist/Demo181");var DemoArray = [{"example":