表头样式调整
This commit is contained in:
parent
cca227f9ba
commit
3e04dbd8b1
|
@ -49,6 +49,12 @@
|
||||||
.u-table td {
|
.u-table td {
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
word-break: break-all; }
|
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 {
|
.u-table tr.filterable th {
|
||||||
padding-top: 5px !important;
|
padding-top: 5px !important;
|
||||||
padding-bottom: 5px !important; }
|
padding-bottom: 5px !important; }
|
||||||
|
@ -341,7 +347,8 @@
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
margin: 0px; }
|
margin: 0px; }
|
||||||
.u-table .u-checkbox .u-checkbox-label {
|
.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 {
|
.u-table .u-checkbox .u-checkbox-label:before, .u-table .u-checkbox .u-checkbox-label:after {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px; }
|
height: 14px; }
|
||||||
|
|
|
@ -28,8 +28,8 @@ const columns = [
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ id: "123", title: "性别", dataIndex: "b", key: "b", width: 500},
|
{ id: "123", title: "性别", dataIndex: "b", key: "b", width: 500,"textAlign":'center'},
|
||||||
{ title: "年龄", dataIndex: "c", key: "c", width: 200 }
|
{ title: "年龄", dataIndex: "c", key: "c", width: 200,"textAlign":'center' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const data = [
|
const data = [
|
||||||
|
@ -68,6 +68,7 @@ class Demo01 extends Component {
|
||||||
parentNodeId='parent'
|
parentNodeId='parent'
|
||||||
height={40}
|
height={40}
|
||||||
headerHeight={40}
|
headerHeight={40}
|
||||||
|
bordered = {true}
|
||||||
hoverContent={this.getHoverContent}
|
hoverContent={this.getHoverContent}
|
||||||
onRowHover={this.onRowHover}
|
onRowHover={this.onRowHover}
|
||||||
/>
|
/>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -106,6 +106,12 @@ $icon-color:#505F79;
|
||||||
td {
|
td {
|
||||||
padding: $vertical-padding $horizontal-padding;
|
padding: $vertical-padding $horizontal-padding;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
&.text-center{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
&.text-right{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
|
|
||||||
|
@ -575,6 +581,7 @@ $icon-color:#505F79;
|
||||||
margin:0px;
|
margin:0px;
|
||||||
.u-checkbox-label{
|
.u-checkbox-label{
|
||||||
line-height: $checkbox-height;
|
line-height: $checkbox-height;
|
||||||
|
padding-left: 16px;
|
||||||
&:before,&:after {
|
&:before,&:after {
|
||||||
width: $checkbox-height;
|
width: $checkbox-height;
|
||||||
height: $checkbox-height;
|
height: $checkbox-height;
|
||||||
|
|
Loading…
Reference in New Issue