feat(ActionSheet): enable round by default (#4542)

This commit is contained in:
neverland
2019-09-23 15:45:22 +08:00
committed by GitHub
parent 9e1758c1d8
commit 77b08b15db
4 changed files with 10 additions and 7 deletions

View File

@@ -22,8 +22,8 @@ export type ActionSheetItem = {
};
export type ActionSheetProps = PopupMixinProps & {
round: boolean;
title?: string;
round?: boolean;
actions?: ActionSheetItem[];
duration: number;
cancelText?: string;
@@ -142,12 +142,15 @@ function ActionSheet(
ActionSheet.props = {
...PopupMixin.props,
title: String,
round: Boolean,
actions: Array,
duration: Number,
cancelText: String,
getContainer: [String, Function],
closeOnClickAction: Boolean,
round: {
type: Boolean,
default: true
},
safeAreaInsetBottom: {
type: Boolean,
default: true