Skip to content

Commit

Permalink
feat(message): add default context to defaultProps (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
backrunner committed Feb 29, 2024
1 parent 057d0ba commit 2872737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ function create(props: MessageActionOptionsType): void {
});
}

const defaultProps: TdMessageProps = {
const defaultProps: MessageActionOptionsType = {
align: 'left',
closeBtn: false,
content: '',
duration: 3000,
theme: 'info',
visible: false,
zIndex: 5000,
context: document.body,
onDurationEnd: () => {},
onCloseBtnClick: () => {},
};
Expand Down

0 comments on commit 2872737

Please sign in to comment.