mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 13:42:50 +00:00
优化
This commit is contained in:
parent
8ada932c8c
commit
973320cea7
@ -129,7 +129,7 @@
|
|||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content" v-if="selected">
|
<div class="content" v-if="selected || config.custom">
|
||||||
<slot name="right"></slot>
|
<slot name="right"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -173,7 +173,8 @@ const config = reactive(
|
|||||||
service: {},
|
service: {},
|
||||||
enableContextMenu: true,
|
enableContextMenu: true,
|
||||||
enableRefresh: true,
|
enableRefresh: true,
|
||||||
enableAdd: true
|
enableAdd: true,
|
||||||
|
custom: false
|
||||||
},
|
},
|
||||||
inject("useViewGroup__options")
|
inject("useViewGroup__options")
|
||||||
)
|
)
|
||||||
@ -418,13 +419,15 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
list,
|
||||||
selected,
|
selected,
|
||||||
isExpand,
|
isExpand,
|
||||||
expand,
|
expand,
|
||||||
select,
|
select,
|
||||||
browser,
|
browser,
|
||||||
edit,
|
edit,
|
||||||
remove
|
remove,
|
||||||
|
refresh
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,8 @@ export default (): ModuleConfig => {
|
|||||||
label: "视图组件",
|
label: "视图组件",
|
||||||
description: "左右侧布局、顶部详情等",
|
description: "左右侧布局、顶部详情等",
|
||||||
author: "COOL",
|
author: "COOL",
|
||||||
version: "1.0.1",
|
version: "1.0.2",
|
||||||
updateTime: "2024-02-19",
|
updateTime: "2024-02-26",
|
||||||
demo: [
|
demo: [
|
||||||
{
|
{
|
||||||
name: "左右侧布局",
|
name: "左右侧布局",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user