关闭弹窗前的事件植入

beforeClose: func
参数别名: beforeClose/onClose
返回参数为当前弹窗对象