<template>
<view class="u-cell-box">
<view class="u-cell-title" v-if="title" :style="[titleStyle]">{{title}}</view>
<view class="u-cell-item-box" :class="{'u-border-bottom u-border-top': border}">
<slot />
</view>
</view>
</template>
<script>
export default {
name: 'u-cell-group',
props: {
title: {
type: String,
default: ''
},
border: {
type: Boolean,
default: true
},
titleStyle: {
type: Object,
default() {
return {}
}
}
},
data() {
return {
index: 0
}
}
}
</script>
<style lang="scss" scoped>
@import '../../libs/css/style.components.scss';
.u-cell-box {
width: 100%;
}
.u-cell-title {
padding: 15rpx 16rpx 5rpx 16rpx;
font-size: 15rpx;
text-align: left;
color: #909399;
}
.u-cell-item-box {
background-color: #ffffff;
}
</style>