bhd-components 0.10.24 → 0.10.26

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.
@@ -512,7 +512,10 @@ const VirtuosoList = /*#__PURE__*/ forwardRef((props, ref)=>{
512
512
  // 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
513
513
  }
514
514
  if (location === "floatTop" || location === "floatBottom") {
515
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
515
+ if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) // return null;
516
+ return /*#__PURE__*/ _jsx("div", {
517
+ className: `${getCls("msgItem-action-empty")}`
518
+ });
516
519
  // 浮框
517
520
  return /*#__PURE__*/ _jsx("div", {
518
521
  className: `${getCls("msgItem-action-operate")}`,
@@ -609,7 +609,7 @@ const CustomerService = (props)=>{
609
609
  roomId: roomId,
610
610
  sender: "AI",
611
611
  recevier: mid,
612
- message: `Hi,我是智能学习助手,你遇到了什么问题?2`
612
+ message: `Hi,我是智能学习助手,你遇到了什么问题?`
613
613
  };
614
614
  if (pageNumHistory <= 1) {
615
615
  setHistoryMessageList((historyMessageList)=>{
@@ -2051,14 +2051,21 @@
2051
2051
  padding: 16px;
2052
2052
  }
2053
2053
  .main_list {
2054
- height: calc(100% - 140px);
2055
- max-height: calc(100% - 140px);
2054
+ // height: calc(100% - 140px);
2055
+ // max-height: calc(100% - 140px);
2056
+ height: 100%;
2057
+ max-height: 100%;
2056
2058
  // .list{
2057
2059
  // margin: 8px 16px 17px;
2058
2060
  // }
2059
2061
 
2060
2062
 
2061
2063
  }
2064
+ :global{
2065
+ .bhd-spin-container{
2066
+ height:100%
2067
+ }
2068
+ }
2062
2069
  }
2063
2070
  .open{
2064
2071
  left: -7px !important;
@@ -2037,12 +2037,19 @@
2037
2037
  padding: 16px;
2038
2038
  }
2039
2039
  .main_list {
2040
- height: calc(100% - 140px);
2041
- max-height: calc(100% - 140px);
2040
+ // height: calc(100% - 140px);
2041
+ // max-height: calc(100% - 140px);
2042
+ height: 100%;
2043
+ max-height: 100%;
2042
2044
  // .list{
2043
2045
  // margin: 8px 16px 17px;
2044
2046
  // }
2045
2047
  }
2048
+ :global{
2049
+ .bhd-spin-container{
2050
+ height:100%
2051
+ }
2052
+ }
2046
2053
  }
2047
2054
  }
2048
2055
  //老师列表
@@ -520,7 +520,10 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
520
520
  // 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
521
521
  }
522
522
  if (location === "floatTop" || location === "floatBottom") {
523
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
523
+ if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) // return null;
524
+ return /*#__PURE__*/ _jsx("div", {
525
+ className: "".concat(getCls("msgItem-action-empty"))
526
+ });
524
527
  // 浮框
525
528
  return /*#__PURE__*/ _jsx("div", {
526
529
  className: "".concat(getCls("msgItem-action-operate")),
@@ -622,7 +622,7 @@ var CustomerService = function(props) {
622
622
  roomId: roomId,
623
623
  sender: "AI",
624
624
  recevier: mid,
625
- message: "Hi,我是智能学习助手,你遇到了什么问题?2"
625
+ message: "Hi,我是智能学习助手,你遇到了什么问题?"
626
626
  };
627
627
  if (pageNumHistory <= 1) {
628
628
  setHistoryMessageList(function(historyMessageList) {
@@ -2051,14 +2051,21 @@
2051
2051
  padding: 16px;
2052
2052
  }
2053
2053
  .main_list {
2054
- height: calc(100% - 140px);
2055
- max-height: calc(100% - 140px);
2054
+ // height: calc(100% - 140px);
2055
+ // max-height: calc(100% - 140px);
2056
+ height: 100%;
2057
+ max-height: 100%;
2056
2058
  // .list{
2057
2059
  // margin: 8px 16px 17px;
2058
2060
  // }
2059
2061
 
2060
2062
 
2061
2063
  }
2064
+ :global{
2065
+ .bhd-spin-container{
2066
+ height:100%
2067
+ }
2068
+ }
2062
2069
  }
2063
2070
  .open{
2064
2071
  left: -7px !important;
@@ -2037,12 +2037,19 @@
2037
2037
  padding: 16px;
2038
2038
  }
2039
2039
  .main_list {
2040
- height: calc(100% - 140px);
2041
- max-height: calc(100% - 140px);
2040
+ // height: calc(100% - 140px);
2041
+ // max-height: calc(100% - 140px);
2042
+ height: 100%;
2043
+ max-height: 100%;
2042
2044
  // .list{
2043
2045
  // margin: 8px 16px 17px;
2044
2046
  // }
2045
2047
  }
2048
+ :global{
2049
+ .bhd-spin-container{
2050
+ height:100%
2051
+ }
2052
+ }
2046
2053
  }
2047
2054
  }
2048
2055
  //老师列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.10.24",
3
+ "version": "0.10.26",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {