diff --git a/packages/client/src/components/document/style/index.tsx b/packages/client/src/components/document/style/index.tsx index b07fa834..f81df06b 100644 --- a/packages/client/src/components/document/style/index.tsx +++ b/packages/client/src/components/document/style/index.tsx @@ -23,11 +23,13 @@ export const DocumentStyle = () => { return (
diff --git a/packages/client/src/components/message/index.tsx b/packages/client/src/components/message/index.tsx index 47bf832a..5d7dd4f7 100644 --- a/packages/client/src/components/message/index.tsx +++ b/packages/client/src/components/message/index.tsx @@ -1,4 +1,4 @@ -import { Badge, Button, Dropdown, Modal, Notification, Pagination, TabPane, Tabs, Typography } from '@douyinfe/semi-ui'; +import { Badge, Button, Dropdown, Modal, Pagination, Popover, TabPane, Tabs, Typography } from '@douyinfe/semi-ui'; import { DataRender } from 'components/data-render'; import { Empty } from 'components/empty'; import { IconMessage } from 'components/icons/IconMessage'; @@ -119,46 +119,6 @@ const MessageBox = () => { toggleVisible(true); }, [isMobile, toggleVisible]); - // useEffect(() => { - // if (!unreadMsgs || !unreadMsgs.total) return; - - // const msg = unreadMsgs.data[0]; - - // Notification.info({ - // title: '消息通知', - // content: ( - // <> - //
- // - // {msg.title} - // - //
- //
- // - // - // - // 查看详情 - // - // - // - //
- // - // ), - // duration: 3, - // showClose: true, - // onHookClose() { - // readMessage(msg.id); - // }, - // }); - // }, [unreadMsgs, readMessage]); - const content = ( { {btn} ) : ( - {content}
} > {btn} - +
)} );