代码拉取完成,页面将自动刷新
(必填)请填写问题描述或截图:
和element-ui配合,表单组件使用el-row和el-col布局后会导致表单验证和表单重置无效
<vxe-form ref="xForm"
class="my-form2"
title-align="right"
title-width="100"
:data="formData2"
:rules="formRules2">
<el-row :gutter="20">
<el-col :xl="6" :lg="8" :md="12">
<vxe-form-item title="身份证" field="idCard" :span="24">
<template v-slot="scope">
<vxe-input v-model.trim="form.idCard" maxlength="18" placeholder="请输入身份证" clearable @input="$refs.xForm.updateStatus(scope)"></vxe-input>
</template>
</vxe-form-item>
</el-col>
</el-row>
<vxe-button type="reset">重置</vxe-button>