<template>
	<view class="cell component" v-if="$slots.default || title" @click="(e)=>$emit('click',e)">
		<view class="cell-button a-ov" @click="toPage()">
			<slot>
				<text>{{title}}</text>
				<text class="cell-button__sub">{{content}}</text>
			</slot>
		</view>
	</view>
</template>

<script>
	export default {
		name:"Cell",
		props: [ 'title', 'content', 'path' ],
		data() {
			return {
				
			};
		},
		methods: {
			toPage() {
				uni.navigateTo({
					url: this.path
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
.cell.component{
	.cell-button{
		margin: 10rpx 20rpx;
		border-radius: 10rpx;
		padding: 20rpx 20rpx;
		font-size: 28rpx;
		box-shadow: 0px 1px 4px 0px rgba(255, 81, 40, 0.1);
		background-color: white;
		color: #333333;
	}
	.cell-button__sub{
		font-size: 20rpx;
		margin-left: 5rpx;
		color: #aaaaaa;
	}
}
</style>
