!!!注:若在el-form中加inline:"true",则el-input宽度则做不了自适应。
代码演示:
<el-form :model="formInline"
label-width="100px"
label-position = "left"
>
<el-form-item label="DeviceID" size='small' style="margin-left:10px">
<el-input v-model="formInline.deviceid" placeholder="输入设备ID"></el-input>
</el-form-item>
<el-form-item label="DeviceName" size='small' style="margin-left:10px">
<el-input v-model="formInline.devicename" placeholder="输入设备名称"></el-input>
</el-form-item>
</el-form>