export default { props: { value: { type: Boolean } }, computed: { visible: { get() { if (this.value && this.beforeModalOpen && typeof this.beforeModalOpen == 'function') { this.beforeModalOpen() } return this.value }, set(val) { this.$emit('input', val) } } } }