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
0d00edd8
Commit
0d00edd8
authored
Nov 21, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Table column.align
parent
9924514b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
20 deletions
+6
-20
src/components/StandardTable/index.js
src/components/StandardTable/index.js
+2
-5
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+1
-1
src/routes/Dashboard/Analysis.less
src/routes/Dashboard/Analysis.less
+0
-5
src/routes/Profile/BasicProfile.js
src/routes/Profile/BasicProfile.js
+3
-3
src/routes/Profile/BasicProfile.less
src/routes/Profile/BasicProfile.less
+0
-6
No files found.
src/components/StandardTable/index.js
View file @
0d00edd8
...
...
@@ -59,11 +59,8 @@ class StandardTable extends PureComponent {
title
:
'
ζε‘θ°η¨ζ¬‘ζ°
'
,
dataIndex
:
'
callNo
'
,
sorter
:
true
,
render
:
val
=>
(
<
div
style
=
{{
textAlign
:
'
center
'
}}
>
{
val
}
δΈ
<
/div
>
),
align
:
'
right
'
,
render
:
val
=>
`
${
val
}
δΈ`
,
},
{
title
:
'
ηΆζ
'
,
...
...
src/routes/Dashboard/Analysis.js
View file @
0d00edd8
...
...
@@ -177,7 +177,7 @@ export default class Analysis extends Component {
<
span
style
=
{{
marginRight
:
4
}}
>
{
text
}
%<
/span
>
<
/Trend
>
),
className
:
styles
.
alignRight
,
align
:
'
right
'
,
},
];
...
...
src/routes/Dashboard/Analysis.less
View file @
0d00edd8
...
...
@@ -131,11 +131,6 @@
}
}
td.alignRight,
th.alignRight {
text-align: right!important;
}
.trendText {
margin-left: 8px;
color: @heading-color;
...
...
src/routes/Profile/BasicProfile.js
View file @
0d00edd8
...
...
@@ -99,13 +99,13 @@ export default class BasicProfile extends Component {
title
:
'
εδ»·
'
,
dataIndex
:
'
price
'
,
key
:
'
price
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
renderContent
,
},
{
title
:
'
ζ°ιοΌδ»ΆοΌ
'
,
dataIndex
:
'
num
'
,
key
:
'
num
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
(
text
,
row
,
index
)
=>
{
if
(
index
<
basicGoods
.
length
)
{
return
text
;
...
...
@@ -116,7 +116,7 @@ export default class BasicProfile extends Component {
title
:
'
ιι’
'
,
dataIndex
:
'
amount
'
,
key
:
'
amount
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
(
text
,
row
,
index
)
=>
{
if
(
index
<
basicGoods
.
length
)
{
return
text
;
...
...
src/routes/Profile/BasicProfile.less
View file @
0d00edd8
...
...
@@ -6,9 +6,3 @@
font-weight: 500;
margin-bottom: 16px;
}
:global {
.col-money {
text-align: right!important;
}
}
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