nocobase/packages/core/utils/src/notification.ts
被雨水过滤的空气-Rairn 110b00bc01
fix(Data-template): fix bug when deleting fields (#1907)
* chore: add translation

* fix(Data-template): fix bug when deleting fields

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-22 17:17:33 +08:00

9 lines
169 B
TypeScript

import { notification } from 'antd';
export const showToast = (message, type = 'info', duration = 5000) => {
notification[type]({
message,
duration,
});
};