<template>
	<view>
		<!-- 模态框 -->
		<view class="cu-modal" :class="show?'show':''">
			<view class="cu-dialog">
				<view class="padding-xl" style="background-color: #ffffff;">
					<view class="text-bold text-lg margin-bottom-sm">任务进度</view>
					
					<view class="cu-timeline">
						<view class="cu-item text-main-color" v-for="(item, index) in arr" :key="index">
							<view class="content shadow-blur" style="text-align: left;padding: 15upx 20upx;">
								<view><text style="color: black;">{{item.content}}</text></view>
								<text style="color: #999999;font-size: 24upx;">{{item.createTime}}</text>
							</view>
						</view>
					</view>
				</view>
				<view class="cu-bar bg-white solid-top">
					<view class="action margin-0 flex-sub text-black solid-left" data-modal="taskProcessDetail"
						@tap="hideModal">关闭</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'taskProcessDetail',
		emits: ['confirmFeedback'],
		props: {
			show: {
				type: Boolean,
				default: false
			},
			arr: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {
			}
		},
		methods: {
			hideModal(e) {
				this.$emit('close', e);
			}
		}
	}
</script>

<style>
</style>
