openfext / vue-form-builder

Build powerful vue form with JSON schema and composition api.

Home Page:https://openfext.github.io/vue-form-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Init with formValues

Themesaul opened this issue · comments

When I pass in v-model formValues with values the library empties them. I would like to be able to pass formValues with data. I have used the input event to make this mechanism, but I think the library should admit it.

Sorry for late response, can you provide some example code?

commented

`export default {
name: 'ElFormBuilder',

props: {
model: {
type: Object,
default () {
return {}
}
},
...
`
这里应该使用value字段接收而不是model,v-model指令的默认接受字段是value。
所以因为一直接收不到默认值,就会清空用户传入的默认值。