!91 update package/component/src/component/layout/index.vue.

Merge pull request !91 from 蒲公英/N/A
This commit is contained in:
就眠儀式 2022-09-22 16:36:37 +00:00 committed by Gitee
commit 8a7dadde20
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7,6 +7,7 @@ export default {
<script setup lang="ts">
import { Component, computed, useSlots } from "vue";
import Header from "../header/index.vue";
import Footer from "../footer/index.vue";
import "./index.less";
export interface LayLayoutProps {
@ -25,7 +26,7 @@ const isVertical = computed(() => {
return vNodes.some((vNode) => {
const componentName = (vNode.type as Component).name;
if (!componentName) return false;
return [Header.name].includes(componentName);
return [Header.name].includes(componentName) || [Footer.name].includes(componentName);
});
});