Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
b095b0bc
Commit
b095b0bc
authored
Jan 25, 2019
by
ιεΈ
Committed by
ιε°θͺ
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add responsive-table (#3472)
parent
cca3b70d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
src/global.less
src/global.less
+19
-0
src/pages/List/TableList.js
src/pages/List/TableList.js
+1
-2
No files found.
src/global.less
View file @
b095b0bc
@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;
}
}
}
}
}
src/pages/List/TableList.js
View file @
b095b0bc
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment