Skip to content

Commit a89bb64

Browse files
committed
fix(ActionSheet): 解决containerStyle ts报错
1 parent aa43e95 commit a89bb64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/ActionSheet/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface ActionSheetProps extends ModalProps {
1717
/** 分割线样式 */
1818
dividerStyle?: DividerStyle;
1919
/** 取消的容器样式 */
20-
containerStyle?: StyleProp<ViewStyle>;
20+
containerStyle?: ViewStyle;
2121
/** 取消的文本样式 */
2222
textStyle?: StyleProp<TextStyle>;
2323
/** 动作在被触摸操作激活时以多少不透明度显示 默认 1 */
@@ -44,7 +44,7 @@ export default function ActionSheet(props: ActionSheetProps) {
4444
cancelText = '取消',
4545
dividerStyle,
4646
isCancel = true,
47-
containerStyle,
47+
containerStyle = {},
4848
textStyle,
4949
onCancel,
5050
...other

0 commit comments

Comments
 (0)