tree 合计行bug 临时解决

This commit is contained in:
jonyshi 2018-05-14 15:08:39 +08:00
parent 73add950c5
commit 95b5c7617e
7 changed files with 53 additions and 42 deletions

View File

@ -52,7 +52,7 @@ const columns = [
title: "Door No.",
dataIndex: "number",
key: "number",
width: 100,
// width: 100,
sumCol: true,
}
]
@ -61,26 +61,28 @@ const columns = [
}
]
},
{
title: "Company",
children: [
{
title: "Company Address",
dataIndex: "companyAddress",
key: "companyAddress"
},
{
title: "Company Name",
dataIndex: "companyName",
key: "companyName"
}
]
},
// {
// title: "Company",
// children: [
// {
// title: "Company Address",
// dataIndex: "companyAddress",
// key: "companyAddress",
// width: 100,
// },
// {
// title: "Company Name",
// dataIndex: "companyName",
// key: "companyName",
// width: 100,
// }
// ]
// },
{
title: "Gender",
dataIndex: "gender",
key: "gender",
width: 60,
width: 80,
fixed: "right"
}
];
@ -134,6 +136,7 @@ class Demo18 extends Component {
columns={columns}
data={data}
bordered
// scroll={{ x: "130%", y: 140 }}
/>
</div>
);

File diff suppressed because one or more lines are too long

10
dist/demo.css vendored
View File

@ -7886,7 +7886,7 @@ ul {
background: rgb(227,242,253); }
.u-table th,
.u-table td {
padding: 16px 8px;
padding: 12px 8px;
word-break: break-all; }
.u-table-row-hover {
background: #e3f2fd; }
@ -7921,19 +7921,19 @@ ul {
overflow-y: auto;
box-sizing: border-box; }
.u-table-title {
padding: 16px 8px;
padding: 12px 8px;
border-top: 1px solid #e9e9e9; }
.u-table-content {
position: relative; }
.u-table-footer {
padding: 16px 8px;
padding: 12px 8px;
border-bottom: 1px solid #e9e9e9; }
.u-table-footer .u-table-scroll {
overflow-x: hidden; }
.u-table-footer .u-table {
margin: -16px -8px; }
margin: -12px -8px; }
.u-table-placeholder {
padding: 16px 8px;
padding: 12px 8px;
background: #fff;
border-bottom: 1px solid #e9e9e9;
text-align: center;

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

38
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ $font-size-base: 12px;
$line-height: 1.5;
$table-border-color: $border-color-base;
$table-head-background-color: #f7f7f7;
$vertical-padding: 16px;
$vertical-padding: 12px;
$horizontal-padding: 8px;
$table-border-color: #e9e9e9;
@ -140,7 +140,7 @@ $table-move-in-color: $bg-color-base;
}
&-placeholder {
padding: 16px 8px;
padding: $vertical-padding 8px;
background: #fff;
border-bottom: 1px solid $table-border-color;
text-align: center;