feat(Popup): click-overlay add event param (#8107)

This commit is contained in:
neverland
2021-02-09 16:45:42 +08:00
committed by GitHub
parent dcef90a2a3
commit 0897d46143
9 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -155,8 +155,9 @@ export default createComponent({
}
};
const onClickOverlay = () => {
emit('click-overlay');
const onClickOverlay = (event) => {
emit('click-overlay', event);
if (props.closeOnClickOverlay) {
close();
}