el-form表单封装
el-form表单封装
1 | <el-form ref="addForm" label-position="right" :model="addForm" :rules="rules"> |
- 数据格式
1
2
3
4formData:[
{ type: 'number', label: '路径宽度(m):',placeholder:'请输入路径宽度', prop: 'pathRadius',event:'speed_roadSG'},
{ type: 'text', label: '备注:',placeholder:'请输入备注', prop: 'remark'}
], - 输入框方法
1
2
3
4
5blurEvent(e,type){
if(type == 'speedLimit'){
//...doing
}
}