0👍
Although I dont know how to answer the whole question, you may try prop validators.
// other props
type: {
type: String,
default: 'default',
validator: (value) {
const validValueList = ['default', 'success', 'warning']
return validValueList.includes(value)
}
}
// more props
Source:stackexchange.com