Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
610ef3d7
Commit
610ef3d7
authored
Mar 04, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:优化样式
parent
1d7da8f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/modules/home/Home.jsx
+1
-1
src/modules/home/Home.less
+3
-3
No files found.
src/modules/home/Home.jsx
View file @
610ef3d7
...
@@ -327,7 +327,7 @@ class Home extends React.Component {
...
@@ -327,7 +327,7 @@ class Home extends React.Component {
:
list
.
map
((
item
,
index
)
=>
(
:
list
.
map
((
item
,
index
)
=>
(
<
div
className=
{
`table-item${index % 2 ? '' : ' odd'}`
}
key=
{
item
.
id
}
>
<
div
className=
{
`table-item${index % 2 ? '' : ' odd'}`
}
key=
{
item
.
id
}
>
{
index
<
3
?
{
index
<
3
?
<
img
src=
{
this
.
showNumber
(
index
)
}
className=
"table-image"
/
>
<
span
className=
"table-number"
><
img
src=
{
this
.
showNumber
(
index
)
}
className=
"table-image"
/></
span
>
:
<
span
className=
"table-number"
>
{
index
+
1
}
</
span
>
:
<
span
className=
"table-number"
>
{
index
+
1
}
</
span
>
}
}
<
div
className=
"table-data"
>
<
div
className=
"table-data"
>
...
...
src/modules/home/Home.less
View file @
610ef3d7
...
@@ -172,15 +172,15 @@
...
@@ -172,15 +172,15 @@
.table-image {
.table-image {
width: 24px;
width: 24px;
height: 24px;
height: 24px;
margin: 0 16px;
}
}
.table-number {
.table-number {
width: 1
0
%;
width: 1
5
%;
color: #999;
color: #999;
padding: 0 16px;
padding: 0 16px;
text-align: center;
}
}
.table-data {
.table-data {
width:
60
%;
width:
55
%;
padding: 0 16px;
padding: 0 16px;
.table-name {
.table-name {
color: #333;
color: #333;
...
...
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