---# el-form 自定义一个非输入选择的值的规则,但是无法生效的问题假设我们有以下结构:```vue {12-14,34-46} <template> <el-form ref="formRef" :model="form" :rules="rules"> <el-form-item label="输入框" prop="input"> <el-input v-model="form.input"/> ...
<divclass="customer-dialog"><el-dialog:title="title":visible.sync="dialogVisible":before-close="cancel"width="52.5%":destroy-on-close="true":close-on-click-modal="false"><el-formref="form"class="customer-form":model="form"label-width="97px":inline="true":rules="rules"label-suffix="...
需求:点击按钮新增指定表单,可动态删除,新增上限为10条实现步骤:定义模板:. 完整代码及样式<div class="customer-dialog"> <el-dialog :title="title" :visible.sync="dialogVisible" :before-close="cancel" width="52.5%" :destroy-on-close="true" :close-on-click-modal="false" > <el-form ref="...
<el-input v-model.trim="form.phone" placeholder="请输入" maxlength="50" size="small" style="width:100%" /> </el-form-item> <el-form-item label="税号" prop="" class="address form-style" style="width:100%"> <el-input v-model.trim="form.phone" placeholder="请输入" maxlength="...