【解决todo】角色仓库,公共仓库不显示更多操作
This commit is contained in:
parent
8c81a9fc19
commit
939e3790ee
@ -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
|
||||
}
|
||||
})
|
||||
// 定义钩子
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user