<template>
	<uni-list >
		<uni-list-item v-for="(item,index) in data" :key="index" :title="item.checklistTitle" 
		:rightText="data.length>1?'请选择':''" :clickable="data.length>1" :showArrow="data.length>1"
		@click="getChecklist(item)"></uni-list-item>
	</uni-list>
</template>

<script>
	export default {
		name:"targetListChecklist",
		props:{
			value:{
				type:[String,Number]
			},
			data:{
				type:[Array,Object],
				default:()=>[]				
			}
		},
		methods:{
			getChecklist(item){
				this.$emit("input", item.checklistId);
				this.$emit("change", item);
			}			
		}
	}
</script>

<style>

</style>