Skip to content

Layouts

系统布局

Usage

vue
<template>
  <CubLayout />
</template>

<script setup lang="ts">
import { CubLayout } from 'cub-admin';
</script>
<template>
  <CubLayout />
</template>

<script setup lang="ts">
import { CubLayout } from 'cub-admin';
</script>

Props

参数说明类型可选值默认值
noTagsView不显示tagsView标签栏boolean-false
noCache不缓存,为true时,路由元信息中未配置noCache的页面组件也将不再缓存boolean-false

Slots

name说明
logo系统logo,参数为 { isCollapse }
sideMenuBefore菜单顶部插槽,参数为 { isCollapse }
sideMenuAfter菜单底部插槽,参数为 { isCollapse }
headerLeftheader左边插入的内容
headerToolsheader工具栏
headerRightheader最右边插入的内容,一般放置头像等内容
tagsView自定义tagsView标签栏
mainBefore主内容区之前插入的内容
mainAfter主内容区之后插入的内容

Released under the MIT License.