[new feature] ActionSheet: add click-overlay event

This commit is contained in:
陈嘉涵
2019-06-10 21:35:31 +08:00
parent a72ce3d115
commit 3c97bb80ac
5 changed files with 16 additions and 1 deletions
+5
View File
@@ -41,6 +41,10 @@ function ActionSheet(
emit(ctx, 'input', value);
}
function onClickOverlay() {
emit(ctx, 'click-overlay');
}
function onCancel() {
emit(ctx, 'input', false);
emit(ctx, 'cancel');
@@ -126,6 +130,7 @@ function ActionSheet(
getContainer={props.getContainer}
closeOnClickOverlay={props.closeOnClickOverlay}
onInput={onInput}
onClick-overlay={onClickOverlay}
{...inherit(ctx)}
>
{Header()}