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
P
pro-blocks
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
pro-blocks
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 {
...
@@ -59,11 +59,8 @@ class StandardTable extends PureComponent {
title
:
'
服务调用次数
'
,
title
:
'
服务调用次数
'
,
dataIndex
:
'
callNo
'
,
dataIndex
:
'
callNo
'
,
sorter
:
true
,
sorter
:
true
,
render
:
val
=>
(
align
:
'
right
'
,
<
div
style
=
{{
textAlign
:
'
center
'
}}
>
render
:
val
=>
`
${
val
}
万`
,
{
val
}
万
<
/div
>
),
},
},
{
{
title
:
'
状态
'
,
title
:
'
状态
'
,
...
...
src/routes/Dashboard/Analysis.js
View file @
0d00edd8
...
@@ -177,7 +177,7 @@ export default class Analysis extends Component {
...
@@ -177,7 +177,7 @@ export default class Analysis extends Component {
<
span
style
=
{{
marginRight
:
4
}}
>
{
text
}
%<
/span
>
<
span
style
=
{{
marginRight
:
4
}}
>
{
text
}
%<
/span
>
<
/Trend
>
<
/Trend
>
),
),
className
:
styles
.
alignRight
,
align
:
'
right
'
,
},
},
];
];
...
...
src/routes/Dashboard/Analysis.less
View file @
0d00edd8
...
@@ -131,11 +131,6 @@
...
@@ -131,11 +131,6 @@
}
}
}
}
td.alignRight,
th.alignRight {
text-align: right!important;
}
.trendText {
.trendText {
margin-left: 8px;
margin-left: 8px;
color: @heading-color;
color: @heading-color;
...
...
src/routes/Profile/BasicProfile.js
View file @
0d00edd8
...
@@ -99,13 +99,13 @@ export default class BasicProfile extends Component {
...
@@ -99,13 +99,13 @@ export default class BasicProfile extends Component {
title
:
'
单价
'
,
title
:
'
单价
'
,
dataIndex
:
'
price
'
,
dataIndex
:
'
price
'
,
key
:
'
price
'
,
key
:
'
price
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
renderContent
,
render
:
renderContent
,
},
{
},
{
title
:
'
数量(件)
'
,
title
:
'
数量(件)
'
,
dataIndex
:
'
num
'
,
dataIndex
:
'
num
'
,
key
:
'
num
'
,
key
:
'
num
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
(
text
,
row
,
index
)
=>
{
render
:
(
text
,
row
,
index
)
=>
{
if
(
index
<
basicGoods
.
length
)
{
if
(
index
<
basicGoods
.
length
)
{
return
text
;
return
text
;
...
@@ -116,7 +116,7 @@ export default class BasicProfile extends Component {
...
@@ -116,7 +116,7 @@ export default class BasicProfile extends Component {
title
:
'
金额
'
,
title
:
'
金额
'
,
dataIndex
:
'
amount
'
,
dataIndex
:
'
amount
'
,
key
:
'
amount
'
,
key
:
'
amount
'
,
className
:
'
col-money
'
,
align
:
'
right
'
,
render
:
(
text
,
row
,
index
)
=>
{
render
:
(
text
,
row
,
index
)
=>
{
if
(
index
<
basicGoods
.
length
)
{
if
(
index
<
basicGoods
.
length
)
{
return
text
;
return
text
;
...
...
src/routes/Profile/BasicProfile.less
View file @
0d00edd8
...
@@ -6,9 +6,3 @@
...
@@ -6,9 +6,3 @@
font-weight: 500;
font-weight: 500;
margin-bottom: 16px;
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