Update props with more details
Currently, the vast majority of components only describe the props in an array of strings, without further details :
For example, in the ActibeBox.vue component the props are defined as follows:
props: [
'id'
],
Although the form above works, it is not ideal, since it does not describe the type of the prop, whether it is mandatory or not, among other validations.
In addition, vue's own linter rules strongly recommend the detailed description of props.
Thus, it is suggested to change the definition of props from a string array to a detailed object:
The ActiveBox component would look like this:
props: {
id: {
type: String,
required: true,
// outros valores podem ser definidos aqui
}
},