[new feature] ActionSheet: add round prop (#3874)

This commit is contained in:
neverland
2019-07-17 13:56:23 +08:00
committed by GitHub
parent 1c09a44751
commit e6a13e8887
5 changed files with 23 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export type ActionSheetItem = {
export type ActionSheetProps = PopupMixinProps & {
title?: string;
round?: boolean;
actions?: ActionSheetItem[];
duration: number;
cancelText?: string;
@@ -116,6 +117,7 @@ function ActionSheet(
<Popup
class={bem({ 'safe-area-inset-bottom': props.safeAreaInsetBottom })}
position="bottom"
round={props.round}
value={props.value}
overlay={props.overlay}
duration={props.duration}
@@ -136,6 +138,7 @@ function ActionSheet(
ActionSheet.props = {
...PopupMixin.props,
title: String,
round: Boolean,
actions: Array,
duration: Number,
cancelText: String,