Open MoonCheung opened 3 years ago
在表单里面引入自定义组件的model,提交时候无法识别校验表单
<Form ref="formData" :model="formData" :rules="rules" :label-width="140"> <Row type="flex" justify="center" :gutter="6"> <Col span="12"> <FormItem label="活动平台" prop="productSourceId"> <!-- 封装自定义单选组件的model选项 --> <radio-group v-model="formData.productSourceId" :radios-data="activityData.platformRadiosImg" :disabled="disabled" /> </FormItem> </Col> </Row> </Form>
在表单里面引入自定义组件的model,提交时候无法识别校验表单