@ant-design/agentic-ui 2.27.4 → 2.27.6
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.
package/dist/Bubble/Bubble.js
CHANGED
|
@@ -104,7 +104,7 @@ import { UserBubble } from "./UserBubble";
|
|
|
104
104
|
*/ export var Bubble = /*#__PURE__*/ memo(function(props) {
|
|
105
105
|
var originData = props.originData;
|
|
106
106
|
/** 判断是否有可编辑的字符串内容 */ var hasEditableContent = !!(originData === null || originData === void 0 ? void 0 : originData.originContent) || typeof (originData === null || originData === void 0 ? void 0 : originData.content) === 'string';
|
|
107
|
-
/** 获取初始内容:优先 originContent,回退到字符串 content */ var initialContent = hasEditableContent ? (originData === null || originData === void 0 ? void 0 : originData.
|
|
107
|
+
/** 获取初始内容:优先 originContent,回退到字符串 content */ var initialContent = hasEditableContent ? (originData === null || originData === void 0 ? void 0 : originData.content) || (originData === null || originData === void 0 ? void 0 : originData.originContent) : '';
|
|
108
108
|
/**
|
|
109
109
|
* Schema Editor Bridge Hook
|
|
110
110
|
* @description 开发环境自动启用,生产环境返回原始内容
|
|
@@ -408,7 +408,7 @@ var composeEditors = function(editor, plugins) {
|
|
|
408
408
|
extra: toolBar.extra,
|
|
409
409
|
min: toolBar.min
|
|
410
410
|
})) : readonly ? null : null, /*#__PURE__*/ React.createElement("div", {
|
|
411
|
-
className: "".concat(baseClassName, "-container"),
|
|
411
|
+
className: classNames("".concat(baseClassName, "-container"), props.containerClassName, hashId),
|
|
412
412
|
style: _object_spread({
|
|
413
413
|
overflow: 'auto',
|
|
414
414
|
display: 'flex',
|