diff --git a/src/global.less b/src/global.less index fccd7e835aa07b44811beb7ce65a16bee02dce15..1450ba46b17daf355a169563d975693f17170ff0 100644 --- a/src/global.less +++ b/src/global.less @@ -1,3 +1,5 @@ +@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; + } + } + } + } +} diff --git a/src/pages/List/TableList.js b/src/pages/List/TableList.js index 13f5fb60d04ebfd2dbb78420bfb36e600aa8c12e..131d61aaa53af56f84b707d8cc78417843720307 100644 --- a/src/pages/List/TableList.js +++ b/src/pages/List/TableList.js @@ -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 {