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

Custom components in QueryBuilderRule this.id got undefined #45

Open mattwmj opened 5 years ago

mattwmj commented 5 years ago

I am using custom components and it all works properly.

When I debug line 68 of QueryBuilderRule: this.$options.components[this.id] = this.rule.component; this.id is undefined.

I am curious about this line. How does it work? Is this undefined at purpose?

Thank you.

dabernathy89 commented 5 years ago

I think this may have been a mistake I didn't catch during a merge request. I'll take a look ASAP!

mattwmj commented 5 years ago

Thank you for your attention.

I want to ask something related to this custom-component feature.

Let's say I have a custom component A with prop AProp. I want to set AProp value before put it into rule.component. How can I achieve that?

I tried to call component A.props.AProp = 'somevalue' but did not work.