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

22 lines
267 B
JavaScript
Raw Permalink Normal View History

2023-12-09 14:47:03 +00:00
export default {
props: {
form: {
type: Object,
required: true
},
dismissible: {
type: Boolean,
default: true
}
},
methods: {
dismiss () {
if (this.dismissible) {
this.form.clear()
}
}
}
}