@ant-design/agentic-ui 2.29.23 → 2.29.24
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.
|
@@ -164,17 +164,22 @@ import { MessagesContext } from "./BubbleContext";
|
|
|
164
164
|
marginRight: props.placement === 'right' ? 24 : 0
|
|
165
165
|
}
|
|
166
166
|
}, (locale === null || locale === void 0 ? void 0 : locale['error.unexpected']) || '出现点意外情况,请重新发送');
|
|
167
|
+
var contentWrapper = /*#__PURE__*/ React.createElement("div", {
|
|
168
|
+
style: {
|
|
169
|
+
display: 'flex',
|
|
170
|
+
flexDirection: 'column',
|
|
171
|
+
minWidth: 0,
|
|
172
|
+
maxWidth: '100%'
|
|
173
|
+
}
|
|
174
|
+
}, /*#__PURE__*/ React.createElement(ErrorBoundary, {
|
|
175
|
+
fallback: errorDom
|
|
176
|
+
}, beforeContent, markdown, docListNode, afterContent), props.placement === 'right' ? null : extra);
|
|
167
177
|
if (props.placement !== 'right') {
|
|
168
|
-
return
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
maxWidth: '100%'
|
|
174
|
-
}
|
|
175
|
-
}, /*#__PURE__*/ React.createElement(ErrorBoundary, {
|
|
176
|
-
fallback: errorDom
|
|
177
|
-
}, beforeContent, markdown, docListNode, afterContent), extra);
|
|
178
|
+
return contentWrapper;
|
|
179
|
+
}
|
|
180
|
+
// 仅当 extra 有内容时才用 Popover,避免 shouldShowCopy={false} 时 hover 出现空浮层小点
|
|
181
|
+
if (!extra) {
|
|
182
|
+
return contentWrapper;
|
|
178
183
|
}
|
|
179
184
|
return /*#__PURE__*/ React.createElement(Popover, {
|
|
180
185
|
align: {
|
|
@@ -124,7 +124,7 @@ var genStyle = function genStyle(token) {
|
|
|
124
124
|
export function useMessagesContentStyle(componentCls) {
|
|
125
125
|
return useEditorStyleRegister('BubbleMessageDisplay', function(token) {
|
|
126
126
|
var chatToken = _object_spread_props(_object_spread({}, token), {
|
|
127
|
-
componentCls: componentCls
|
|
127
|
+
componentCls: ".".concat(componentCls)
|
|
128
128
|
});
|
|
129
129
|
return genStyle(chatToken);
|
|
130
130
|
});
|