listpage-next 0.0.165 → 0.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Page/context/listpage.js +1 -1
- package/dist/features/ChatClient/components/ChatContent/index.d.ts +5 -3
- package/dist/features/ChatClient/components/ChatContent/index.js +7 -6
- package/dist/features/ChatClient/index.d.ts +1 -0
- package/dist/features/ChatClient/index.js +1 -0
- package/package.json +1 -1
|
@@ -66,7 +66,7 @@ class ListPageStore {
|
|
|
66
66
|
const result = await this.tableDataRequest?.({
|
|
67
67
|
current: this.pagination.current,
|
|
68
68
|
pageSize: this.pagination.pageSize
|
|
69
|
-
}, this.filters);
|
|
69
|
+
}, this.filters ?? {});
|
|
70
70
|
runInAction(()=>{
|
|
71
71
|
this.dataSource = result.list ?? [];
|
|
72
72
|
this.pagination.total = result.total ?? 0;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { BubbleListProps } from './BubbleList';
|
|
3
|
+
import { ChatSenderProps } from '../ChatSender';
|
|
3
4
|
export interface ClientContentProps {
|
|
4
|
-
style?:
|
|
5
|
+
style?: CSSProperties;
|
|
5
6
|
className?: string;
|
|
7
|
+
extra?: ReactNode;
|
|
6
8
|
title?: string;
|
|
7
9
|
onTitleChange?: (title: string) => void;
|
|
8
10
|
onClickNewConversation?: () => void;
|
|
@@ -2,12 +2,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useRequest } from "ahooks";
|
|
4
4
|
import { styled } from "styled-components";
|
|
5
|
+
import { ClientContentBody } from "./ClientContentBody.js";
|
|
5
6
|
import { ClientContentHeader } from "./ClientContentHeader.js";
|
|
6
7
|
import { MessageProvider, useChatClientContext } from "../../context/index.js";
|
|
7
8
|
import { PageLoading } from "../../../../components/Page/components/Loading/index.js";
|
|
8
|
-
import { ClientContentBody } from "./ClientContentBody.js";
|
|
9
9
|
const ClientContentComponent = (props)=>{
|
|
10
|
-
const { style, className, title, onTitleChange, onClickNewConversation, senderProps, bubbleProps } = props;
|
|
10
|
+
const { extra, style, className, title, onTitleChange, onClickNewConversation, senderProps, bubbleProps } = props;
|
|
11
11
|
return /*#__PURE__*/ jsxs(Container, {
|
|
12
12
|
style: style,
|
|
13
13
|
className: className,
|
|
@@ -15,7 +15,8 @@ const ClientContentComponent = (props)=>{
|
|
|
15
15
|
/*#__PURE__*/ jsx(ClientContentHeader, {
|
|
16
16
|
defaultTitle: title,
|
|
17
17
|
onTitleChange: onTitleChange,
|
|
18
|
-
onClickNewConversation: onClickNewConversation
|
|
18
|
+
onClickNewConversation: onClickNewConversation,
|
|
19
|
+
extra: extra
|
|
19
20
|
}),
|
|
20
21
|
/*#__PURE__*/ jsx(ClientContentBody, {
|
|
21
22
|
senderProps: senderProps,
|
|
@@ -46,9 +47,9 @@ const ClientContent = ({ loading, ...props })=>{
|
|
|
46
47
|
});
|
|
47
48
|
};
|
|
48
49
|
const Container = styled.div`
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
height: 100%;
|
|
53
54
|
`;
|
|
54
55
|
export { ClientContent };
|
|
@@ -5,6 +5,7 @@ export * from './components/Bubble';
|
|
|
5
5
|
export { SimplifyChatPage, type SimplifyChatPageProps, } from './components/ChatPage/SimplifyChatPage';
|
|
6
6
|
export * from './components/ChatDialog';
|
|
7
7
|
export * from './components/ChatSplitter';
|
|
8
|
+
export * from './components/Bubble/Markdown';
|
|
8
9
|
export { useChatContext } from './context/useChatContext';
|
|
9
10
|
export * from './context/types';
|
|
10
11
|
export * from './utils/parseSse';
|
|
@@ -6,6 +6,7 @@ export * from "./components/ChatContent/index.js";
|
|
|
6
6
|
export * from "./components/Bubble/index.js";
|
|
7
7
|
export * from "./components/ChatDialog/index.js";
|
|
8
8
|
export * from "./components/ChatSplitter/index.js";
|
|
9
|
+
export * from "./components/Bubble/Markdown.js";
|
|
9
10
|
export * from "./context/types.js";
|
|
10
11
|
export * from "./utils/parseSse.js";
|
|
11
12
|
export { SimplifyChatPage, useChatContext };
|