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.
@@ -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) return /*#__PURE__*/ _jsx("div", {
399
- className: `${getCls("msgItem-action-empty")}`
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) return /*#__PURE__*/ _jsx("div", {
403
- className: "".concat(getCls("msgItem-action-empty"))
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.10.16",
3
+ "version": "0.10.17",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {