diff --git a/components/sender/SenderHeader.tsx b/components/sender/SenderHeader.tsx
index 74cf4706..3953b750 100644
--- a/components/sender/SenderHeader.tsx
+++ b/components/sender/SenderHeader.tsx
@@ -73,7 +73,7 @@ export default function SenderHeader(props: SenderHeaderProps) {
}}
>
{/* Header */}
- {closable !== false && (
+ {(closable !== false || title) && (
{title}
-
- }
- size="small"
- onClick={() => {
- onOpenChange?.(!open);
- }}
- />
-
+ {closable !== false && (
+
+ }
+ size="small"
+ onClick={() => {
+ onOpenChange?.(!open);
+ }}
+ />
+
+ )}
)}
diff --git a/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap
index 8b270738..f049d9ca 100644
--- a/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap
+++ b/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap
@@ -392,6 +392,172 @@ exports[`renders components/sender/demo/header.tsx extend context correctly 1`]
exports[`renders components/sender/demo/header.tsx extend context correctly 2`] = `[]`;
+exports[`renders components/sender/demo/header-fixed.tsx extend context correctly 1`] = `
+
+
+
+
+
+
+`;
+
+exports[`renders components/sender/demo/header-fixed.tsx extend context correctly 2`] = `[]`;
+
exports[`renders components/sender/demo/paste-image.tsx extend context correctly 1`] = `
`;
+exports[`renders components/sender/demo/header-fixed.tsx correctly 1`] = `
+
+
+
+
+
+
+`;
+
exports[`renders components/sender/demo/paste-image.tsx correctly 1`] = `
{
+ const { message } = App.useApp();
+ const [hasRef, setHasRef] = React.useState(true);
+
+ const headerNode = (
+
+
+ "Tell more about Ant Design X"
+
+ }
+ onOpenChange={setHasRef}
+ />
+ );
+
+ return (
+
+ setHasRef(!hasRef)}
+ checkedChildren="With Reference"
+ unCheckedChildren="With Reference"
+ />
+ {
+ message.success('Send message successfully!');
+ }}
+ />
+
+ );
+};
+
+export default () => (
+
+
+
+);
diff --git a/components/sender/index.en-US.md b/components/sender/index.en-US.md
index d5022c17..be90ac82 100644
--- a/components/sender/index.en-US.md
+++ b/components/sender/index.en-US.md
@@ -22,6 +22,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*8yArQ43EGccAAA
Custom speech input
Custom actions
Header panel
+Reference
Adjust style
Paste image
diff --git a/components/sender/index.zh-CN.md b/components/sender/index.zh-CN.md
index 7b4e67cf..f712839a 100644
--- a/components/sender/index.zh-CN.md
+++ b/components/sender/index.zh-CN.md
@@ -23,6 +23,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*8yArQ43EGccAAA
自定义语音输入
自定义按钮
展开面板
+引用
调整样式
黏贴图片