bhd-components 0.9.8 → 0.9.10

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.
@@ -505,10 +505,18 @@ var i18Conversion$1 = i18Conversion;
505
505
  超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
506
506
  */ var BhdTableSimple = function(props) {
507
507
  var className = props.className; props.locale; props.borderBottom; var rowSelection = props.rowSelection, ajaxErr = props.ajaxErr, dataSource = props.dataSource, _props_kind = props.kind, kind = _props_kind === void 0 ? "simple" : _props_kind, loading = props.loading, _props_notDataText = props.notDataText, notDataText = _props_notDataText === void 0 ? i18Conversion$1("noData") : _props_notDataText;
508
+ var tableRef = useRef(null);
508
509
  var renderTableText = function() {
510
+ var minHeight = props.scroll.y.replace(/\)/, "");
511
+ minHeight = minHeight + " - 42px)";
512
+ var width = tableRef.current ? tableRef.current.offsetWidth - 42 : 0;
509
513
  if (ajaxErr) {
510
514
  return /*#__PURE__*/ jsxs("div", {
511
515
  className: "app_BhdTableSimple_errorTable",
516
+ style: {
517
+ minHeight: minHeight,
518
+ width: width + "px"
519
+ },
512
520
  children: [
513
521
  /*#__PURE__*/ jsx("img", {
514
522
  src: ServerError$1,
@@ -524,7 +532,8 @@ var i18Conversion$1 = i18Conversion;
524
532
  return /*#__PURE__*/ jsxs("div", {
525
533
  className: "app_BhdTableSimple_noTable app_BhdTableSimple_noTable_loadingTable",
526
534
  style: {
527
- minHeight: "150px"
535
+ minHeight: minHeight,
536
+ width: width + "px"
528
537
  },
529
538
  children: [
530
539
  /*#__PURE__*/ jsx("img", {
@@ -544,7 +553,8 @@ var i18Conversion$1 = i18Conversion;
544
553
  return /*#__PURE__*/ jsxs("div", {
545
554
  className: "app_BhdTableSimple_noTable",
546
555
  style: {
547
- width: "100%"
556
+ width: width + "px",
557
+ minHeight: minHeight
548
558
  },
549
559
  children: [
550
560
  /*#__PURE__*/ jsx("img", {
@@ -557,22 +567,12 @@ var i18Conversion$1 = i18Conversion;
557
567
  ]
558
568
  });
559
569
  };
560
- /*#__PURE__*/ jsxs("div", {
561
- className: "app_BhdTableSimple_noTable app_BhdTableSimple_noTable_loadingTable",
562
- children: [
563
- /*#__PURE__*/ jsx("img", {
564
- src: Loading,
565
- alt: "",
566
- style: {
567
- width: "48px",
568
- height: "48px"
569
- }
570
- }),
571
- /*#__PURE__*/ jsx("p", {
572
- children: i18Conversion$1("Load")
573
- })
574
- ]
575
- });
570
+ // const loadingTable = (
571
+ // <div className="app_BhdTableSimple_noTable app_BhdTableSimple_noTable_loadingTable">
572
+ // <img src={Loading} alt="" style={{ width: "48px", height: "48px" }} />
573
+ // <p>{i18Conversion("Load")}</p>
574
+ // </div>
575
+ // );
576
576
  var tableProps = _object_spread_props(_object_spread({
577
577
  style: {
578
578
  width: "100%"
@@ -592,7 +592,10 @@ var i18Conversion$1 = i18Conversion;
592
592
  // if (loading) {
593
593
  // return loadingTable;
594
594
  // }
595
- return /*#__PURE__*/ jsx(Table$1, _object_spread({}, tableProps));
595
+ return /*#__PURE__*/ jsx("div", {
596
+ ref: tableRef,
597
+ children: /*#__PURE__*/ jsx(Table$1, _object_spread({}, tableProps))
598
+ });
596
599
  };
597
600
  var BhdTableSimple$1 = BhdTableSimple;
598
601
 
@@ -2388,7 +2391,7 @@ var BhdSelect = function(props) {
2388
2391
  BhdSelect.Option = Select.Option;
2389
2392
  var BhdSelect$1 = BhdSelect;
2390
2393
 
2391
- var modules_63b47c51$2 = {"bhd_app_layout":"index_module_bhd_app_layout__32fa6256","bhd_app_layout_header":"index_module_bhd_app_layout_header__32fa6256","bhd_app_layout_main":"index_module_bhd_app_layout_main__32fa6256","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__32fa6256","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__32fa6256","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__32fa6256","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__32fa6256","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__32fa6256","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__32fa6256","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__32fa6256"};
2394
+ var modules_63b47c51$2 = {"bhd_app_layout":"index_module_bhd_app_layout__a547e666","bhd_app_layout_header":"index_module_bhd_app_layout_header__a547e666","bhd_app_layout_main":"index_module_bhd_app_layout_main__a547e666","bhd_app_layout_main_filter":"index_module_bhd_app_layout_main_filter__a547e666","bhd_app_layout_main_filter_title":"index_module_bhd_app_layout_main_filter_title__a547e666","bhd_app_layout_main_filter_ul":"index_module_bhd_app_layout_main_filter_ul__a547e666","bhd_app_layout_main_filter_show_value":"index_module_bhd_app_layout_main_filter_show_value__a547e666","bhd_app_layout_main_filter_clear":"index_module_bhd_app_layout_main_filter_clear__a547e666","bhd_app_layout_main_table":"index_module_bhd_app_layout_main_table__a547e666","bhd_app_layout_footer":"index_module_bhd_app_layout_footer__a547e666"};
2392
2395
 
2393
2396
  function BhdAppLayout(props) {
2394
2397
  var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
@@ -2512,7 +2515,7 @@ function BhdAppLayout(props) {
2512
2515
  });
2513
2516
  }
2514
2517
 
2515
- var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__344883f9","ChatWindow_Modal":"index_module_ChatWindow_Modal__344883f9","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__344883f9","header_wrap":"index_module_header_wrap__344883f9","top":"index_module_top__344883f9","user":"index_module_user__344883f9","count":"index_module_count__344883f9","operate":"index_module_operate__344883f9","line":"index_module_line__344883f9","popover_main":"index_module_popover_main__344883f9","popover":"index_module_popover__344883f9","header_wrap_newlabo":"index_module_header_wrap_newlabo__344883f9","Drawer_main":"index_module_Drawer_main__344883f9","loading":"index_module_loading__344883f9","message_con":"index_module_message_con__344883f9","left":"index_module_left__344883f9","head_sculpture":"index_module_head_sculpture__344883f9","main_content":"index_module_main_content__344883f9","right":"index_module_right__344883f9","main":"index_module_main__344883f9","main_content_flag":"index_module_main_content_flag__344883f9","operate_modal":"index_module_operate_modal__344883f9","operate_modal_bottom":"index_module_operate_modal_bottom__344883f9","active":"index_module_active__344883f9","stop_generate":"index_module_stop_generate__344883f9","icon":"index_module_icon__344883f9","find_teacher":"index_module_find_teacher__344883f9","stop_findTeacher":"index_module_stop_findTeacher__344883f9","content":"index_module_content__344883f9","content_child":"index_module_content_child__344883f9","find_teacher_con":"index_module_find_teacher_con__344883f9","sign":"index_module_sign__344883f9","ask_question":"index_module_ask_question__344883f9","bottom":"index_module_bottom__344883f9","association_problem":"index_module_association_problem__344883f9","association_problem_flag":"index_module_association_problem_flag__344883f9","related_issues_flag":"index_module_related_issues_flag__344883f9","img_con":"index_module_img_con__344883f9","mask_zoom":"index_module_mask_zoom__344883f9","img_con2":"index_module_img_con2__344883f9","copyCode":"index_module_copyCode__344883f9","time":"index_module_time__344883f9","citation_content":"index_module_citation_content__344883f9","text_exceed":"index_module_text_exceed__344883f9","popover_content":"index_module_popover_content__344883f9","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__344883f9","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__344883f9","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__344883f9","issues_list_teacherList":"index_module_issues_list_teacherList__344883f9","item":"index_module_item__344883f9","issues_list":"index_module_issues_list__344883f9","issues_list_flag":"index_module_issues_list_flag__344883f9","Drawer_buttom":"index_module_Drawer_buttom__344883f9","input_wrap":"index_module_input_wrap__344883f9","input":"index_module_input__344883f9","picture_layout":"index_module_picture_layout__344883f9","icon_close":"index_module_icon_close__344883f9","icon_zoom":"index_module_icon_zoom__344883f9","anticon":"index_module_anticon__344883f9","no_AI":"index_module_no_AI__344883f9","screenshot":"index_module_screenshot__344883f9","disabled":"index_module_disabled__344883f9","content_main":"index_module_content_main__344883f9","content_con":"index_module_content_con__344883f9","delete_quote":"index_module_delete_quote__344883f9","sending":"index_module_sending__344883f9","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__344883f9","main_list":"index_module_main_list__344883f9","chat_content":"index_module_chat_content__344883f9","popover_main_content":"index_module_popover_main_content__344883f9","popover_main_content_name":"index_module_popover_main_content_name__344883f9","teacher_layout":"index_module_teacher_layout__344883f9","delete":"index_module_delete__344883f9","num":"index_module_num__344883f9","shrink":"index_module_shrink__344883f9","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__344883f9","teacher_layout_modal":"index_module_teacher_layout_modal__344883f9","ai":"index_module_ai__344883f9","user_info":"index_module_user_info__344883f9","message":"index_module_message__344883f9","con":"index_module_con__344883f9","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__344883f9","history_list":"index_module_history_list__344883f9","search_layout":"index_module_search_layout__344883f9","mymove":"index_module_mymove__344883f9","title":"index_module_title__344883f9","search_top":"index_module_search_top__344883f9","list_item":"index_module_list_item__344883f9","list_summary":"index_module_list_summary__344883f9","head_img":"index_module_head_img__344883f9","list_desc":"index_module_list_desc__344883f9","name":"index_module_name__344883f9","decs":"index_module_decs__344883f9","open":"index_module_open__344883f9","list_summary_active":"index_module_list_summary_active__344883f9","list_detail":"index_module_list_detail__344883f9","list":"index_module_list__344883f9","list_more":"index_module_list_more__344883f9","no_data":"index_module_no_data__344883f9","history_list_broadside":"index_module_history_list_broadside__344883f9","teacher_list":"index_module_teacher_list__344883f9","screenshot_Modal":"index_module_screenshot_Modal__344883f9","ReactCrop":"index_module_ReactCrop__344883f9","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__344883f9"};
2518
+ var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__1606ecfb","ChatWindow_Modal":"index_module_ChatWindow_Modal__1606ecfb","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__1606ecfb","header_wrap":"index_module_header_wrap__1606ecfb","top":"index_module_top__1606ecfb","user":"index_module_user__1606ecfb","count":"index_module_count__1606ecfb","operate":"index_module_operate__1606ecfb","line":"index_module_line__1606ecfb","popover_main":"index_module_popover_main__1606ecfb","popover":"index_module_popover__1606ecfb","header_wrap_newlabo":"index_module_header_wrap_newlabo__1606ecfb","Drawer_main":"index_module_Drawer_main__1606ecfb","loading":"index_module_loading__1606ecfb","message_con":"index_module_message_con__1606ecfb","left":"index_module_left__1606ecfb","head_sculpture":"index_module_head_sculpture__1606ecfb","main_content":"index_module_main_content__1606ecfb","right":"index_module_right__1606ecfb","main":"index_module_main__1606ecfb","main_content_flag":"index_module_main_content_flag__1606ecfb","operate_modal":"index_module_operate_modal__1606ecfb","operate_modal_bottom":"index_module_operate_modal_bottom__1606ecfb","active":"index_module_active__1606ecfb","stop_generate":"index_module_stop_generate__1606ecfb","icon":"index_module_icon__1606ecfb","find_teacher":"index_module_find_teacher__1606ecfb","stop_findTeacher":"index_module_stop_findTeacher__1606ecfb","content":"index_module_content__1606ecfb","content_child":"index_module_content_child__1606ecfb","find_teacher_con":"index_module_find_teacher_con__1606ecfb","sign":"index_module_sign__1606ecfb","ask_question":"index_module_ask_question__1606ecfb","bottom":"index_module_bottom__1606ecfb","association_problem":"index_module_association_problem__1606ecfb","association_problem_flag":"index_module_association_problem_flag__1606ecfb","related_issues_flag":"index_module_related_issues_flag__1606ecfb","img_con":"index_module_img_con__1606ecfb","mask_zoom":"index_module_mask_zoom__1606ecfb","img_con2":"index_module_img_con2__1606ecfb","copyCode":"index_module_copyCode__1606ecfb","time":"index_module_time__1606ecfb","citation_content":"index_module_citation_content__1606ecfb","text_exceed":"index_module_text_exceed__1606ecfb","popover_content":"index_module_popover_content__1606ecfb","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__1606ecfb","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__1606ecfb","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__1606ecfb","issues_list_teacherList":"index_module_issues_list_teacherList__1606ecfb","item":"index_module_item__1606ecfb","issues_list":"index_module_issues_list__1606ecfb","issues_list_flag":"index_module_issues_list_flag__1606ecfb","Drawer_buttom":"index_module_Drawer_buttom__1606ecfb","input_wrap":"index_module_input_wrap__1606ecfb","input":"index_module_input__1606ecfb","picture_layout":"index_module_picture_layout__1606ecfb","icon_close":"index_module_icon_close__1606ecfb","icon_zoom":"index_module_icon_zoom__1606ecfb","anticon":"index_module_anticon__1606ecfb","no_AI":"index_module_no_AI__1606ecfb","screenshot":"index_module_screenshot__1606ecfb","disabled":"index_module_disabled__1606ecfb","content_main":"index_module_content_main__1606ecfb","content_con":"index_module_content_con__1606ecfb","delete_quote":"index_module_delete_quote__1606ecfb","sending":"index_module_sending__1606ecfb","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__1606ecfb","main_list":"index_module_main_list__1606ecfb","chat_content":"index_module_chat_content__1606ecfb","popover_main_content":"index_module_popover_main_content__1606ecfb","popover_main_content_name":"index_module_popover_main_content_name__1606ecfb","teacher_layout":"index_module_teacher_layout__1606ecfb","delete":"index_module_delete__1606ecfb","num":"index_module_num__1606ecfb","shrink":"index_module_shrink__1606ecfb","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__1606ecfb","teacher_layout_modal":"index_module_teacher_layout_modal__1606ecfb","ai":"index_module_ai__1606ecfb","user_info":"index_module_user_info__1606ecfb","message":"index_module_message__1606ecfb","con":"index_module_con__1606ecfb","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__1606ecfb","history_list":"index_module_history_list__1606ecfb","search_layout":"index_module_search_layout__1606ecfb","mymove":"index_module_mymove__1606ecfb","title":"index_module_title__1606ecfb","search_top":"index_module_search_top__1606ecfb","list_item":"index_module_list_item__1606ecfb","list_summary":"index_module_list_summary__1606ecfb","head_img":"index_module_head_img__1606ecfb","list_desc":"index_module_list_desc__1606ecfb","name":"index_module_name__1606ecfb","decs":"index_module_decs__1606ecfb","open":"index_module_open__1606ecfb","list_summary_active":"index_module_list_summary_active__1606ecfb","list_detail":"index_module_list_detail__1606ecfb","list":"index_module_list__1606ecfb","list_more":"index_module_list_more__1606ecfb","no_data":"index_module_no_data__1606ecfb","history_list_broadside":"index_module_history_list_broadside__1606ecfb","teacher_list":"index_module_teacher_list__1606ecfb","screenshot_Modal":"index_module_screenshot_Modal__1606ecfb","ReactCrop":"index_module_ReactCrop__1606ecfb","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__1606ecfb"};
2516
2519
 
2517
2520
  //消息已读
2518
2521
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -10132,11 +10135,11 @@ var CustomerService = function(props) {
10132
10135
  if (dom) {
10133
10136
  var con_h = document.getElementById("chat_content").clientHeight - 24; //滚动区域的高度
10134
10137
  var rectY = dom.getBoundingClientRect().y - 48;
10135
- var h = dom.clientHeight; //当前元素高度
10138
+ var h = dom.clientHeight + 24; //当前元素高度
10136
10139
  var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
10137
10140
  var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
10138
10141
  if (topDom && bottomDom) {
10139
- // console.log(h,dom.getBoundingClientRect().y,rectY)
10142
+ console.log(h, con_h, rectY);
10140
10143
  if (rectY > 0) {
10141
10144
  topDom.style.cssText = "";
10142
10145
  bottomDom.style.cssText = "visibility: hidden;";
@@ -10146,8 +10149,15 @@ var CustomerService = function(props) {
10146
10149
  bottomDom.style.cssText = "";
10147
10150
  }
10148
10151
  } else {
10149
- topDom.style.cssText = "visibility: hidden;";
10150
- bottomDom.style.cssText = "";
10152
+ // 上下都不显示
10153
+ if (h > con_h && h - con_h > Math.abs(rectY)) {
10154
+ console.log("rerererererer");
10155
+ topDom.style.cssText = "visibility: hidden;";
10156
+ bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
10157
+ } else {
10158
+ topDom.style.cssText = "visibility: hidden;";
10159
+ bottomDom.style.cssText = "";
10160
+ }
10151
10161
  }
10152
10162
  }
10153
10163
  }