This repository was archived by the owner on Mar 8, 2019. It is now read-only.
Added event support
- Fixed: some bugs
- Added: Model in props
- Added: Events documentation
Model in prop
input in component
export default {
props: {
/**
* Model example
* @model
*/
value: {
type: String,
required: true
}
}
/* ... */
}
output in JSON
"v-model": {
"required": "true",
"type": {
"name": "string"
},
"description": "Model example"
}
Events
input in component
/**
* Success event.
*
* @event success
* @type {object}
*/
this.$emit('success', {
demo: 'example',
})
output in JSON
"events": {
"success": {
"description": "Success event.",
"type": {
"names": [
"object"
]
},
"comment": "/**\n * Success event.\n *\n * @event success\n * @type {object}\n */"
}
}