bhd-components 0.6.7 → 0.6.8

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.
@@ -1,5 +1,5 @@
1
- import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, y as Remarkable, D as Drawer, H as HighlightJS } from './4fa3313f.esm.es5.development.js';
2
- export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './4fa3313f.esm.es5.development.js';
1
+ import { z as zhCN, C as ConfigProvider, _ as _extends, a as _object_destructuring_empty, j as jsx, b as _object_spread_props, S as StyleProvider, t as transform, c as _object_spread, d as _sliced_to_array, T as Tooltip, e as Table$2, I as Icon, f as jsxs, m as message, E as ExclamationCircleFilled, P as Pagination, g as Select, h as CaretDownOutlined, M as Modal, i as _inherits, k as _create_super, l as _create_class, n as _class_call_check, o as _define_property, p as _assert_this_initialized, q as _async_to_generator, L as LeftOutlined, R as RightOutlined, r as MinusOutlined, s as PlusOutlined, u as __generator, v as Input, w as SearchOutlined, x as CloseOutlined, y as Remarkable, D as Drawer, H as HighlightJS } from './12224038.esm.es5.development.js';
2
+ export { A as Affix, B as Alert, F as Anchor, aA as App, G as AutoComplete, J as Avatar, N as BackTop, O as Badge, Q as Breadcrumb, U as Button, V as Calendar, W as Card, X as Carousel, Y as Cascader, Z as Checkbox, $ as Col, a0 as Collapse, a1 as DatePicker, a2 as Descriptions, a3 as Divider, D as Drawer, a4 as Dropdown, a5 as Empty, K as FloatButton, a6 as Form, a7 as Grid, a8 as Image, v as Input, a9 as InputNumber, aa as Layout, ab as List, ac as Mentions, ad as Menu, M as Modal, af as Popconfirm, ag as Popover, ah as Progress, aH as QRCode, ai as Radio, aj as Rate, ak as Result, al as Row, am as Segmented, g as Select, an as Skeleton, ao as Slider, ap as Space, aq as Spin, ar as Statistic, as as Steps, at as Switch, au as Tabs, av as Tag, ax as TimePicker, ay as Timeline, T as Tooltip, az as Tour, aB as Transfer, aC as Tree, aD as TreeSelect, aE as Typography, aF as Upload, aG as Watermark, aJ as en_US, ae as notification, aw as theme, aI as version, z as zh_CN } from './12224038.esm.es5.development.js';
3
3
  import * as React from 'react';
4
4
  import { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle } from 'react';
5
5
  import { Fragment } from 'react/jsx-runtime';
@@ -2332,7 +2332,7 @@ function BhdAppLayout(props) {
2332
2332
  });
2333
2333
  }
2334
2334
 
