bhd-components 0.7.23 → 0.7.25

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, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './1188cc4c.esm.es5.development.js';
2
- export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './1188cc4c.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, X, y as I, H, A as Remarkable, D as Drawer, B as HighlightJS, Z as ZoomInOutlined, F as _to_consumable_array } from './ddd8b36f.esm.es5.development.js';
2
+ export { G as Affix, J as Alert, K as Anchor, aF as App, N as AutoComplete, O as Avatar, U as BackTop, V as Badge, W as Breadcrumb, Y as Button, $ as Calendar, a0 as Card, a1 as Carousel, a2 as Cascader, a3 as Checkbox, a4 as Col, a5 as Collapse, a6 as DatePicker, a7 as Descriptions, a8 as Divider, D as Drawer, a9 as Dropdown, aa as Empty, Q as FloatButton, ab as Form, ac as Grid, ad as Image, v as Input, ae as InputNumber, af as Layout, ag as List, ah as Mentions, ai as Menu, M as Modal, ak as Popconfirm, al as Popover, am as Progress, aM as QRCode, an as Radio, ao as Rate, ap as Result, aq as Row, ar as Segmented, g as Select, as as Skeleton, at as Slider, au as Space, av as Spin, aw as Statistic, ax as Steps, ay as Switch, az as Tabs, aA as Tag, aC as TimePicker, aD as Timeline, T as Tooltip, aE as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, aj as notification, aB as theme, aN as version, z as zh_CN } from './ddd8b36f.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';
@@ -3379,9 +3379,7 @@ var TeacherList = function(props) {
3379
3379
  }
3380
3380
  http.get("".concat(urllocation, "/chat-service/public/v1.0/teachers"), {
3381
3381
  params: {
3382
- name: val,
3383
- page: page.current,
3384
- maxPageSize: 99
3382
+ name: val
3385
3383
  }
3386
3384
  }).then(function(res) {
3387
3385
  console.log(res);
@@ -3861,7 +3859,17 @@ var CustomerService = function(props) {
3861
3859
  useEffect(function() {
3862
3860
  //老师的聊天窗口不发送打招呼信息
3863
3861
  var roomList = contactsList;
3864
- // console.log(roomList,'dkfvdfkjvndfkjvdfv')
3862
+ //发送打招呼信息
3863
+ if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
3864
+ sendGreetingMessage(1);
3865
+ scrollToBottom();
3866
+ }
3867
+ }, [
3868
+ greetingMessage
3869
+ ]);
3870
+ //默认有消息时,展示聊天窗口
3871
+ useEffect(function() {
3872
+ var roomList = contactsList;
3865
3873
  var count = 0;
3866
3874
  roomList.map(function(item) {
3867
3875
  count += item.unreadCount;
@@ -3869,14 +3877,9 @@ var CustomerService = function(props) {
3869
3877
  if (count > 0) {
3870
3878
  setShowContacts(true);
3871
3879
  }
3872
- //发送打招呼信息
3873
- if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
3874
- sendGreetingMessage(1);
3875
- scrollToBottom();
3876
- }
3877
3880
  }, [
3878
- greetingMessage
3879
- ]); //hotQuestionsList
3881
+ contactsList
3882
+ ]);
3880
3883
  //查找需要复制的代码
3881
3884
  var findCopyContent = function(e) {
3882
3885
  var source = findParent(e.target, styles.copyCode);
@@ -6203,6 +6206,9 @@ var CustomerService = function(props) {
6203
6206
  //发送截图信息
6204
6207
  var sendScreenshotData = function(message) {
6205
6208
  if (contactsList.length > 0 && contactsList[0].roomId == roomId) {
6209
+ setKeyWord("");
6210
+ setCitationContent({});
6211
+ setBottomRecommendationQuestions([]);
6206
6212
  setHistoryMessageList(function(historyMessageList) {
6207
6213
  var newHistoryMessageList = historyMessageList.concat({
6208
6214
  id: "p" + new Date().getTime(),