listpage-next 0.0.61 → 0.0.63
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/InfiniteList/index.d.ts +1 -2
- package/dist/components/InfiniteList/index.js +1 -2
- package/dist/demos/demo3.js +1 -1
- package/dist/features/ChatClient/components/HistoryConversation/index.js +1 -1
- package/dist/features/ChatClient/components/HistoryConversation/styles.js +1 -3
- package/dist/features/ChatClient/components/NewConversation/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -17,5 +17,4 @@ export interface InfiniteListProps<DataType = any> {
|
|
|
17
17
|
pageSize?: number;
|
|
18
18
|
rowKey?: string;
|
|
19
19
|
}
|
|
20
|
-
declare const InfiniteList: <DataType = any>(props: InfiniteListProps<DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default InfiniteList;
|
|
20
|
+
export declare const InfiniteList: <DataType = any>(props: InfiniteListProps<DataType>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/demos/demo3.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Avatar, Button, List } from "antd";
|
|
3
|
-
import InfiniteList from "../components/InfiniteList/index.js";
|
|
3
|
+
import { InfiniteList } from "../components/InfiniteList/index.js";
|
|
4
4
|
const request = async ({ current, pageSize })=>{
|
|
5
5
|
const fakeDataUrl = `https://660d2bd96ddfa2943b33731c.mockapi.io/api/users?page=${current}&limit=${pageSize}`;
|
|
6
6
|
const response = await fetch(fakeDataUrl);
|
|
@@ -3,7 +3,7 @@ import { useRef } from "react";
|
|
|
3
3
|
import { Avatar, Button, Dropdown, Tooltip, Typography } from "antd";
|
|
4
4
|
import { useHover } from "ahooks";
|
|
5
5
|
import { ClockCircleOutlined, MessageOutlined, MoreOutlined } from "@ant-design/icons";
|
|
6
|
-
import InfiniteList from "../../../../components/InfiniteList/index.js";
|
|
6
|
+
import { InfiniteList } from "../../../../components/InfiniteList/index.js";
|
|
7
7
|
import { HeaderContainer, HeaderTitle, HistoryConversationContainer, ListContainer, ListItemContainer, ListText } from "./styles.js";
|
|
8
8
|
const HistoryConversation = (props)=>{
|
|
9
9
|
const { request, activeKey, rowKey = "id", onDelete, onRename, onSelect } = props;
|
|
@@ -8,7 +8,6 @@ const HeaderContainer = styled_components.div`
|
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: space-between;
|
|
10
10
|
align-items: center;
|
|
11
|
-
|
|
12
11
|
padding: 8px;
|
|
13
12
|
`;
|
|
14
13
|
const HeaderTitle = styled_components.div`
|
|
@@ -18,14 +17,13 @@ const HeaderTitle = styled_components.div`
|
|
|
18
17
|
font-size: 12px;
|
|
19
18
|
font-weight: 600;
|
|
20
19
|
min-width: 0;
|
|
21
|
-
|
|
20
|
+
color: #0000004d;
|
|
22
21
|
line-height: 20px;
|
|
23
22
|
height: 20px;
|
|
24
23
|
`;
|
|
25
24
|
const ListContainer = styled_components.div`
|
|
26
25
|
flex: 1;
|
|
27
26
|
overflow: hidden;
|
|
28
|
-
|
|
29
27
|
padding: 8px;
|
|
30
28
|
`;
|
|
31
29
|
const ListItemContainer = styled_components.div`
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,5 +5,6 @@ export * from "./components/InfiniteList/index.js";
|
|
|
5
5
|
export * from "./components/Menu/index.js";
|
|
6
6
|
export * from "./components/DataTable/index.js";
|
|
7
7
|
export * from "./features/JsonEditor/index.js";
|
|
8
|
+
export * from "./features/ChatClient/index.js";
|
|
8
9
|
export * from "./http-client/index.js";
|
|
9
10
|
export * from "./context/index.js";
|