Commit 0d00edd8 authored by afc163's avatar afc163

use Table column.align

parent 9924514b
......@@ -59,11 +59,8 @@ class StandardTable extends PureComponent {
title: 'ζœεŠ‘θ°ƒη”¨ζ¬‘ζ•°',
dataIndex: 'callNo',
sorter: true,
render: val => (
<div style={{ textAlign: 'center' }}>
{val} δΈ‡
</div>
),
align: 'right',
render: val => `${val} δΈ‡`,
},
{
title: 'ηŠΆζ€',
......
......@@ -177,7 +177,7 @@ export default class Analysis extends Component {
<span style={{ marginRight: 4 }}>{text}%</span>
</Trend>
),
className: styles.alignRight,
align: 'right',
},
];
......
......@@ -131,11 +131,6 @@
}
}
td.alignRight,
th.alignRight {
text-align: right!important;
}
.trendText {
margin-left: 8px;
color: @heading-color;
......
......@@ -99,13 +99,13 @@ export default class BasicProfile extends Component {
title: '单价',
dataIndex: 'price',
key: 'price',
className: 'col-money',
align: 'right',
render: renderContent,
}, {
title: 'ζ•°ι‡οΌˆδ»ΆοΌ‰',
dataIndex: 'num',
key: 'num',
className: 'col-money',
align: 'right',
render: (text, row, index) => {
if (index < basicGoods.length) {
return text;
......@@ -116,7 +116,7 @@ export default class BasicProfile extends Component {
title: '金钝',
dataIndex: 'amount',
key: 'amount',
className: 'col-money',
align: 'right',
render: (text, row, index) => {
if (index < basicGoods.length) {
return text;
......
......@@ -6,9 +6,3 @@
font-weight: 500;
margin-bottom: 16px;
}
:global {
.col-money {
text-align: right!important;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment