gwenaelp / vfg-field-array

A vue-form-generator field to handle arrays
MIT License
39 stars 24 forks source link

Features added and small fixes #3

Closed mix359 closed 6 years ago

mix359 commented 6 years ago

I've worked a little bit on your component to add some features I was missing:

-Added validation of the child items -Added scheme logic to support the inputName logic to send the form usign standard form submit -Added the move up and down item command, label and classes -Added label and class for the remove and add items buttons -Passed more data to the container component to permit a more complex visualization -Fixed new element creation deep cloning the default value instead of assigning it directly -Added example

Hope you will find that helpful and would merge in the main repository. I've included an optional component to wrap an object into a bootstrap 4 accordion.

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)