[feature](weaapp) add agent

This commit is contained in:
williamhliu
2023-08-20 18:17:00 +08:00
parent c93e60ced7
commit aa218898ff
40 changed files with 1928 additions and 316 deletions

View File

@@ -4,6 +4,7 @@ import { PREFIX_CLS } from '../../../common/constants';
type Props = {
position: 'left' | 'right';
width?: number | string;
maxWidth?: number | string;
height?: number | string;
title?: string;
followQuestions?: string[];
@@ -17,6 +18,7 @@ type Props = {
const Message: React.FC<Props> = ({
width,
maxWidth,
height,
children,
bubbleClassName,
@@ -38,7 +40,7 @@ const Message: React.FC<Props> = ({
<div className={`${prefixCls}-body`}>
<div
className={`${prefixCls}-bubble${bubbleClassName ? ` ${bubbleClassName}` : ''}`}
style={{ width, height }}
style={{ width, height, maxWidth }}
onClick={e => {
e.stopPropagation();
}}