diff --git a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/components/TopicComments.tsx b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/components/TopicComments.tsx index 9814630a..191c969c 100644 --- a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/components/TopicComments.tsx +++ b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/components/TopicComments.tsx @@ -14,6 +14,9 @@ const Root = styled.div` } `; +/** + * 话题评论 + */ export const TopicComments: React.FC<{ comments: GroupTopicComment[]; }> = React.memo((props) => { diff --git a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/group/GroupTopicPanelRender.tsx b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/group/GroupTopicPanelRender.tsx index b34c865b..75c755ac 100644 --- a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/group/GroupTopicPanelRender.tsx +++ b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/src/group/GroupTopicPanelRender.tsx @@ -58,11 +58,11 @@ const GroupTopicPanelRender: React.FC = React.memo(() => { }, [fetch]); useGlobalSocketEvent('plugin:com.msgbyte.topic.create', () => { - fetch(); + fetch(); // not good, 待优化 }); useGlobalSocketEvent('plugin:com.msgbyte.topic.createComment', () => { - fetch(); + fetch(); // not good, 待优化 }); const handleCreateTopic = useCallback(() => { diff --git a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts index e377c7bd..1ab8bc10 100644 --- a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts +++ b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts @@ -332,7 +332,7 @@ declare module '@capital/component' { export const PillTabPane: any; - export const LoadingSpinner: any; + export const LoadingSpinner: React.FC<{ tip?: string }>; export const WebFastForm: any; @@ -382,7 +382,19 @@ declare module '@capital/component' { export const Loadable: any; - export const Loading: any; + export const Loading: React.FC<{ + spinning: boolean; + className?: string; + style?: React.CSSProperties; + children?: React.ReactNode; + }>; + + export const LoadingOnFirst: React.FC<{ + spinning: boolean; + className?: string; + style?: React.CSSProperties; + children?: React.ReactNode; + }>; export const SidebarView: any;