feat: migrate Form component

This commit is contained in:
chenjiahan
2020-08-19 17:50:34 +08:00
parent e5368ed2f9
commit b6b6e38c45
12 changed files with 31 additions and 22 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ export default createComponent({
inject: {
vanForm: {
from: 'vanForm',
default: null,
},
},
@@ -152,7 +153,7 @@ export default createComponent({
formValue() {
if (this.children && this.$slots.input) {
return this.children.modelValue || this.children.value;
return this.children.modelValue;
}
return this.modelValue;
},