You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
527 B
Vue
36 lines
527 B
Vue
<template>
|
|
<view class="card">
|
|
<view class="title" v-if="!hideTitle">{{title}}</view>
|
|
<view class="content">
|
|
<slot></slot>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
title: String,
|
|
hideTitle: Boolean
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.card {
|
|
width: 630rpx;
|
|
border-radius: 10rpx;
|
|
background-color: #fff;
|
|
margin-left: 30rpx;
|
|
display: inline-block;
|
|
position: relative;
|
|
padding: 30rpx;
|
|
|
|
.title {
|
|
color: #333;
|
|
font-size: 32rpx
|
|
}
|
|
|
|
.content {
|
|
margin-top: 30rpx;
|
|
}
|
|
}
|
|
</style> |