listpage-next 0.0.166 → 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.
@@ -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 { BubbleListProps } from "./BubbleList";
2
- import { ChatSenderProps } from "../ChatSender";
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { BubbleListProps } from './BubbleList';
3
+ import { ChatSenderProps } from '../ChatSender';
3
4
  export interface ClientContentProps {
4
- style?: React.CSSProperties;
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
- display: flex;
50
- flex-direction: column;
50
+ display: flex;
51
+ flex-direction: column;
51
52
 
52
- height: 100%;
53
+ height: 100%;
53
54
  `;
54
55
  export { ClientContent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",