源文件
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view class="content-wrapper" :style="{ backgroundColor: bgColor, padding: pd }"><slot /></view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: '#fff'
|
||||
},
|
||||
pd: {
|
||||
type: String,
|
||||
default: '25rpx 50rpx 0 50rpx'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content-wrapper {
|
||||
border-radius: 32rpx 32rpx 0 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user