单行展示两个字段,都需要必填验证,formItem一个label对一个字段,默认的排版不足以满足需求,经过思考,稍加变通一下,实现效果如下:
<a-form-model ref="ruleForm" :model="ruleForm" :rules="rules" v-bind="formItemLayout">
<a-form-model-item label="集装箱号段" prop="code">
<a-row>
<a-col :span="10">
<a-form-model-item prop="codeStart" style="margin-bottom: 0 !important">
<a-input v-model="ruleForm.codeStart" autocomplete="off