beforeClose
* perf: the beforeClose function of drawer is consistent with that of modal * refactor: drawer test update
apiComponent