2335
- var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__9cd6a734","ChatWindow_Modal":"index_module_ChatWindow_Modal__9cd6a734","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__9cd6a734","header_wrap":"index_module_header_wrap__9cd6a734","top":"index_module_top__9cd6a734","user":"index_module_user__9cd6a734","count":"index_module_count__9cd6a734","operate":"index_module_operate__9cd6a734","line":"index_module_line__9cd6a734","header_wrap_newlabo":"index_module_header_wrap_newlabo__9cd6a734","Drawer_main":"index_module_Drawer_main__9cd6a734","loading":"index_module_loading__9cd6a734","message_con":"index_module_message_con__9cd6a734","left":"index_module_left__9cd6a734","head_sculpture":"index_module_head_sculpture__9cd6a734","main_content":"index_module_main_content__9cd6a734","right":"index_module_right__9cd6a734","main":"index_module_main__9cd6a734","main_content_flag":"index_module_main_content_flag__9cd6a734","operate_modal":"index_module_operate_modal__9cd6a734","content":"index_module_content__9cd6a734","content_child":"index_module_content_child__9cd6a734","active":"index_module_active__9cd6a734","ask_question":"index_module_ask_question__9cd6a734","operate_modal_bottom":"index_module_operate_modal_bottom__9cd6a734","stop_generate":"index_module_stop_generate__9cd6a734","icon":"index_module_icon__9cd6a734","find_teacher":"index_module_find_teacher__9cd6a734","stop_findTeacher":"index_module_stop_findTeacher__9cd6a734","association_problem":"index_module_association_problem__9cd6a734","time":"index_module_time__9cd6a734","citation_content":"index_module_citation_content__9cd6a734","text_exceed":"index_module_text_exceed__9cd6a734","popover_content":"index_module_popover_content__9cd6a734","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__9cd6a734","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__9cd6a734","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__9cd6a734","issues_list_teacherList":"index_module_issues_list_teacherList__9cd6a734","item":"index_module_item__9cd6a734","issues_list":"index_module_issues_list__9cd6a734","sign":"index_module_sign__9cd6a734","Drawer_buttom":"index_module_Drawer_buttom__9cd6a734","input_wrap":"index_module_input_wrap__9cd6a734","input":"index_module_input__9cd6a734","no_AI":"index_module_no_AI__9cd6a734","voice":"index_module_voice__9cd6a734","voice_btn":"index_module_voice_btn__9cd6a734","disabled":"index_module_disabled__9cd6a734","content_main":"index_module_content_main__9cd6a734","content_con":"index_module_content_con__9cd6a734","delete_quote":"index_module_delete_quote__9cd6a734","sending":"index_module_sending__9cd6a734","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__9cd6a734","main_list":"index_module_main_list__9cd6a734","chat_content":"index_module_chat_content__9cd6a734","popover_main_content":"index_module_popover_main_content__9cd6a734","popover_main_content_name":"index_module_popover_main_content_name__9cd6a734","teacher_layout":"index_module_teacher_layout__9cd6a734","bottom":"index_module_bottom__9cd6a734","delete":"index_module_delete__9cd6a734","num":"index_module_num__9cd6a734","shrink":"index_module_shrink__9cd6a734","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__9cd6a734","teacher_layout_modal":"index_module_teacher_layout_modal__9cd6a734","ai":"index_module_ai__9cd6a734","user_info":"index_module_user_info__9cd6a734","message":"index_module_message__9cd6a734","con":"index_module_con__9cd6a734","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__9cd6a734","history_list":"index_module_history_list__9cd6a734","search_layout":"index_module_search_layout__9cd6a734","mymove":"index_module_mymove__9cd6a734","title":"index_module_title__9cd6a734","search_top":"index_module_search_top__9cd6a734","list_item":"index_module_list_item__9cd6a734","list_summary":"index_module_list_summary__9cd6a734","head_img":"index_module_head_img__9cd6a734","list_desc":"index_module_list_desc__9cd6a734","name":"index_module_name__9cd6a734","decs":"index_module_decs__9cd6a734","open":"index_module_open__9cd6a734","list_detail":"index_module_list_detail__9cd6a734","list":"index_module_list__9cd6a734","list_more":"index_module_list_more__9cd6a734","no_data":"index_module_no_data__9cd6a734","history_list_broadside":"index_module_history_list_broadside__9cd6a734"};
2335
+ var modules_63b47c51 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__1d39865c","ChatWindow_Modal":"index_module_ChatWindow_Modal__1d39865c","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__1d39865c","header_wrap":"index_module_header_wrap__1d39865c","top":"index_module_top__1d39865c","user":"index_module_user__1d39865c","count":"index_module_count__1d39865c","operate":"index_module_operate__1d39865c","line":"index_module_line__1d39865c","header_wrap_newlabo":"index_module_header_wrap_newlabo__1d39865c","Drawer_main":"index_module_Drawer_main__1d39865c","loading":"index_module_loading__1d39865c","message_con":"index_module_message_con__1d39865c","left":"index_module_left__1d39865c","head_sculpture":"index_module_head_sculpture__1d39865c","main_content":"index_module_main_content__1d39865c","right":"index_module_right__1d39865c","main":"index_module_main__1d39865c","main_content_flag":"index_module_main_content_flag__1d39865c","operate_modal":"index_module_operate_modal__1d39865c","content":"index_module_content__1d39865c","content_child":"index_module_content_child__1d39865c","active":"index_module_active__1d39865c","ask_question":"index_module_ask_question__1d39865c","operate_modal_bottom":"index_module_operate_modal_bottom__1d39865c","stop_generate":"index_module_stop_generate__1d39865c","icon":"index_module_icon__1d39865c","find_teacher":"index_module_find_teacher__1d39865c","stop_findTeacher":"index_module_stop_findTeacher__1d39865c","association_problem":"index_module_association_problem__1d39865c","time":"index_module_time__1d39865c","citation_content":"index_module_citation_content__1d39865c","text_exceed":"index_module_text_exceed__1d39865c","popover_content":"index_module_popover_content__1d39865c","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__1d39865c","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__1d39865c","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__1d39865c","issues_list_teacherList":"index_module_issues_list_teacherList__1d39865c","item":"index_module_item__1d39865c","issues_list":"index_module_issues_list__1d39865c","sign":"index_module_sign__1d39865c","Drawer_buttom":"index_module_Drawer_buttom__1d39865c","input_wrap":"index_module_input_wrap__1d39865c","input":"index_module_input__1d39865c","no_AI":"index_module_no_AI__1d39865c","voice":"index_module_voice__1d39865c","voice_btn":"index_module_voice_btn__1d39865c","disabled":"index_module_disabled__1d39865c","content_main":"index_module_content_main__1d39865c","content_con":"index_module_content_con__1d39865c","delete_quote":"index_module_delete_quote__1d39865c","sending":"index_module_sending__1d39865c","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__1d39865c","main_list":"index_module_main_list__1d39865c","chat_content":"index_module_chat_content__1d39865c","popover_main_content":"index_module_popover_main_content__1d39865c","popover_main_content_name":"index_module_popover_main_content_name__1d39865c","teacher_layout":"index_module_teacher_layout__1d39865c","bottom":"index_module_bottom__1d39865c","delete":"index_module_delete__1d39865c","num":"index_module_num__1d39865c","shrink":"index_module_shrink__1d39865c","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__1d39865c","teacher_layout_modal":"index_module_teacher_layout_modal__1d39865c","ai":"index_module_ai__1d39865c","user_info":"index_module_user_info__1d39865c","message":"index_module_message__1d39865c","con":"index_module_con__1d39865c","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__1d39865c","history_list":"index_module_history_list__1d39865c","search_layout":"index_module_search_layout__1d39865c","mymove":"index_module_mymove__1d39865c","title":"index_module_title__1d39865c","search_top":"index_module_search_top__1d39865c","list_item":"index_module_list_item__1d39865c","list_summary":"index_module_list_summary__1d39865c","head_img":"index_module_head_img__1d39865c","list_desc":"index_module_list_desc__1d39865c","name":"index_module_name__1d39865c","decs":"index_module_decs__1d39865c","open":"index_module_open__1d39865c","list_detail":"index_module_list_detail__1d39865c","list":"index_module_list__1d39865c","list_more":"index_module_list_more__1d39865c","no_data":"index_module_no_data__1d39865c","history_list_broadside":"index_module_history_list_broadside__1d39865c"};
2336
2336
 
