<template>
	<view class="item">
		<view class="content">{{label}}</view>
		<view class="opear">
			<slot><u-input v-model="valueModel" type="text" class="input-c"/></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'listitem',
		props: {
			value: {
				
			},
			label: {
				type: String
			},
			itemIcon: {
				type: String
			}
		},
		computed: {
			valueModel: {
				get () {
					return this.value
				},
				set (val) {
					this.$emit('update:value', val)
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx 0 29rpx;
		
		& .input-c /deep/ input {
			color: #FFFFFF;
		}
		& .input-c /deep/ .input-placeholder {
			color: #757896 !important;
		}
		& .content {
			width: 200rpx;
			height: 33rpx;
			font-size: 24rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 33rpx;
		}
		& .opear {
			flex: 1;
		}
	}
</style>
