el-col在一行中占24份,所以一行中显示两个输入框用:span=“12”
<el-row>
<el-col :span="12">
<el-form-item label="序号" prop="id">
<el-input v-model="form.id" placeholder="序号" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="姓名" prop="name">
<el-input v-model="form.name" placeholder="姓名" ></el-input>
</el-form-item>
</el-col>
</el-row>
注意事项:我不小心漏了el-row,导致输入框无法正常输入。(如果没有写v-model绑定数据情况下也会导致el-input无法正常输入)