Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
8c09d74f
Commit
8c09d74f
authored
Apr 16, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 知识库列表页面增加icon用于区分不同的知识库类型
parent
8bb61cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
columns.tsx
src/views/personal-space/personal-knowledge/columns.tsx
+11
-2
No files found.
src/views/personal-space/personal-knowledge/columns.tsx
View file @
8c09d74f
import
{
NSwitch
}
from
'naive-ui'
import
{
N
Ellipsis
,
N
Switch
}
from
'naive-ui'
import
{
KnowledgeDocumentItem
,
KnowledgeItem
}
from
'./types.d'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
i18n
from
'@/locales'
import
{
KnowledgeTypeIcon
}
from
'@/enums/knowledge'
const
t
=
i18n
.
global
.
t
...
...
@@ -19,7 +20,15 @@ export function createKnowledgeColumn(
width
:
210
,
fixed
:
'left'
,
render
(
row
:
KnowledgeItem
)
{
return
row
.
knowledgeName
||
'--'
return
(
<
div
class=
'flex items-center gap-[10px]'
>
<
div
class=
'h-[22px] w-[22px] flex-shrink-0 bg-contain bg-no-repeat'
style=
{
{
backgroundImage
:
`url(${KnowledgeTypeIcon[row.knowledgeType]})`
}
}
/>
<
NEllipsis
class=
'flex-1'
>
{
row
.
knowledgeName
||
'--'
}
</
NEllipsis
>
</
div
>
)
},
},
{
...
...
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