Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
68762e73
authored
May 17, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】处理 AI 角色搜索换行问题
parent
d5ffc80e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
30 deletions
+37
-30
src/views/ai/chat/role/RoleList.vue
+37
-30
No files found.
src/views/ai/chat/role/RoleList.vue
View file @
68762e73
<
template
>
<
template
>
<div
class=
"card-list"
ref=
"tabsRef"
@
scroll=
"handleTabsScroll"
>
<div
class=
"card-list"
ref=
"tabsRef"
@
scroll=
"handleTabsScroll"
>
<el-card
class=
"card"
body-class=
"card-body"
v-for=
"role in roleList"
:key=
"role.id"
>
<div
class=
"card-item"
v-for=
"role in roleList"
:key=
"role.id"
>
<!-- 更多 -->
<el-card
class=
"card"
body-class=
"card-body"
>
<div
class=
"more-container"
>
<!-- 更多 -->
<el-dropdown
@
command=
"handleMoreClick"
>
<div
class=
"more-container"
>
<el-dropdown
@
command=
"handleMoreClick"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<el-button
type=
"text"
>
<el-button
type=
"text"
>
<el-icon><More
/></el-icon>
<el-icon><More
/></el-icon>
</el-button>
</el-button>
</span>
</span>
<template
#
dropdown
>
<template
#
dropdown
>
<el-dropdown-menu>
<el-dropdown-menu>
<el-dropdown-item
:command=
"['edit', role]"
>
<el-dropdown-item
:command=
"['edit', role]"
>
<el-icon><EditPen
/></el-icon>
编辑
<el-icon><EditPen
/></el-icon>
编辑
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
:command=
"['delete', role]"
style=
"color: red;"
>
<el-dropdown-item
:command=
"['delete', role]"
style=
"color: red;"
>
<el-icon><Delete
/></el-icon>
<el-icon><Delete
/></el-icon>
<span>
删除
</span>
<span>
删除
</span>
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
</el-dropdown>
</el-dropdown>
</div>
</div>
<!-- 头像 -->
<!-- 头像 -->
<div>
<div>
<img
class=
"avatar"
:src=
"role.avatar"
/>
<img
class=
"avatar"
:src=
"role.avatar"
/>
</div>
<div
class=
"right-container"
>
<div
class=
"content-container"
>
<div
class=
"title"
>
{{ role.name }}
</div>
<div
class=
"description"
>
{{ role.description }}
</div>
</div>
</div>
<div
class=
"btn-container"
>
<div
class=
"right-container"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleUseClick(role)"
>
使用
</el-button>
<div
class=
"content-container"
>
<div
class=
"title"
>
{{ role.name }}
</div>
<div
class=
"description"
>
{{ role.description }}
</div>
</div>
<div
class=
"btn-container"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleUseClick(role)"
>
使用
</el-button>
</div>
</div>
</div>
</
div
>
</
el-card
>
</
el-card
>
</
div
>
</div>
</div>
</template>
</template>
...
@@ -121,12 +123,17 @@ onMounted(() => {
...
@@ -121,12 +123,17 @@ onMounted(() => {
height
:
100%
;
height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
padding
:
0px
25px
;
padding
:
0px
25px
;
align-items
:
start
;
align-content
:
flex-start
;
justify-content
:
start
;
.card
{
.card
{
display
:
inline-block
;
margin-right
:
20px
;
margin-right
:
20px
;
border-radius
:
10px
;
border-radius
:
10px
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
position
:
relative
;
position
:
relative
;
//
max-height
:
152px
;
.more-container
{
.more-container
{
position
:
absolute
;
position
:
absolute
;
...
...
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