页面 · TomatoPHP
🔁 Inputs Repeater
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>
if you have a JSON object and you want to fill it with data with a selected type of input? it can be easy to use Repeater Components.
this component has 2 types, repeater/schema, the repeater builds an array of JSON but schema builds just 1 JSON Object
html
this attribute must have a field of your JSON object and you can access these fields by using v-model like this
html
where the label is the name of the field, and here is an example for your repeater.
html