Skip to content

Commit c7fa61a

Browse files
committed
fix: dialog.taro中defaultProps使用ts断言确认类型
1 parent dcfd2f0 commit c7fa61a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/dialog/dialog.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const defaultProps = {
4444
onClose: () => {},
4545
onConfirm: () => {},
4646
onOverlayClick: () => true,
47-
}
47+
} as TaroDialogProps
4848

4949
export const BaseDialog: FunctionComponent<Partial<TaroDialogProps>> & {
5050
open: typeof open

0 commit comments

Comments
 (0)