diff --git a/src/MarkdownEditor/editor/elements/chart.tsx b/src/MarkdownEditor/editor/elements/chart.tsx index 9423842..44e515d 100644 --- a/src/MarkdownEditor/editor/elements/chart.tsx +++ b/src/MarkdownEditor/editor/elements/chart.tsx @@ -679,7 +679,9 @@ export const Chart: React.FC = (props) => { display: 'flex', flexWrap: 'wrap', gap: 8, + userSelect: 'none', }} + contentEditable={false} onClick={(e) => { e.stopPropagation(); }} @@ -717,12 +719,8 @@ export const Chart: React.FC = (props) => { style={{ margin: 12, borderRadius: 16, - border: - // 只有一个图表时不显示边框,用消息框自己的 - config.length < 2 && - store?.editor?.children?.length < 2 - ? 'none' - : '1px solid #eee', + overflow: 'auto', + border: '1px solid #eee', }} > @@ -800,9 +798,16 @@ export const Chart: React.FC = (props) => { margin: 'auto', minWidth: 300, flex: 1, + userSelect: 'none', }} + contentEditable={false} > -
+
= (props) => { return (
= (props) => { }} >
{ e.stopPropagation();