Component({ props: { onClose: () => null }, data: {}, didMount() {}, methods: { handleClose() { this.props.onClose && this.props.onClose(); } } });