bhd-components 0.10.16 → 0.10.17
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/index.esm.es5.development.js +8 -3
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/AIMessageList/components/virtuosoList/index.js +8 -3
- package/esm/AIMessageList/components/virtuosoList/index.js +8 -3
- package/package.json +1 -1
|
@@ -395,9 +395,14 @@ const VirtuosoList = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
395
395
|
topDom.style.cssText = "";
|
|
396
396
|
};
|
|
397
397
|
const renderAction = (location, item)=>{
|
|
398
|
-
if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId || item.hideAction)
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId || item.hideAction) {
|
|
399
|
+
if (location === "floatBottom") {
|
|
400
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
401
|
+
className: `${getCls("msgItem-action-empty")}`
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
401
406
|
let copyNode = /*#__PURE__*/ _jsx(CopyIcon, {
|
|
402
407
|
prefix: prefix,
|
|
403
408
|
content: item.content
|
|
@@ -399,9 +399,14 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
399
399
|
topDom.style.cssText = "";
|
|
400
400
|
};
|
|
401
401
|
var renderAction = function(location, item) {
|
|
402
|
-
if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId || item.hideAction)
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId || item.hideAction) {
|
|
403
|
+
if (location === "floatBottom") {
|
|
404
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
405
|
+
className: "".concat(getCls("msgItem-action-empty"))
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
405
410
|
var copyNode = /*#__PURE__*/ _jsx(CopyIcon, {
|
|
406
411
|
prefix: prefix,
|
|
407
412
|
content: item.content
|