refactor: adjust base components export

This commit is contained in:
GyDi
2022-11-20 22:03:55 +08:00
parent 892b919cf3
commit 8bb4803ff9
34 changed files with 44 additions and 66 deletions

View File

@@ -69,7 +69,7 @@ interface NoticeInstance {
let parent: HTMLDivElement = null!;
// @ts-ignore
const Notice: NoticeInstance = (props) => {
export const Notice: NoticeInstance = (props) => {
if (!parent) {
parent = document.createElement("div");
document.body.appendChild(parent);
@@ -91,5 +91,3 @@ const Notice: NoticeInstance = (props) => {
setTimeout(() => Notice({ type, message, duration }), 0);
};
});
export default Notice;