@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
25 lines (24 loc) • 1.26 kB
TypeScript
import { type NotificationArgsProps as AntdNotificationArgsProps } from 'antd';
import React from 'react';
export interface NotificationArgsProps extends AntdNotificationArgsProps {
/** 如果不为空,则会以折叠面板的形式展示描述,展开后展示报错内容,可用来展示报错详情 */
detail?: Record<string, any>;
descKey?: string;
errors?: Error[];
}
export declare const notification: {
success: (args: NotificationArgsProps) => void;
info: (args: NotificationArgsProps) => void;
warning: (args: NotificationArgsProps) => void;
warn: (args: NotificationArgsProps) => void;
error: (args: NotificationArgsProps) => void;
warnings: (args: NotificationArgsProps) => void;
warns: (args: NotificationArgsProps) => void;
open: (config: AntdNotificationArgsProps) => void;
destroy: (key?: React.Key | undefined) => void;
config: (config: import("antd/es/notification/interface").GlobalConfigProps) => void;
useNotification: typeof import("antd/es/notification/useNotification").default;
_InternalPanelDoNotUseOrYouWillBeFired: React.FC<import("antd/es/notification/PurePanel").PurePanelProps>;
};
export default notification;
export { NotificationGlobalStyle } from './style';