feat(ShareSheet): add click-overlay event (#6765)

This commit is contained in:
neverland
2020-07-12 11:56:48 +08:00
committed by GitHub
parent 3748ab646c
commit 1d56e97ce3
4 changed files with 27 additions and 4 deletions
+5
View File
@@ -122,6 +122,10 @@ export default createComponent({
);
}
},
onClickOverlay() {
this.$emit('click-overlay');
},
},
render() {
@@ -140,6 +144,7 @@ export default createComponent({
closeOnClickOverlay={this.closeOnClickOverlay}
safeAreaInsetBottom={this.safeAreaInsetBottom}
onInput={this.toggle}
onClick-overlay={this.onClickOverlay}
>
{this.genHeader()}
{this.genRows()}