Skip to content

Commit

Permalink
fix(dialog): close method parameter type definition exception (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Aug 16, 2024
1 parent d5d25f7 commit f500334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface DialogAlertOptionsType {
context?: Context;
selector?: string;
title?: string;
content: string;
content?: string;
zIndex?: number;
asyncClose?: boolean;
confirmButtonText?: string;
Expand Down Expand Up @@ -78,7 +78,7 @@ export default {
instance._onCancel = reject;
});
},
close(options: DialogConfirmOptionsType) {
close(options?: DialogConfirmOptionsType) {
const { context, selector = '#t-dialog' } = { ...options };
const instance = getInstance(context, selector);
if (instance) {
Expand Down

0 comments on commit f500334

Please sign in to comment.