feat(Form): binding checkbox

This commit is contained in:
陈嘉涵
2020-02-10 10:57:57 +08:00
parent f385c94040
commit 1fe96f3edc
5 changed files with 32 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ export default createComponent({
getFormData() {
return this.fields.reduce((form, field) => {
form[field.name] = field.value;
form[field.name] = field.formValue;
return form;
}, {});
},