Skip to content

Commit 52d84bd

Browse files
fix: dialog.taro中defaultProps使用ts断言确认类型 (#3347)
Co-authored-by: xiaoyatong <[email protected]>
1 parent 8b6326b commit 52d84bd

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)