2337
2337
  //消息已读
2338
2338
  var readMessage = function(roomId, urllocation, userData, http) {
@@ -3334,7 +3334,6 @@ var CustomerService = function(props) {
3334
3334
  var scrollHeight = container.scrollHeight;
3335
3335
  // console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
3336
3336
  if (clientHeight + scrollTop + 0.5 >= scrollHeight && pageNumHistory > 1) {
3337
- console.log("到底部了22222");
3338
3337
  // if (pageNumHistory > 1) {
3339
3338
  // console.log(pageNumHistory,'pageNumpageNumpageNum')
3340
3339
  var number = pageNumHistory - 1;
@@ -3344,26 +3343,22 @@ var CustomerService = function(props) {
3344
3343
  if (number > 0) {
3345
3344
  setBottomLoading(true);
3346
3345
  getHistoryMessage(number, 4);
3346
+ setLastId("");
3347
3347
  } else {
3348
3348
  setPageNumHistory(0);
3349
3349
  }
3350
- }, 100);
3350
+ }, 1000);
3351
3351
  // } else {
3352
- // setLastId("");
3353
3352
  // }
3354
3353
  }
3355
3354
  if (scrollTop == 0 && pageCount > pageNum && pageCount > 0) {
3356
3355
  console.log("到顶了", pageNum);
3357
- // if(pageNum == 1){
3358
- // setFirstpage(true);//代表是否存在第一页
3359
- // }
3360
3356
  setLoading(true);
3361
3357
  var number1 = pageNum + 1;
3362
3358
  setPageNum(function(pageNum) {
3363
3359
  return pageNum + 1;
3364
3360
  });
3365
3361
  listTimer.current = setTimeout(function() {
3366
- console.log("下拉加载下一页", number1);
3367
3362
  getHistoryMessage(number1, 2);
3368
3363
  }, 1000);
3369
3364
  }
@@ -4043,9 +4038,9 @@ var CustomerService = function(props) {
4043
4038
  return newHistoryMessageList2;
4044
4039
  }
4045
4040
  });
4046
- // setTimeout(() => {
4047
- scrollToBottom();
4048
- // }, 10);
4041
+ setTimeout(function() {
4042
+ scrollToBottom();
4043
+ }, 10);
4049
4044
  };
4050
4045
  //问题记录到实验报告中
4051
4046
  var testLabQuestion = function(title, content, teachId) {
@@ -4245,6 +4240,7 @@ var CustomerService = function(props) {
4245
4240
  if (!lastId && originList != newList) {
4246
4241
  setTimeout(function() {
4247
4242
  scrollToBottom();
4243
+ readMessage(roomId, urllocation, userData, http);
4248
4244
  }, 100);
4249
4245
  }
4250
4246
  }
@@ -5382,7 +5378,7 @@ var CustomerService = function(props) {
5382
5378
  var placeholder = "";
5383
5379
  var disabled = false;
5384
5380
  if (voiceRecordingStatus == 2) {
5385
- placeholder = "语音录制中,请说话...";
5381
+ placeholder = "正在录制语音,再次点击麦克风结束录制。";
5386
5382
  } else if (voiceRecordingStatus == 1) {
5387
5383
  placeholder = "正在语音识别文字,请稍后...";
5388
5384
  } else if (!finished) {