opnform/client/components/forms/validation/Alert.js

22 lines
267 B
JavaScript

export default {
props: {
form: {
type: Object,
required: true
},
dismissible: {
type: Boolean,
default: true
}
},
methods: {
dismiss () {
if (this.dismissible) {
this.form.clear()
}
}
}
}