Skip to content

Commit

Permalink
fix(Modal): 补齐 Modal API 参数类型中缺失的字段 (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
1zumii committed Apr 28, 2024
1 parent 3aec03a commit 0134ec7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/modal/modalApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ export interface ModalConfig {
footer?: VNode | (() => VNodeChild);
okText?: string;
okLoading?: boolean;
cancelText?: string;
showCancel?: boolean;
cancelText?: string;
cancelLoading?: boolean;
onOk?: (event: MouseEvent) => void | Promise<any>;
onCancel?: (event: MouseEvent) => void | Promise<any>;
width?: string | number;
maxHeight?: string | number;
top?: string | number;
verticalCenter?: boolean;
center?: boolean;
fullScreen?: boolean;
contentClass?: string;
getContainer?: () => HTMLElement;
}

Expand Down

0 comments on commit 0134ec7

Please sign in to comment.