bhd-components 0.9.15 → 0.9.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.
@@ -604,7 +604,7 @@ var i18Conversion$1 = i18Conversion;
604
604
  };
605
605
  var BhdTableSimple$1 = BhdTableSimple;
606
606
 
607
- var modules_63b47c51$9 = {"customSuccess":"index_module_customSuccess__5425ddbb","customWarning":"index_module_customWarning__5425ddbb","customError":"index_module_customError__5425ddbb"};
607
+ var modules_63b47c51$9 = {"customSuccess":"index_module_customSuccess__dc4e3d45","customWarning":"index_module_customWarning__dc4e3d45","customError":"index_module_customError__dc4e3d45"};
608
608
 
609
609
  var CustomCloseSvg = function() {
610
610
  return /*#__PURE__*/ jsx("svg", {
@@ -2140,9 +2140,17 @@ var BhdSelect = function(props) {
2140
2140
  var renderSuffixIcon = function() {
2141
2141
  switch(arrowType){
2142
2142
  case "table":
2143
- return /*#__PURE__*/ jsx(CaretDownOutlined, {});
2143
+ return /*#__PURE__*/ jsx(CaretDownOutlined, {
2144
+ style: {
2145
+ pointerEvents: "none"
2146
+ }
2147
+ });
2144
2148
  default:
2145
- return /*#__PURE__*/ jsx(CustomArrow$1, {});
2149
+ return /*#__PURE__*/ jsx(CustomArrow$1, {
2150
+ style: {
2151
+ pointerEvents: "none"
2152
+ }
2153
+ });
2146
2154
  }
2147
2155
  };
2148
2156
  var filterOption = function() {
@@ -2520,7 +2528,7 @@ function BhdAppLayout(props) {
2520
2528
  });
2521
2529
  }
2522
2530
 
2523
- var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__2f1165e5","ChatWindow_Modal":"index_module_ChatWindow_Modal__2f1165e5","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__2f1165e5","header_wrap":"index_module_header_wrap__2f1165e5","top":"index_module_top__2f1165e5","user":"index_module_user__2f1165e5","count":"index_module_count__2f1165e5","operate":"index_module_operate__2f1165e5","line":"index_module_line__2f1165e5","popover_main":"index_module_popover_main__2f1165e5","popover":"index_module_popover__2f1165e5","header_wrap_newlabo":"index_module_header_wrap_newlabo__2f1165e5","Drawer_main":"index_module_Drawer_main__2f1165e5","loading":"index_module_loading__2f1165e5","message_con":"index_module_message_con__2f1165e5","left":"index_module_left__2f1165e5","head_sculpture":"index_module_head_sculpture__2f1165e5","main_content":"index_module_main_content__2f1165e5","right":"index_module_right__2f1165e5","main":"index_module_main__2f1165e5","main_content_flag":"index_module_main_content_flag__2f1165e5","operate_modal":"index_module_operate_modal__2f1165e5","operate_modal_bottom":"index_module_operate_modal_bottom__2f1165e5","active":"index_module_active__2f1165e5","stop_generate":"index_module_stop_generate__2f1165e5","icon":"index_module_icon__2f1165e5","find_teacher":"index_module_find_teacher__2f1165e5","stop_findTeacher":"index_module_stop_findTeacher__2f1165e5","content":"index_module_content__2f1165e5","content_child":"index_module_content_child__2f1165e5","find_teacher_con":"index_module_find_teacher_con__2f1165e5","sign":"index_module_sign__2f1165e5","ask_question":"index_module_ask_question__2f1165e5","bottom":"index_module_bottom__2f1165e5","association_problem":"index_module_association_problem__2f1165e5","association_problem_flag":"index_module_association_problem_flag__2f1165e5","related_issues_flag":"index_module_related_issues_flag__2f1165e5","img_con":"index_module_img_con__2f1165e5","mask_zoom":"index_module_mask_zoom__2f1165e5","img_con2":"index_module_img_con2__2f1165e5","copyCode":"index_module_copyCode__2f1165e5","time":"index_module_time__2f1165e5","citation_content":"index_module_citation_content__2f1165e5","text_exceed":"index_module_text_exceed__2f1165e5","popover_content":"index_module_popover_content__2f1165e5","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__2f1165e5","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__2f1165e5","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__2f1165e5","issues_list_teacherList":"index_module_issues_list_teacherList__2f1165e5","item":"index_module_item__2f1165e5","issues_list":"index_module_issues_list__2f1165e5","issues_list_flag":"index_module_issues_list_flag__2f1165e5","Drawer_buttom":"index_module_Drawer_buttom__2f1165e5","input_wrap":"index_module_input_wrap__2f1165e5","input":"index_module_input__2f1165e5","picture_layout":"index_module_picture_layout__2f1165e5","icon_close":"index_module_icon_close__2f1165e5","icon_zoom":"index_module_icon_zoom__2f1165e5","anticon":"index_module_anticon__2f1165e5","no_AI":"index_module_no_AI__2f1165e5","screenshot":"index_module_screenshot__2f1165e5","disabled":"index_module_disabled__2f1165e5","content_main":"index_module_content_main__2f1165e5","content_con":"index_module_content_con__2f1165e5","delete_quote":"index_module_delete_quote__2f1165e5","sending":"index_module_sending__2f1165e5","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__2f1165e5","main_list":"index_module_main_list__2f1165e5","chat_content":"index_module_chat_content__2f1165e5","popover_main_content":"index_module_popover_main_content__2f1165e5","popover_main_content_name":"index_module_popover_main_content_name__2f1165e5","teacher_layout":"index_module_teacher_layout__2f1165e5","delete":"index_module_delete__2f1165e5","num":"index_module_num__2f1165e5","shrink":"index_module_shrink__2f1165e5","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__2f1165e5","teacher_layout_modal":"index_module_teacher_layout_modal__2f1165e5","ai":"index_module_ai__2f1165e5","user_info":"index_module_user_info__2f1165e5","message":"index_module_message__2f1165e5","con":"index_module_con__2f1165e5","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__2f1165e5","history_list":"index_module_history_list__2f1165e5","search_layout":"index_module_search_layout__2f1165e5","mymove":"index_module_mymove__2f1165e5","title":"index_module_title__2f1165e5","search_top":"index_module_search_top__2f1165e5","list_item":"index_module_list_item__2f1165e5","list_summary":"index_module_list_summary__2f1165e5","head_img":"index_module_head_img__2f1165e5","list_desc":"index_module_list_desc__2f1165e5","name":"index_module_name__2f1165e5","decs":"index_module_decs__2f1165e5","open":"index_module_open__2f1165e5","list_summary_active":"index_module_list_summary_active__2f1165e5","list_detail":"index_module_list_detail__2f1165e5","list":"index_module_list__2f1165e5","list_more":"index_module_list_more__2f1165e5","no_data":"index_module_no_data__2f1165e5","history_list_broadside":"index_module_history_list_broadside__2f1165e5","teacher_list":"index_module_teacher_list__2f1165e5","screenshot_Modal":"index_module_screenshot_Modal__2f1165e5","ReactCrop":"index_module_ReactCrop__2f1165e5","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__2f1165e5"};
2531
+ var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__6402b35f","ChatWindow_Modal":"index_module_ChatWindow_Modal__6402b35f","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__6402b35f","header_wrap":"index_module_header_wrap__6402b35f","top":"index_module_top__6402b35f","user":"index_module_user__6402b35f","count":"index_module_count__6402b35f","operate":"index_module_operate__6402b35f","line":"index_module_line__6402b35f","popover_main":"index_module_popover_main__6402b35f","popover":"index_module_popover__6402b35f","header_wrap_newlabo":"index_module_header_wrap_newlabo__6402b35f","Drawer_main":"index_module_Drawer_main__6402b35f","loading":"index_module_loading__6402b35f","message_con":"index_module_message_con__6402b35f","left":"index_module_left__6402b35f","head_sculpture":"index_module_head_sculpture__6402b35f","main_content":"index_module_main_content__6402b35f","right":"index_module_right__6402b35f","main":"index_module_main__6402b35f","main_content_flag":"index_module_main_content_flag__6402b35f","operate_modal":"index_module_operate_modal__6402b35f","operate_modal_bottom":"index_module_operate_modal_bottom__6402b35f","active":"index_module_active__6402b35f","stop_generate":"index_module_stop_generate__6402b35f","icon":"index_module_icon__6402b35f","find_teacher":"index_module_find_teacher__6402b35f","stop_findTeacher":"index_module_stop_findTeacher__6402b35f","content":"index_module_content__6402b35f","content_child":"index_module_content_child__6402b35f","find_teacher_con":"index_module_find_teacher_con__6402b35f","sign":"index_module_sign__6402b35f","ask_question":"index_module_ask_question__6402b35f","bottom":"index_module_bottom__6402b35f","association_problem":"index_module_association_problem__6402b35f","association_problem_flag":"index_module_association_problem_flag__6402b35f","related_issues_flag":"index_module_related_issues_flag__6402b35f","img_con":"index_module_img_con__6402b35f","mask_zoom":"index_module_mask_zoom__6402b35f","img_con2":"index_module_img_con2__6402b35f","copyCode":"index_module_copyCode__6402b35f","time":"index_module_time__6402b35f","citation_content":"index_module_citation_content__6402b35f","text_exceed":"index_module_text_exceed__6402b35f","popover_content":"index_module_popover_content__6402b35f","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__6402b35f","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__6402b35f","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__6402b35f","issues_list_teacherList":"index_module_issues_list_teacherList__6402b35f","item":"index_module_item__6402b35f","issues_list":"index_module_issues_list__6402b35f","issues_list_flag":"index_module_issues_list_flag__6402b35f","Drawer_buttom":"index_module_Drawer_buttom__6402b35f","input_wrap":"index_module_input_wrap__6402b35f","input":"index_module_input__6402b35f","picture_layout":"index_module_picture_layout__6402b35f","icon_close":"index_module_icon_close__6402b35f","icon_zoom":"index_module_icon_zoom__6402b35f","anticon":"index_module_anticon__6402b35f","no_AI":"index_module_no_AI__6402b35f","screenshot":"index_module_screenshot__6402b35f","disabled":"index_module_disabled__6402b35f","content_main":"index_module_content_main__6402b35f","content_con":"index_module_content_con__6402b35f","delete_quote":"index_module_delete_quote__6402b35f","sending":"index_module_sending__6402b35f","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__6402b35f","main_list":"index_module_main_list__6402b35f","chat_content":"index_module_chat_content__6402b35f","popover_main_content":"index_module_popover_main_content__6402b35f","popover_main_content_name":"index_module_popover_main_content_name__6402b35f","teacher_layout":"index_module_teacher_layout__6402b35f","delete":"index_module_delete__6402b35f","num":"index_module_num__6402b35f","shrink":"index_module_shrink__6402b35f","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__6402b35f","teacher_layout_modal":"index_module_teacher_layout_modal__6402b35f","ai":"index_module_ai__6402b35f","user_info":"index_module_user_info__6402b35f","message":"index_module_message__6402b35f","con":"index_module_con__6402b35f","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__6402b35f","history_list":"index_module_history_list__6402b35f","search_layout":"index_module_search_layout__6402b35f","mymove":"index_module_mymove__6402b35f","title":"index_module_title__6402b35f","search_top":"index_module_search_top__6402b35f","list_item":"index_module_list_item__6402b35f","list_summary":"index_module_list_summary__6402b35f","head_img":"index_module_head_img__6402b35f","list_desc":"index_module_list_desc__6402b35f","name":"index_module_name__6402b35f","decs":"index_module_decs__6402b35f","open":"index_module_open__6402b35f","list_summary_active":"index_module_list_summary_active__6402b35f","list_detail":"index_module_list_detail__6402b35f","list":"index_module_list__6402b35f","list_more":"index_module_list_more__6402b35f","no_data":"index_module_no_data__6402b35f","history_list_broadside":"index_module_history_list_broadside__6402b35f","teacher_list":"index_module_teacher_list__6402b35f","screenshot_Modal":"index_module_screenshot_Modal__6402b35f","ReactCrop":"index_module_ReactCrop__6402b35f","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__6402b35f"};
2524
2532
 
2525
2533
  //消息已读
2526
2534
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3008,14 +3016,14 @@ var HistoryFun = function(props) {
3008
3016
  })
3009
3017
  ]
3010
3018
  }),
