no message
Former-commit-id: d7106d025703b65fd309a8feaf399c3675babfc4 Former-commit-id: 227ac204f64b9799296d9b65e80e963ec90f5320 Former-commit-id: 342e6cbb22bfeea72cffdf552b42edb8621e084f
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<slot name="header"></slot>
|
||||
<slot></slot>
|
||||
</div>
|
||||
<!-- [card-full] 撑满 -->
|
||||
<card-full v-if="type === 'card-full'" :right="10" :bottom="0">
|
||||
<!-- [container-full] 撑满 -->
|
||||
<container-full v-if="type === 'card-full'" :right="10" :bottom="0">
|
||||
<slot v-if="$slots.header" name="header" slot="header"></slot>
|
||||
<slot></slot>
|
||||
<slot v-if="$slots.footer" name="footer" slot="footer"></slot>
|
||||
</card-full>
|
||||
</container-full>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -34,6 +34,9 @@ export default {
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
containerFull: () => import('../ContainerFull/index.vue')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
return {
|
||||
menus: [
|
||||
{
|
||||
path: '/a',
|
||||
path: '/demo/components/container/card-full',
|
||||
title: 'menu-a',
|
||||
icon: 'plus'
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-container class="layout-main" :class="theme">
|
||||
<el-container class="layout-main theme" :class="theme">
|
||||
<!-- 顶栏 -->
|
||||
<el-header>
|
||||
<div class="logo-group" :style="{width: collapse ? asideWidthCollapse : asideWidth}">
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
theme: 'classic',
|
||||
theme: 'theme-star',
|
||||
collapse: false,
|
||||
// [侧边栏宽度] 正常状态
|
||||
asideWidth: '200px',
|
||||
|
||||
Reference in New Issue
Block a user