diff --git a/CHANGELOG.md b/CHANGELOG.md index cf0f4e832e8b0abd2f87434b1b4690666b697670..c0c9c132410285a9913518f83e8075250a1b9d49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ## [Unreleased] +- 更新错误消息对话框的样式,IA聊天暴露事件标识增加限定 + ## [0.0.4] - 2024-05-08 - 更新提问框样式 diff --git a/src/components/chat-container/chat-container.scss b/src/components/chat-container/chat-container.scss index bd59086963854211ea6e8614f4f6006bb919f426..fb6455387a68016c2fd98cf0ec2af2e5559f5cc1 100644 --- a/src/components/chat-container/chat-container.scss +++ b/src/components/chat-container/chat-container.scss @@ -49,7 +49,7 @@ $ai-chat: ( } @include b(chat-container-header-caption) { - padding: 0 6px; + padding: 0 6px 0 16px ; font-size: 18px; font-weight: 800; } diff --git a/src/components/chat-container/chat-container.tsx b/src/components/chat-container/chat-container.tsx index eaff6796870f36ab5770edfd0d57b7a8103feb5e..2bd37422bee83a1b52a97077184c9fac6e17b65c 100644 --- a/src/components/chat-container/chat-container.tsx +++ b/src/components/chat-container/chat-container.tsx @@ -24,6 +24,21 @@ export interface ChatContainerProps { * @date 2023-10-15 19:10:35 */ close: () => void; + + /** + * 全屏行为 + * + * @memberof ChatContainerProps + */ + fullscreen: (target: boolean) => void; + + /** + * 标题 + * + * @type {string} + * @memberof ChatContainerProps + */ + caption?: string; } interface ChatContainerState { @@ -177,6 +192,7 @@ export class ChatContainer extends Component< if (container) { container.requestFullscreen(); this.setState({ isFullScreen: true }); + this.props.fullscreen(true); } } @@ -190,6 +206,7 @@ export class ChatContainer extends Component< if (this.state.isFullScreen) { document?.exitFullscreen(); this.setState({ isFullScreen: false }); + this.props.fullscreen(false); } } @@ -202,7 +219,9 @@ export class ChatContainer extends Component< ref={this.containerRef} >