Documentation of component registration
See original GitHub issueIn the schema documentation about the component
property it currently says (emphasis mine)
You can use the name of the component as a String instead, for example ‘FormText’, but be aware that the component needs to either be imported globally, or in your file first.
As a consequence, I tried to register the custom components locally in my component using formvuelate’s SchemaForm
and identify the components to use by string (to get a green tick in the “code-free schema” column of my decision matrix) - which did not work.
This is somewhat expected (now) knowing that formvuelate merely is using vue’s :is
special attribute and that, per the vue documentation (sic),
locally registered components are not also available in subcomponents
in vue 3.
The reference implementation featured in e.g. the “Validating Schema-Driven forms with Vuelidate” blog post also uses global registration.
So maybe the documentation should just suggest global registration. Or is there another way I’m missing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
@wiese ability to register local components has been added on
v1.2.0
with #145 SchemaFormFactory docsI’ve gone ahead and corrected/removed this bit from the docs until its addressed