Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TianGongKaiWu-20251203
Commits
7229075b
Commit
7229075b
authored
Dec 15, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(positionpop): 调整利润和比率显示样式及数据格式
- 使用flex布局替代text-align居中 - 在组件中为利润和比率添加百分号显示 - 简化mock数据中的产品名称并移除百分号
parent
0192298e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
main.ts
mock/main.ts
+11
-11
positionpop.jsx
src/panels/positionpop/positionpop.jsx
+2
-2
positionpop.less
src/panels/positionpop/positionpop.less
+4
-1
No files found.
mock/main.ts
View file @
7229075b
...
...
@@ -399,29 +399,29 @@ export default [
data
:
{
"holdInfo"
:[
{
productName
:
'华夏理财固收增强
最短持有120天A款A
'
,
profit
:
'17.72
%
'
,
ratio
:
'35.50
%
'
,
productName
:
'华夏理财固收增强'
,
profit
:
'17.72'
,
ratio
:
'35.50'
,
},
{
productName
:
'华夏理财固收增强 最短持有120天A款B'
,
profit
:
'17.72
%
'
,
ratio
:
'35.50
%
'
,
profit
:
'17.72'
,
ratio
:
'35.50'
,
},
{
productName
:
'华夏理财固收增强 最短持有120天A款C'
,
profit
:
'17.72
%
'
,
ratio
:
'35.50
%
'
,
profit
:
'17.72'
,
ratio
:
'35.50'
,
},
{
productName
:
'华夏理财固收增强 最短持有120天A款D'
,
profit
:
'17.72
%
'
,
ratio
:
'35.50
%
'
,
profit
:
'17.72'
,
ratio
:
'35.50'
,
},
{
productName
:
'华夏理财固收增强 最短持有120天A款E'
,
profit
:
'17.72
%
'
,
ratio
:
'35.50
%
'
,
profit
:
'17.72'
,
ratio
:
'35.50'
,
},
]
}
...
...
src/panels/positionpop/positionpop.jsx
View file @
7229075b
...
...
@@ -55,8 +55,8 @@ class Positionpop extends React.Component {
<
span
className=
"productName"
>
{
item
.
productName
}
</
span
>
<
span
className=
"profit"
>
{
item
.
profit
}
</
span
>
<
span
className=
"ratio"
>
{
item
.
ratio
}
</
span
>
<
span
className=
"profit"
>
{
item
.
profit
}
%
</
span
>
<
span
className=
"ratio"
>
{
item
.
ratio
}
%
</
span
>
</
div
>
))
}
...
...
src/panels/positionpop/positionpop.less
View file @
7229075b
...
...
@@ -142,7 +142,10 @@
height: 45px;
font-size: 20px;
color: rgba(99, 38, 6, 1);
text-align: center;
// text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.profit {
...
...
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