【解决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">
|
<div class="card-item" v-for="role in roleList" :key="role.id">
|
||||||
<el-card class="card" body-class="card-body">
|
<el-card class="card" body-class="card-body">
|
||||||
<!-- 更多 -->
|
<!-- 更多 -->
|
||||||
<div class="more-container">
|
<div class="more-container" v-if="showMore">
|
||||||
<el-dropdown @command="handleMoreClick">
|
<el-dropdown @command="handleMoreClick">
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
<el-button type="text" >
|
<el-button type="text" >
|
||||||
@ -58,6 +58,11 @@ const props = defineProps({
|
|||||||
roleList: {
|
roleList: {
|
||||||
type: Array as PropType<ChatRoleVO[]>,
|
type: Array as PropType<ChatRoleVO[]>,
|
||||||
required: true
|
required: true
|
||||||
|
},
|
||||||
|
showMore: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 定义钩子
|
// 定义钩子
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
<RoleList
|
<RoleList
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:role-list="myRoleList"
|
:role-list="myRoleList"
|
||||||
|
:show-more="true"
|
||||||
@on-delete="handlerCardDelete"
|
@on-delete="handlerCardDelete"
|
||||||
@on-edit="handlerCardEdit"
|
@on-edit="handlerCardEdit"
|
||||||
@on-use="handlerCardUse"
|
@on-use="handlerCardUse"
|
||||||
@ -49,7 +50,7 @@
|
|||||||
@on-edit="handlerCardEdit"
|
@on-edit="handlerCardEdit"
|
||||||
@on-page="handlerCardPage('public')"
|
@on-page="handlerCardPage('public')"
|
||||||
style="margin-top: 20px;"
|
style="margin-top: 20px;"
|
||||||
/>
|
loading/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
Loading…
Reference in New Issue
Block a user