Skip to content

Commit f5a2030

Browse files
committed
fix: dialog types
1 parent 75f29b3 commit f5a2030

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/packages/dialog/index.taro.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ export type ContentProps = Omit<ContentWebProps, 'onClick'> & {
1919
onClick: (event: ITouchEvent) => void
2020
}
2121

22-
export type DialogBasicProps = Omit<DialogBasicWebProps, 'onOverlayClick'> & {
22+
export type DialogBasicProps = Omit<
23+
DialogBasicWebProps,
24+
'onOverlayClick' | 'onConfirm'
25+
> & {
2326
onOverlayClick: (event: ITouchEvent) => boolean | void
27+
onConfirm?: (e?: ITouchEvent) => PromiseLike<any> | void
2428
}
2529

2630
export default BaseDialog

0 commit comments

Comments
 (0)