Skip to content

Commit

Permalink
* modal: add modal option.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Apr 24, 2024
1 parent 29c7206 commit 2fd38e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/modal/src/types/modal-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type ModalOptions = ModalBaseOptions & {
timeoutTip?: string;
title?: string;
destoryOnHide?: boolean;
modal?: boolean;
[prop: string]: unknown;
};

Expand Down
1 change: 1 addition & 0 deletions lib/modal/src/vanilla/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export class Modal<T extends ModalOptions = ModalOptions> extends ModalBase<T> {
size: 400,
className: 'modal-alert',
content,
modal: true,
backdrop: 'static',
hideOthers: false,
custom: {footerActions, ...customOptions},
Expand Down

0 comments on commit 2fd38e6

Please sign in to comment.