<template>
	<view class="cell">
		<view class="">
			<view class="">
				<text>{{item.name}}/</text><text class="font-regular">{{item.spec}}</text>
			</view>
			<view class="">
				{{item.code}}
			</view>
		</view>
		<view class="list-cell-right font-regular">
			x{{item.stock}}
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: {}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.cell {
		position: relative;
		width: 100%;
	}

	.list-cell-right {
		position: absolute;
		right: 20rpx;
		top: 0;
		bottom: 0;
		margin: auto 0;
		display: flex;
		align-items: center;
	}

	.font-regular {
		color: $uni-text-regular-color
	}
</style>
