mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
Format
This commit is contained in:
parent
c095c3d370
commit
048f5f339f
@ -20,6 +20,7 @@ export interface ConfigProps {
|
||||
placement?: NotificationPlacement;
|
||||
getContainer?: () => HTMLElement;
|
||||
}
|
||||
|
||||
function setNotificationConfig(options: ConfigProps) {
|
||||
const { duration, placement, bottom, top, getContainer } = options;
|
||||
if (duration !== undefined) {
|
||||
@ -121,6 +122,7 @@ export interface ArgsProps {
|
||||
readonly type?: IconType;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
function notice(args: ArgsProps) {
|
||||
const outerPrefixCls = args.prefixCls || 'ant-notification';
|
||||
const prefixCls = `${outerPrefixCls}-notice`;
|
||||
@ -206,4 +208,5 @@ export interface NotificationApi {
|
||||
config(options: ConfigProps): void;
|
||||
destroy(): void;
|
||||
}
|
||||
|
||||
export default api as NotificationApi;
|
||||
|
Loading…
Reference in New Issue
Block a user