3011
- /*#__PURE__*/ jsx("div", {
3012
- className: modules_63b47c51$1.main_list,
3013
- id: "history_list",
3014
- children: /*#__PURE__*/ jsxs(Spin, {
3015
- spinning: loading,
3016
- tip: "加载中...",
3019
+ /*#__PURE__*/ jsx(Spin, {
3020
+ spinning: loading,
3021
+ tip: "加载中...",
3022
+ children: /*#__PURE__*/ jsxs("div", {
3023
+ className: modules_63b47c51$1.main_list,
3024
+ id: "history_list",
3017
3025
  children: [
3018
- showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
3026
+ !loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
3019
3027
  className: modules_63b47c51$1.no_data,
3020
3028
  children: [
3021
3029
  /*#__PURE__*/ jsx("img", {
@@ -3026,7 +3034,7 @@ var HistoryFun = function(props) {
3026
3034
  })
3027
3035
  ]
3028
3036
  }),
3029
- showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3037
+ !loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
3030
3038
  className: modules_63b47c51$1.no_data,
3031
3039
  children: [
3032
3040
  /*#__PURE__*/ jsx("img", {
@@ -3037,7 +3045,7 @@ var HistoryFun = function(props) {
3037
3045
  })
3038
3046
  ]
3039
3047
  }),
3040
- /*#__PURE__*/ jsx("div", {
3048
+ !loading && /*#__PURE__*/ jsx("div", {
3041
3049
  className: modules_63b47c51$1.list_item,
3042
3050
  children: totalData.map(function(item) {
3043
3051
  var span = "";
@@ -10282,32 +10290,39 @@ var CustomerService = function(props) {
10282
10290
  children: /*#__PURE__*/ jsxs("div", {
10283
10291
  className: styles.main_content_flag,
10284
10292
  onMouseEnter: function() {
10285
- var dom = document.getElementById(item.id);
10286
- if (dom) {
10287
- var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
10288
- var rectY = dom.getBoundingClientRect().y - 48;
10289
- var h = dom.clientHeight + 24; //当前元素高度
10290
- var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10291
- var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10292
- if (topDom && bottomDom) {
10293
- console.log(h, con_h, rectY);
10294
- if (rectY > 0) {
10295
- topDom.style.cssText = "";
10296
- bottomDom.style.cssText = "visibility: hidden;";
10297
- // 上下都能显示时,显示到下边
10298
- if (h < con_h - rectY) {
10299
- topDom.style.cssText = "visibility: hidden;";
10300
- bottomDom.style.cssText = "";
10301
- }
10302
- } else {
10303
- // 上下都不显示
10304
- if (h > con_h && h - con_h > Math.abs(rectY)) {
10305
- console.log("rerererererer");
10306
- topDom.style.cssText = "visibility: hidden;";
10307
- bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
10293
+ var isSmall = showType == 1 || showType == 3;
10294
+ var container = document.getElementById(isSmall ? "chat_content" : "chat_content_modal");
10295
+ if (container) {
10296
+ var dom = container.querySelector('[id="'.concat(item.id, '"]'));
10297
+ if (dom) {
10298
+ // const con_h=document.getElementById('chat_content').clientHeight-24;//滚动区域的高度
10299
+ var con_h = container.clientHeight - (isSmall ? 24 : 0); //滚动区域的高度;
10300
+ var rectY = dom.getBoundingClientRect().y - 48;
10301
+ var h = dom.clientHeight + (isSmall ? 24 : 0); //当前元素高度
10302
+ var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10303
+ var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10304
+ // console.log({h,con_h,rectY,topDom,bottomDom})
10305
+ if (topDom && bottomDom) {
10306
+ if (rectY > 0) {
10307
+ topDom.style.cssText = "";
10308
+ bottomDom.style.cssText = "visibility: hidden;";
10309
+ // 上下都能显示时,显示到下边
10310
+ if (h < con_h - rectY) {
10311
+ console.log("上下都能显示时,显示到下边");
10312
+ topDom.style.cssText = "visibility: hidden;";
10313
+ bottomDom.style.cssText = "";
10314
+ }
10308
10315
  } else {
10309
- topDom.style.cssText = "visibility: hidden;";
10310
- bottomDom.style.cssText = "";
10316
+ // 上下都不显示
10317
+ if (h > con_h && h - con_h > Math.abs(rectY)) {
10318
+ console.log("上下都不显示");
10319
+ topDom.style.cssText = "visibility: hidden;";
10320
+ bottomDom.style.cssText = "top:".concat(-(h + rectY - 51 - (isSmall ? 0 : 58)), "px;");
10321
+ } else {
10322
+ console.log("12312312");
10323
+ topDom.style.cssText = "visibility: hidden;";
10324
+ bottomDom.style.cssText = "";
10325
+ }
10311
10326
  }
10312
10327
  }
10313
10328
  }