Files
shoot-miniprograms/src/components/Container.vue
2025-06-02 14:42:07 +08:00

37 lines
623 B
Vue

<script setup>
import AppBackground from "@/components/AppBackground.vue";
import Header from "@/components/Header.vue";
defineProps({
title: {
type: String,
default: "",
},
bgType: {
type: Number,
default: 0,
},
});
</script>
<template>
<view>
<AppBackground :bgType="bgType" />
<Header :title="title" />
<view class="content">
<slot></slot>
</view>
</view>
</template>
<style scoped>
.content {
width: 100%;
height: calc(100vh - 96px);
overflow: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
</style>