Skip to content

Commit

Permalink
fix(dialog): 修复 dialog instance ts 类型警告 (#1783)
Browse files Browse the repository at this point in the history
fix #1782
  • Loading branch information
moecasts authored Dec 7, 2022
1 parent 8b09761 commit ddb8b26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dialog/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,19 @@ export interface DialogInstance {
/**
* 销毁弹框
*/
destroy?: () => void;
destroy: () => void;
/**
* 隐藏弹框
*/
hide?: () => void;
hide: () => void;
/**
* 显示弹框
*/
show?: () => void;
show: () => void;
/**
* 更新弹框内容
*/
update?: (props: DialogOptions) => void;
update: (props: DialogOptions) => void;
}

export type DialogEventSource = 'esc' | 'close-btn' | 'cancel' | 'overlay';
Expand Down

0 comments on commit ddb8b26

Please sign in to comment.