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
a7e8ab1e
Commit
a7e8ab1e
authored
Jul 16, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:预览弹窗添加icon
parent
d9b27ab7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/modules/course-manage/video-course/components/ChapterList.jsx
+5
-1
src/modules/course-manage/video-course/components/ChapterList.less
+9
-3
No files found.
src/modules/course-manage/video-course/components/ChapterList.jsx
View file @
a7e8ab1e
import
React
from
'react'
;
import
'./ChapterList.less'
;
import
{
FileTypeIcon
}
from
'@/common/constants/academic/lessonEnum'
const
FileTypeIconMap
=
FileTypeIcon
;
function
ChapterList
(
props
){
const
{
courseChapterList
}
=
props
;
...
...
@@ -9,7 +12,8 @@ function ChapterList(props){
{
_
.
map
(
courseChapterList
,(
item
,
index
)
=>
{
return
<
div
className=
'course-ware'
>
<
div
className=
'course-ware__index'
>
{
index
<
9
?
`0${index + 1 } `
:
`${index + 1 } `
}
</
div
>
<
img
className=
'course-ware__img'
src=
{
FileTypeIconMap
[
item
.
mediaType
]
}
alt=
''
/>
<
div
className=
'course-ware__index'
>
{
index
<
9
?
`0${index + 1 }`
:
`${index + 1 }`
}
</
div
>
<
div
className=
"course-ware__detail"
>
<
div
className=
'course-ware__detail__name'
>
{
item
.
mediaName
}
</
div
>
{
item
.
mediaType
===
'VIDEO'
&&
...
...
src/modules/course-manage/video-course/components/ChapterList.less
View file @
a7e8ab1e
...
...
@@ -14,18 +14,24 @@
font-weight: 500;
color: #999999;
line-height: 18px;
white-space: nowrap;
margin-left: 8px;
margin-right: 6px;
line-height: 20px;
}
&__img {
width: 20px;
height: 20px;
}
&__detail {
display: flex;
flex-direction: column;
width: calc(~'100% - 18px');
&__name {
width: 267px;
font-size: 13px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 2
1
px;
line-height: 2
0
px;
margin-bottom: 4px;
}
&__duration {
...
...
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