Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Is Custom Template supports custom-components ? #63

Open
naumanahmed19 opened this issue Sep 17, 2020 · 1 comment
Open

Is Custom Template supports custom-components ? #63

naumanahmed19 opened this issue Sep 17, 2020 · 1 comment

Comments

@naumanahmed19
Copy link

naumanahmed19 commented Sep 17, 2020

I am working on a project which is using custom-component and it works fine without custom templates but I needed to modify the styling and layout for which I am using custom template bit all other types works accept custom-component.

https://codesandbox.io/s/vue-query-builder-demo-tailwind-forked-gvz1s

@justindantzer
Copy link

@naumanahmed19 If you haven't found the solution to this, I ran in to the same thing. I realized I was missing some field types from the custom Rule component. You need to add the output for the custom component. I added it right before the remove button similar to this:

  ...
  
  <div v-if="isCustomComponent">
    <component
      :is="rule.component"
      :value="query.value"
      @input="updateQuery"
    />
  </div>

  <!-- Remove rule button -->
  <button type="button"...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants