<template>
	<view class="data-content-item">
		<view class="list-time-box">
			<view class="time-data">{{ formatDate[1] }}</view>
			<view class="time-year">{{ formatDate[0] }}</view>
		</view>
		<p v-html="data.title"></p>
	</view>
</template>

<script setup>
	import {
		formatDateToYearMonthDay
	} from "@/utils/common.js"
	import {
		computed
	} from "vue"

	const props = defineProps({
		data: {
			type: Object
		}
	})

	const formatDate = computed(() => {
		return formatDateToYearMonthDay(props.data.createTime)
	})
</script>

<style>
</style>