listpage-next 0.0.69 → 0.0.71

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.
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from "react";
2
+ interface ContentProps {
3
+ children?: React.ReactNode;
4
+ styles?: {
5
+ topPlaceholder?: CSSProperties;
6
+ bottomPlaceholder?: CSSProperties;
7
+ content?: CSSProperties;
8
+ };
9
+ }
10
+ export declare const Content: (props: ContentProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export {};
@@ -0,0 +1,30 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { styled } from "styled-components";
3
+ const Content = (props)=>{
4
+ const { children, styles } = props;
5
+ return /*#__PURE__*/ jsxs(ContentContainer, {
6
+ children: [
7
+ /*#__PURE__*/ jsx("div", {
8
+ style: styles?.topPlaceholder ?? {
9
+ height: 20
10
+ }
11
+ }),
12
+ /*#__PURE__*/ jsx("div", {
13
+ style: styles?.content ?? {
14
+ padding: "0 200px"
15
+ },
16
+ children: children
17
+ }),
18
+ /*#__PURE__*/ jsx("div", {
19
+ style: styles?.bottomPlaceholder ?? {
20
+ height: 60
21
+ }
22
+ })
23
+ ]
24
+ });
25
+ };
26
+ const ContentContainer = styled.div`
27
+ min-height: 100px;
28
+ flex-grow: 1; overflow: auto;
29
+ `;
30
+ export { Content, ContentContainer };
@@ -15,6 +15,8 @@ const UpdateTitleModal = (props)=>{
15
15
  return /*#__PURE__*/ jsx(Modal, {
16
16
  title: "编辑对话名称",
17
17
  open: open,
18
+ okText: "确定",
19
+ cancelText: "取消",
18
20
  onCancel: ()=>onClose?.(),
19
21
  onOk: async ()=>{
20
22
  await onSubmit?.(name);
@@ -6,5 +6,6 @@ export interface ClientContentProps {
6
6
  children?: React.ReactNode;
7
7
  headerProps: HeaderProps;
8
8
  footerProps?: ChatSenderProps;
9
+ loading?: boolean;
9
10
  }
10
11
  export declare const ClientContent: (props: ClientContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,16 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Spin } from "antd";
2
3
  import { Footer } from "./Footer.js";
3
4
  import { Header } from "./Header.js";
4
- import { Container, Inter } from "./styles.js";
5
+ import { Container } from "./styles.js";
6
+ import { Content } from "./Content.js";
5
7
  const ClientContent = (props)=>{
6
- const { style, className, children, headerProps, footerProps } = props;
8
+ const { style, className, children, headerProps, footerProps, loading } = props;
9
+ if (loading) return /*#__PURE__*/ jsx(Container, {
10
+ style: style,
11
+ className: className,
12
+ children: /*#__PURE__*/ jsx(Spin, {})
13
+ });
7
14
  return /*#__PURE__*/ jsxs(Container, {
8
15
  style: style,
9
16
  className: className,
@@ -11,7 +18,7 @@ const ClientContent = (props)=>{
11
18
  /*#__PURE__*/ jsx(Header, {
12
19
  ...headerProps
13
20
  }),
14
- /*#__PURE__*/ jsx(Inter, {
21
+ /*#__PURE__*/ jsx(Content, {
15
22
  children: children
16
23
  }),
17
24
  /*#__PURE__*/ jsx(Footer, {
@@ -1,2 +1 @@
1
1
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export declare const Inter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -2,11 +2,7 @@ import styled_components from "styled-components";
2
2
  const Container = styled_components.div`
3
3
  display: flex;
4
4
  flex-direction: column;
5
- `;
6
- const Inter = styled_components.div`
7
- min-height: 100px;
8
- flex-grow: 1;
9
5
 
10
- overflow: auto;
6
+ height: 100%;
11
7
  `;
12
- export { Container, Inter };
8
+ export { Container };
@@ -14,7 +14,7 @@ const ChatPage = (props)=>{
14
14
  /*#__PURE__*/ jsxs(Sider, {
15
15
  children: [
16
16
  /*#__PURE__*/ jsx(Logo, {
17
- icon: logo || 'AI',
17
+ icon: logo,
18
18
  title: title || '智能对话'
19
19
  }),
20
20
  /*#__PURE__*/ jsx(NewConversation, {
@@ -8,7 +8,8 @@ const Logo = (props)=>{
8
8
  /*#__PURE__*/ jsx(Avatar, {
9
9
  size: 36,
10
10
  shape: "circle",
11
- icon: icon
11
+ src: icon,
12
+ icon: "AI"
12
13
  }),
13
14
  /*#__PURE__*/ jsx(LogoTitle, {
14
15
  children: title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",