<template>
	<view class="my-collapse-card">
		<view class="my-collapse-item" :class="{'item-open': open}">
			<text class="collapse-text">{{title}} --- {{open}}</text>
			<icon class="collapse-item-icon"></icon>
		</view>
		<view class="my-card-content" :class="{'content-open': open}">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "myCollapseCard",
		props: {
			title: {
				type: String
			},
			open: {
				type:Boolean
			}
		},
	}
</script>
