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
9dd083d3
Commit
9dd083d3
authored
Jul 12, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3b1ae067
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+3
-2
src/modules/knowledge-base/components/KnowledgeBaseList.less
+5
-8
No files found.
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
9dd083d3
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
import
React
from
"react"
;
import
React
from
"react"
;
import
{
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
,
Button
}
from
"antd"
;
import
{
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
,
Button
}
from
"antd"
;
import
{
FileTypeIcon
,
FileVerifyMap
}
from
'@/common/constants/academic/lessonEnum'
;
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
PageControl
,
XMTable
}
from
"@/components"
;
import
{
PageControl
,
XMTable
}
from
"@/components"
;
import
{
LIVE_SHARE_MAP
}
from
"@/common/constants/academic/cloudClass"
;
import
{
LIVE_SHARE_MAP
}
from
"@/common/constants/academic/cloudClass"
;
...
@@ -181,7 +182,7 @@ class KnowledgeBaseList extends React.Component {
...
@@ -181,7 +182,7 @@ class KnowledgeBaseList extends React.Component {
const
{
current
,
size
}
=
query
const
{
current
,
size
}
=
query
const
columns
=
[
const
columns
=
[
{
{
title
:
"
课程
名称"
,
title
:
"名称"
,
key
:
"name"
,
key
:
"name"
,
dataIndex
:
"name"
,
dataIndex
:
"name"
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
...
@@ -194,7 +195,7 @@ class KnowledgeBaseList extends React.Component {
...
@@ -194,7 +195,7 @@ class KnowledgeBaseList extends React.Component {
onClick=
{
()
=>
{
onClick=
{
()
=>
{
this
.
handleScanFile
(
record
.
source
)
this
.
handleScanFile
(
record
.
source
)
}
}
>
}
}
>
<
div
className=
{
`folder-type ${record.source && record.source.folderFormat}`
}
/>
<
img
src=
{
FileTypeIcon
[
record
.
source
.
folderFormat
]
}
style=
{
{
width
:
24
,
height
:
24
}
}
alt=
''
className=
'item-img'
/>
{
val
.
length
>
25
?
(
{
val
.
length
>
25
?
(
<
Tooltip
title=
{
val
}
>
<
Tooltip
title=
{
val
}
>
<
div
className=
'course-name clamp'
>
{
val
}
</
div
>
<
div
className=
'course-name clamp'
>
{
val
}
</
div
>
...
...
src/modules/knowledge-base/components/KnowledgeBaseList.less
View file @
9dd083d3
...
@@ -109,7 +109,10 @@
...
@@ -109,7 +109,10 @@
.knowledge-base-list {
.knowledge-base-list {
.record__item {
.record__item {
display: flex;
display: flex;
// align-items: center;
align-items: center;
.item-img{
margin-right: 4px;
}
.course-cover {
.course-cover {
min-width: 107px;
min-width: 107px;
max-width: 90px;
max-width: 90px;
...
@@ -153,13 +156,7 @@
...
@@ -153,13 +156,7 @@
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
height: 20px;
height: 20px;
&.clamp {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
white-space: normal;
height: 40px;
}
}
}
.course-time {
.course-time {
font-size: 12px;
font-size: 12px;
...
...
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