<template>
	<view>
		<uni-forms :modelValue="BatteryForm" ref="valueForm" :rules="rules">
			<uni-forms-item label="电池编号SN:" required name="sn" label-align="right" label-width="138px">
				<uni-easyinput type="text" :maxlength="30" v-model="BatteryForm.sn" placeholder="请输入电池编号" :clear="false"/>
			</uni-forms-item>
			<uni-forms-item label="长(cm):" required name="length" label-align="right" label-width="138px">
				<uni-easyinput type="text" v-model.trim="BatteryForm.length" :maxlength="5" placeholder="请输入电池长度" :clear="false"/>
			</uni-forms-item>
			<uni-forms-item label="宽(cm):" required name="width" label-align="right" label-width="138px">
				<uni-easyinput type="text" v-model.trim="BatteryForm.width" :maxlength="5" placeholder="请输入电池宽度" :clear="false"/>
			</uni-forms-item>
			<uni-forms-item label="高(cm):" required name="height" label-align="right" label-width="138px">
				<uni-easyinput type="text" v-model.trim="BatteryForm.height" :maxlength="5" placeholder="请输入电池高度" :clear="false"/>
			</uni-forms-item>
			<uni-forms-item label="重量(kg):" required name="weight" label-align="right" label-width="138px">
				<uni-easyinput type="text" v-model.trim="BatteryForm.weight" :maxlength="5" placeholder="请输入电池重量" :clear="false"/>
			</uni-forms-item>
		</uni-forms>
	</view>
</template>

<script>
	export default {
		name: 'BatteryDrawer',
		props: ['BatteryForm','rules'],
		data() {
			return {
				// getbasicFrom:{}
			}
		},
		methods:{
		}
	}
</script>
<style lang="scss" scoped>
	
	::v-deep .uni-forms-item {
		width: 100% !important;
		
	}
	
</style>