30 lines
586 B
Vue
30 lines
586 B
Vue
|
|
<template>
|
||
|
|
<div class="container">
|
||
|
|
<h1 class="title">{{ props.title }}</h1>
|
||
|
|
<div>
|
||
|
|
<slot></slot>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
const props = defineProps<{
|
||
|
|
title: string;
|
||
|
|
}>();
|
||
|
|
</script>
|
||
|
|
<style scoped lang="less">
|
||
|
|
.container {
|
||
|
|
border: 1px solid var(--BG-300, rgba(230, 230, 232, 1));
|
||
|
|
background: var(--BG-white, rgba(255, 255, 255, 1));
|
||
|
|
padding: 16px 24px 20px 24px;
|
||
|
|
}
|
||
|
|
.title {
|
||
|
|
font-family: Alibaba PuHuiTi, serif;
|
||
|
|
font-weight: 400;
|
||
|
|
font-size: 18px;
|
||
|
|
line-height: 24px;
|
||
|
|
vertical-align: middle;
|
||
|
|
margin-bottom: 0px;
|
||
|
|
}
|
||
|
|
</style>
|