Commit b095b0bc authored by ι™ˆεΈ…'s avatar ι™ˆεΈ… Committed by ι™ˆε°θͺ

add responsive-table (#3472)

parent cca3b70d
@import '~antd/lib/style/themes/default.less';
html, html,
body, body,
#root { #root {
...@@ -31,3 +33,20 @@ ul, ...@@ -31,3 +33,20 @@ ul,
ol { ol {
list-style: none; 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 { ...@@ -301,7 +301,6 @@ class TableList extends PureComponent {
title: 'ζœεŠ‘θ°ƒη”¨ζ¬‘ζ•°', title: 'ζœεŠ‘θ°ƒη”¨ζ¬‘ζ•°',
dataIndex: 'callNo', dataIndex: 'callNo',
sorter: true, sorter: true,
align: 'right',
render: val => `${val} δΈ‡`, render: val => `${val} δΈ‡`,
// mark to display a total number // mark to display a total number
needTotal: true, needTotal: true,
...@@ -598,7 +597,7 @@ class TableList extends PureComponent { ...@@ -598,7 +597,7 @@ class TableList extends PureComponent {
</Col> </Col>
</Row> </Row>
<div style={{ overflow: 'hidden' }}> <div style={{ overflow: 'hidden' }}>
<div style={{ float: 'right', marginBottom: 24 }}> <div style={{ marginBottom: 24 }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
ζŸ₯θ―’ ζŸ₯θ―’
</Button> </Button>
......
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