提交 b095b0bc 编写于 作者: 陈帅 提交者: 陈小聪

add responsive-table (#3472)

上级 cca3b70d
@import '~antd/lib/style/themes/default.less';
html,
body,
#root {
......@@ -31,3 +33,20 @@ ul,
ol {
list-style: none;
}
@media (max-width: @screen-xs) {
.ant-table {
width: 100%;
overflow-x: auto;
&-thead > tr,
&-tbody > tr {
> th,
> td {
white-space: pre;
> span {
display: block;
}
}
}
}
}
......@@ -301,7 +301,6 @@ class TableList extends PureComponent {
title: '服务调用次数',
dataIndex: 'callNo',
sorter: true,
align: 'right',
render: val => `${val} 万`,
// mark to display a total number
needTotal: true,
......@@ -598,7 +597,7 @@ class TableList extends PureComponent {
</Col>
</Row>
<div style={{ overflow: 'hidden' }}>
<div style={{ float: 'right', marginBottom: 24 }}>
<div style={{ marginBottom: 24 }}>
<Button type="primary" htmlType="submit">
查询
</Button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册