feat(ActionSheet): add close-on-popstate prop (#5716)

This commit is contained in:
chenjiahan
2020-02-25 19:04:00 +08:00
parent f070773b42
commit a5acd379f7
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -34,6 +34,7 @@ export type ActionSheetProps = PopupMixinProps & {
closeIcon: string;
cancelText?: string;
description?: string;
closeOnPopstate?: boolean;
closeOnClickAction?: boolean;
safeAreaInsetBottom?: boolean;
};
@@ -143,6 +144,7 @@ function ActionSheet(
lazyRender={props.lazyRender}
lockScroll={props.lockScroll}
getContainer={props.getContainer}
closeOnPopstate={props.closeOnPopstate}
closeOnClickOverlay={props.closeOnClickOverlay}
safeAreaInsetBottom={props.safeAreaInsetBottom}
{...inherit(ctx, true)}
@@ -164,6 +166,7 @@ ActionSheet.props = {
cancelText: String,
description: String,
getContainer: [String, Function],
closeOnPopstate: Boolean,
closeOnClickAction: Boolean,
round: {
type: Boolean,