Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
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
index.js
src/components/StandardTable/index.js
+2
-5
Analysis.js
src/routes/Dashboard/Analysis.js
+1
-1
Analysis.less
src/routes/Dashboard/Analysis.less
+0
-5
BasicProfile.js
src/routes/Profile/BasicProfile.js
+3
-3
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