【解决todo】角色仓库,公共仓库不显示更多操作

This commit is contained in:
cherishsince 2024-05-21 11:40:15 +08:00
parent 8c81a9fc19
commit 939e3790ee
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<div class="card-item" v-for="role in roleList" :key="role.id">
<el-card class="card" body-class="card-body">
<!-- 更多 -->
<div class="more-container">
<div class="more-container" v-if="showMore">
<el-dropdown @command="handleMoreClick">
<span class="el-dropdown-link">
<el-button type="text" >
@ -58,6 +58,11 @@ const props = defineProps({
roleList: {
type: Array as PropType<ChatRoleVO[]>,
required: true
},
showMore: {
type: Boolean,
required: false,
default: false
}
})
//

View File

@ -30,6 +30,7 @@
<RoleList
:loading="loading"
:role-list="myRoleList"
:show-more="true"
@on-delete="handlerCardDelete"
@on-edit="handlerCardEdit"
@on-use="handlerCardUse"
@ -49,7 +50,7 @@
@on-edit="handlerCardEdit"
@on-page="handlerCardPage('public')"
style="margin-top: 20px;"
/>
loading/>
</el-tab-pane>
</el-tabs>
</el-main>