Commit 0d00edd8 authored by afc163's avatar afc163

use Table column.align

parent 9924514b
...@@ -59,11 +59,8 @@ class StandardTable extends PureComponent { ...@@ -59,11 +59,8 @@ class StandardTable extends PureComponent {
title: '服务调用次数', title: '服务调用次数',
dataIndex: 'callNo', dataIndex: 'callNo',
sorter: true, sorter: true,
render: val => ( align: 'right',
<div style={{ textAlign: 'center' }}> render: val => `${val} 万`,
{val}
</div>
),
}, },
{ {
title: '状态', title: '状态',
......
...@@ -177,7 +177,7 @@ export default class Analysis extends Component { ...@@ -177,7 +177,7 @@ export default class Analysis extends Component {
<span style={{ marginRight: 4 }}>{text}%</span> <span style={{ marginRight: 4 }}>{text}%</span>
</Trend> </Trend>
), ),
className: styles.alignRight, align: 'right',
}, },
]; ];
......
...@@ -131,11 +131,6 @@ ...@@ -131,11 +131,6 @@
} }
} }
td.alignRight,
th.alignRight {
text-align: right!important;
}
.trendText { .trendText {
margin-left: 8px; margin-left: 8px;
color: @heading-color; color: @heading-color;
......
...@@ -99,13 +99,13 @@ export default class BasicProfile extends Component { ...@@ -99,13 +99,13 @@ export default class BasicProfile extends Component {
title: '单价', title: '单价',
dataIndex: 'price', dataIndex: 'price',
key: 'price', key: 'price',
className: 'col-money', align: 'right',
render: renderContent, render: renderContent,
}, { }, {
title: '数量(件)', title: '数量(件)',
dataIndex: 'num', dataIndex: 'num',
key: 'num', key: 'num',
className: 'col-money', align: 'right',
render: (text, row, index) => { render: (text, row, index) => {
if (index < basicGoods.length) { if (index < basicGoods.length) {
return text; return text;
...@@ -116,7 +116,7 @@ export default class BasicProfile extends Component { ...@@ -116,7 +116,7 @@ export default class BasicProfile extends Component {
title: '金额', title: '金额',
dataIndex: 'amount', dataIndex: 'amount',
key: 'amount', key: 'amount',
className: 'col-money', align: 'right',
render: (text, row, index) => { render: (text, row, index) => {
if (index < basicGoods.length) { if (index < basicGoods.length) {
return text; return text;
......
...@@ -6,9 +6,3 @@ ...@@ -6,9 +6,3 @@
font-weight: 500; font-weight: 500;
margin-bottom: 16px; 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