Skip to content

v0.9.32

Compare
Choose a tag to compare
@wrabit wrabit released this 24 Aug 10:33
· 269 commits to main since this release

What's Changed

Dynamic Components

Sometimes there is a need to include a component dynamically, for example, you are looping through some data and the type of component is defined within a variable.

<!--
form_fields = [
  {'type': 'text'},
  {'type': 'textarea'},
  {'type': 'checkbox'}  
]
-->

{% for field in form_fields %}
    <c-component :is="field.type" />
{% endfor %}

You can also provide a template expression, should the component be inside a subdirectory or have a prefix:

{% for field in form_fields %}
    <!-- subfolder -->
    <c-component is="form-fields.{{ field.type }}" />

    <!-- component prefix -->
    <c-component is="field_{{ field.type }}" />
{% endfor %}
  • Fixed auto-setup where no builtins key present by @wrabit in #92
  • Dynamic components by @wrabit in #73

Full Changelog: v0.9.30...v0.9.32