dabernathy89 / vue-query-builder

A UI component for building complex queries with nested conditionals.
https://dabernathy89.github.io/vue-query-builder/
MIT License
643 stars 157 forks source link

How to get the output JSON? #50

Closed ytl18 closed 5 years ago

dabernathy89 commented 5 years ago

Hey @ytl18 - the component uses v-model so that you can pass through your own object (either empty or with an existing query) and the component will update it as the user interacts with the form.

See details here:

https://dabernathy89.github.io/vue-query-builder/configuration.html#v-model

While it's listed as optional, realistically you will always want to use v-model.

ytl18 commented 5 years ago

Hey @ytl18 - the component uses v-model so that you can pass through your own object (either empty or with an existing query) and the component will update it as the user interacts with the form.

See details here:

https://dabernathy89.github.io/vue-query-builder/configuration.html#v-model

While it's listed as optional, realistically you will always want to use v-model.

Hi @dabernathy89 Thanks very much for your replying. I understand.