bhd-components 0.5.6 → 0.5.7

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.
Files changed (115) hide show
  1. package/dist/1bddec89.esm.es5.production.js +72 -0
  2. package/dist/535fc6c5.esm.es5.development.js +95493 -0
  3. package/dist/CustomerService.esm.es5.development.css +2827 -0
  4. package/dist/CustomerService.esm.es5.development.js +3823 -0
  5. package/dist/CustomerService.esm.es5.production.css +1 -0
  6. package/dist/CustomerService.esm.es5.production.js +1 -0
  7. package/dist/vendor.esm.es5.development.esm.es5.development.css +117 -0
  8. package/dist/vendor.esm.es5.production.esm.es5.production.css +9 -0
  9. package/es2017/customerService/contactsList/index.d.ts +13 -0
  10. package/es2017/customerService/contactsList/index.js +313 -0
  11. package/es2017/customerService/contactsList/index.module.less +187 -0
  12. package/es2017/customerService/function.d.ts +17 -0
  13. package/es2017/customerService/function.js +67 -0
  14. package/es2017/customerService/historyFun/index.d.ts +13 -0
  15. package/es2017/customerService/historyFun/index.js +241 -0
  16. package/es2017/customerService/historyFun/index.module.less +189 -0
  17. package/es2017/customerService/images/knowledge_icon.png +0 -0
  18. package/es2017/customerService/images/voice_btn.gif +0 -0
  19. package/es2017/customerService/index.d.ts +16 -0
  20. package/es2017/customerService/index.js +2493 -0
  21. package/es2017/customerService/index.module.less +727 -0
  22. package/es2017/customerService/useMediaRecorder.d.ts +9 -0
  23. package/es2017/customerService/useMediaRecorder.js +78 -0
  24. package/es2017/customerService/voice_btn.gif +0 -0
  25. package/es2017/icons/components/custom-ai_icon.d.ts +4 -0
  26. package/es2017/icons/components/custom-ai_icon.js +58 -0
  27. package/es2017/icons/components/custom-contacts.d.ts +4 -0
  28. package/es2017/icons/components/custom-contacts.js +29 -0
  29. package/es2017/icons/components/custom-copy.d.ts +4 -0
  30. package/es2017/icons/components/custom-copy.js +36 -0
  31. package/es2017/icons/components/custom-dislike.d.ts +4 -0
  32. package/es2017/icons/components/custom-dislike.js +22 -0
  33. package/es2017/icons/components/custom-duihao.d.ts +4 -0
  34. package/es2017/icons/components/custom-duihao.js +22 -0
  35. package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -0
  36. package/es2017/icons/components/custom-exit_full_screen.js +26 -0
  37. package/es2017/icons/components/custom-full_screen.d.ts +4 -0
  38. package/es2017/icons/components/custom-full_screen.js +22 -0
  39. package/es2017/icons/components/custom-like.d.ts +4 -0
  40. package/es2017/icons/components/custom-like.js +22 -0
  41. package/es2017/icons/components/custom-quote.d.ts +4 -0
  42. package/es2017/icons/components/custom-quote.js +31 -0
  43. package/es2017/icons/components/custom-record.d.ts +4 -0
  44. package/es2017/icons/components/custom-record.js +37 -0
  45. package/es2017/icons/components/custom-reloading.d.ts +4 -0
  46. package/es2017/icons/components/custom-reloading.js +26 -0
  47. package/es2017/icons/components/custom-retract.d.ts +4 -0
  48. package/es2017/icons/components/custom-retract.js +27 -0
  49. package/es2017/icons/components/custom-round_close.d.ts +4 -0
  50. package/es2017/icons/components/custom-round_close.js +24 -0
  51. package/es2017/icons/components/custom-sending.d.ts +4 -0
  52. package/es2017/icons/components/custom-sending.js +22 -0
  53. package/es2017/icons/components/custom-sound_recording.d.ts +4 -0
  54. package/es2017/icons/components/custom-sound_recording.js +22 -0
  55. package/es2017/icons/components/index.d.ts +15 -0
  56. package/es2017/icons/components/index.js +15 -0
  57. package/es2017/index.d.ts +1 -0
  58. package/es2017/index.js +1 -0
  59. package/esm/customerService/contactsList/index.d.ts +13 -0
  60. package/esm/customerService/contactsList/index.js +326 -0
  61. package/esm/customerService/contactsList/index.module.less +187 -0
  62. package/esm/customerService/function.d.ts +17 -0
  63. package/esm/customerService/function.js +69 -0
  64. package/esm/customerService/historyFun/index.d.ts +13 -0
  65. package/esm/customerService/historyFun/index.js +256 -0
  66. package/esm/customerService/historyFun/index.module.less +189 -0
  67. package/esm/customerService/images/knowledge_icon.png +0 -0
  68. package/esm/customerService/images/voice_btn.gif +0 -0
  69. package/esm/customerService/index.d.ts +16 -0
  70. package/esm/customerService/index.js +2576 -0
  71. package/esm/customerService/index.module.less +727 -0
  72. package/esm/customerService/useMediaRecorder.d.ts +9 -0
  73. package/esm/customerService/useMediaRecorder.js +121 -0
  74. package/esm/customerService/voice_btn.gif +0 -0
  75. package/esm/icons/components/custom-ai_icon.d.ts +4 -0
  76. package/esm/icons/components/custom-ai_icon.js +60 -0
  77. package/esm/icons/components/custom-contacts.d.ts +4 -0
  78. package/esm/icons/components/custom-contacts.js +31 -0
  79. package/esm/icons/components/custom-copy.d.ts +4 -0
  80. package/esm/icons/components/custom-copy.js +38 -0
  81. package/esm/icons/components/custom-dislike.d.ts +4 -0
  82. package/esm/icons/components/custom-dislike.js +24 -0
  83. package/esm/icons/components/custom-duihao.d.ts +4 -0
  84. package/esm/icons/components/custom-duihao.js +24 -0
  85. package/esm/icons/components/custom-exit_full_screen.d.ts +4 -0
  86. package/esm/icons/components/custom-exit_full_screen.js +28 -0
  87. package/esm/icons/components/custom-full_screen.d.ts +4 -0
  88. package/esm/icons/components/custom-full_screen.js +24 -0
  89. package/esm/icons/components/custom-like.d.ts +4 -0
  90. package/esm/icons/components/custom-like.js +24 -0
  91. package/esm/icons/components/custom-quote.d.ts +4 -0
  92. package/esm/icons/components/custom-quote.js +33 -0
  93. package/esm/icons/components/custom-record.d.ts +4 -0
  94. package/esm/icons/components/custom-record.js +39 -0
  95. package/esm/icons/components/custom-reloading.d.ts +4 -0
  96. package/esm/icons/components/custom-reloading.js +28 -0
  97. package/esm/icons/components/custom-retract.d.ts +4 -0
  98. package/esm/icons/components/custom-retract.js +29 -0
  99. package/esm/icons/components/custom-round_close.d.ts +4 -0
  100. package/esm/icons/components/custom-round_close.js +26 -0
  101. package/esm/icons/components/custom-sending.d.ts +4 -0
  102. package/esm/icons/components/custom-sending.js +24 -0
  103. package/esm/icons/components/custom-sound_recording.d.ts +4 -0
  104. package/esm/icons/components/custom-sound_recording.js +24 -0
  105. package/esm/icons/components/index.d.ts +15 -0
  106. package/esm/icons/components/index.js +15 -0
  107. package/esm/index.d.ts +1 -0
  108. package/esm/index.js +1 -0
  109. package/package.json +10 -2
  110. package/dist/1951bd5c.esm.es5.development.js +0 -45417
  111. package/dist/28cd83d3.esm.es5.production.js +0 -256
  112. package/dist/table.esm.es5.development.css +0 -772
  113. package/dist/table.esm.es5.development.js +0 -289
  114. package/dist/table.esm.es5.production.css +0 -1
  115. package/dist/table.esm.es5.production.js +0 -1
@@ -0,0 +1,69 @@
1
+ //消息已读
2
+ var readMessage = function(roomId, urllocation, userData, http) {
3
+ http.patch("".concat(urllocation, "/chat-service/public/v1.0/history-messages:read"), {
4
+ roomId: roomId
5
+ }, {
6
+ headers: {
7
+ "x-module-id": userData.modules.find(function(ele) {
8
+ return ele.short == "IntelligentCustomerService";
9
+ }).id,
10
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
11
+ }
12
+ });
13
+ };
14
+ var getByteLen = function(val) {
15
+ var len = 0;
16
+ for(var i = 0; i < val.length; i++){
17
+ var a = val.charAt(i);
18
+ if (a.match(/[^\x00-\xff]/gi) != null) {
19
+ //\x00-\xff→GBK双字节编码范围
20
+ len += 2;
21
+ } else {
22
+ len += 1;
23
+ }
24
+ }
25
+ return len;
26
+ };
27
+ //当前服务url
28
+ var serverUrl = function() {
29
+ var hashName = "";
30
+ window.location.hash.replace(/#\/(.[^/?]+)([?/].)*/, function($1, $2) {
31
+ hashName = $2;
32
+ });
33
+ return hashName;
34
+ };
35
+ //复制内容
36
+ var copyText = function(text) {
37
+ // text是复制文本
38
+ // 创建input元素
39
+ var el = document.createElement("input");
40
+ // 给input元素赋值需要复制的文本
41
+ el.setAttribute("value", text);
42
+ // 将input元素插入页面
43
+ document.body.appendChild(el);
44
+ // 选中input元素的文本
45
+ el.select();
46
+ // 复制内容到剪贴板
47
+ document.execCommand("copy");
48
+ // 删除input元素
49
+ document.body.removeChild(el);
50
+ return true;
51
+ };
52
+ //获取当前时间
53
+ var getDataTime = function(time) {
54
+ var currentDate;
55
+ if (time != undefined && time != -1) {
56
+ currentDate = new Date(time);
57
+ } else {
58
+ currentDate = new Date();
59
+ }
60
+ var currentYear = currentDate.getFullYear();
61
+ var currentMonth = currentDate.getMonth() + 1; // 月份从0开始,所以要加1
62
+ var currentDay = currentDate.getDate();
63
+ var hour = currentDate.getHours();
64
+ var minute = currentDate.getMinutes();
65
+ var second = currentDate.getSeconds();
66
+ var dataTime = currentYear + "-" + currentMonth + "-" + currentDay + " " + hour + ":" + minute + ":" + second;
67
+ return dataTime;
68
+ };
69
+ export { readMessage, getByteLen, serverUrl, copyText, getDataTime };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface data {
3
+ type: number;
4
+ roomId: String | number;
5
+ userData: any;
6
+ http: any;
7
+ urllocation: String;
8
+ onClose: any;
9
+ loadSpecifiedData: any;
10
+ roomList: [];
11
+ }
12
+ declare const HistoryFun: (props: data) => JSX.Element;
13
+ export default HistoryFun;
@@ -0,0 +1,256 @@
1
+ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
3
+ import React, { useState, useRef } from "react";
4
+ import styles from "./index.module.less";
5
+ import { Input } from "antd";
6
+ import { CustomClose } from "../../icons/index";
7
+ import { SearchOutlined } from "@ant-design/icons";
8
+ import { getDataTime } from "../function"; //录音使用文件
9
+ var HistoryFun = function(props) {
10
+ var type = props.type, roomId = props.roomId, userData = props.userData, http = props.http, urllocation = props.urllocation, onClose = props.onClose, loadSpecifiedData = props.loadSpecifiedData, roomList = props.roomList;
11
+ var _useState = _sliced_to_array(useState(""), 2), keyWordProblem = _useState[0], setKeyWordProblem = _useState[1]; //搜索内容
12
+ var _useState1 = _sliced_to_array(useState([]), 2), keyHistoryMessageList = _useState1[0], setKeyHistoryMessageList = _useState1[1]; //搜索的历史记录
13
+ var _useState2 = _sliced_to_array(useState([]), 2), userNameObj = _useState2[0], setUserNameObj = _useState2[1]; //根据用户id,存储一些用户名
14
+ var timer = useRef(null); //文本框输入时
15
+ //获取搜索中的历史消息记录
16
+ var getKeyHistoryMessage = function(keyWordProblem) {
17
+ if (roomId == "") return;
18
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
19
+ params: {
20
+ roomId: "",
21
+ message: keyWordProblem,
22
+ page: 1,
23
+ maxPageSize: 300,
24
+ direction: "desc"
25
+ },
26
+ headers: {
27
+ "x-module-id": userData.modules.find(function(ele) {
28
+ return ele.short == "IntelligentCustomerService";
29
+ }).id,
30
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
31
+ }
32
+ }).then(function(res) {
33
+ console.log(res.data, 3434378);
34
+ if (res.data.messages.length > 0) {
35
+ var dataList = res.data.messages;
36
+ setKeyHistoryMessageList(dataList);
37
+ getUserName(dataList);
38
+ }
39
+ }).catch(function(res) {});
40
+ };
41
+ //获取全部数据
42
+ var allData = function(roomId) {
43
+ if (roomId == "") return;
44
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/history-messages"), {
45
+ params: {
46
+ roomId: roomId,
47
+ page: 1,
48
+ maxPageSize: 9999999
49
+ },
50
+ headers: {
51
+ "x-module-id": userData.modules.find(function(ele) {
52
+ return ele.short == "IntelligentCustomerService";
53
+ }).id,
54
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
55
+ }
56
+ });
57
+ };
58
+ var findPageNumber = function(perPage, totalPages, targetPosition) {
59
+ var pageNumber = Math.ceil(targetPosition / perPage);
60
+ if (pageNumber > totalPages) {
61
+ return -1; // 数据不存在于给定的页数范围内
62
+ }
63
+ return pageNumber;
64
+ };
65
+ //根据index,计算历史数据在第几页
66
+ var calculationData = function(roomId, index, id) {
67
+ allData(roomId).then(function(res) {
68
+ // console.log(res.data.messages,'11111111')
69
+ if (res.data) {
70
+ var total = res.data.total;
71
+ var dataList = res.data.messages.reverse();
72
+ // console.log(dataList,'sldkcmsdklc');
73
+ var number;
74
+ dataList.map(function(item, index) {
75
+ if (item.id == id) {
76
+ number = index;
77
+ }
78
+ });
79
+ var pageNumber = findPageNumber(30, Math.ceil(total / 30), number);
80
+ console.log(number, pageNumber, "第几页第几页第几页第几页第几页第几页");
81
+ loadSpecifiedData(roomId, pageNumber, id);
82
+ onClose();
83
+ setKeyWordProblem("");
84
+ setKeyHistoryMessageList([]);
85
+ }
86
+ });
87
+ };
88
+ var getUserName = function(dataList) {
89
+ try {
90
+ dataList.map(function(item) {
91
+ var id = item.sender;
92
+ //判断 不是当前登录用户
93
+ if (id != userData.mid) {
94
+ var roomListName = roomList.filter(function(item) {
95
+ return item.sender == id;
96
+ });
97
+ console.log(roomListName, 1111111);
98
+ //判断如果是当前聊天列表中的用户
99
+ if (roomListName.length > 0 && !roomListName[0].name) {
100
+ console.log(roomListName[0], "2222222222");
101
+ setUserNameObj(function(userNameObj) {
102
+ var list = userNameObj;
103
+ return list.concat({
104
+ id: id,
105
+ name: roomListName[0].name
106
+ });
107
+ });
108
+ } else {
109
+ //判断是否需要重新请求数据
110
+ var getData = false;
111
+ setUserNameObj(function(userNameObj) {
112
+ console.log(userNameObj, "userNameObjuserNameObj");
113
+ if (userNameObj.filter(function(e) {
114
+ return e.id == id;
115
+ }).length == 0) {
116
+ console.log("没有相同的id");
117
+ getData = true;
118
+ }
119
+ return userNameObj;
120
+ });
121
+ if (getData) {
122
+ if (id == "AI") {
123
+ id == item.recevier;
124
+ }
125
+ userName(id).then(function(res) {
126
+ if (res.data) {
127
+ setUserNameObj(function(userNameObj) {
128
+ var list = userNameObj;
129
+ return list.concat({
130
+ name: res.data.name,
131
+ id: id
132
+ });
133
+ });
134
+ console.log(7777777, res.data.name);
135
+ }
136
+ });
137
+ }
138
+ }
139
+ }
140
+ });
141
+ } catch (error) {}
142
+ };
143
+ var userName = function(uid) {
144
+ return http.get("".concat(urllocation, "/chat-service/public/v1.0/userinfo"), {
145
+ params: {
146
+ uid: uid
147
+ },
148
+ headers: {
149
+ "x-module-id": userData.modules.find(function(ele) {
150
+ return ele.short == "TeacherAnswer";
151
+ }).id,
152
+ "x-auth-jwt": window.localStorage.getItem("usertoken") || ""
153
+ }
154
+ });
155
+ };
156
+ return /*#__PURE__*/ _jsx("div", {
157
+ className: "".concat(styles.history_list, " ").concat(type == 2 ? styles.history_list_broadside : "", " "),
158
+ children: /*#__PURE__*/ _jsxs("div", {
159
+ className: styles.search_layout,
160
+ children: [
161
+ /*#__PURE__*/ _jsxs("div", {
162
+ className: styles.title,
163
+ children: [
164
+ /*#__PURE__*/ _jsx("span", {
165
+ children: "历史记录"
166
+ }),
167
+ /*#__PURE__*/ _jsx("span", {
168
+ onClick: function() {
169
+ onClose();
170
+ },
171
+ children: /*#__PURE__*/ _jsx(CustomClose, {})
172
+ })
173
+ ]
174
+ }),
175
+ /*#__PURE__*/ _jsxs("div", {
176
+ className: styles.search_top,
177
+ children: [
178
+ /*#__PURE__*/ _jsx(SearchOutlined, {}),
179
+ /*#__PURE__*/ _jsx(Input, {
180
+ placeholder: "请输入您要搜索的内容",
181
+ value: keyWordProblem,
182
+ onChange: function(e) {
183
+ var val = String(e.target.value);
184
+ setKeyWordProblem(val);
185
+ clearTimeout(timer.current);
186
+ timer.current = setTimeout(function() {
187
+ if (val != "") {
188
+ getKeyHistoryMessage(val);
189
+ }
190
+ }, 1000);
191
+ }
192
+ }),
193
+ /*#__PURE__*/ _jsx("i", {
194
+ className: "guanbi_Close",
195
+ onClick: function() {
196
+ setKeyWordProblem("");
197
+ setKeyHistoryMessageList([]);
198
+ },
199
+ children: /*#__PURE__*/ _jsx(CustomClose, {})
200
+ })
201
+ ]
202
+ }),
203
+ /*#__PURE__*/ _jsx("div", {
204
+ className: styles.main_list,
205
+ children: keyHistoryMessageList.map(function(item, index) {
206
+ var span = item.message.replaceAll(keyWordProblem, function() {
207
+ return "<span class=".concat(styles.sign, ">").concat(keyWordProblem, "</span>");
208
+ });
209
+ {
210
+ console.log(userNameObj), 9999999;
211
+ }
212
+ var name = "";
213
+ if (item.sender == userData.mid) {
214
+ name = userData.real_name;
215
+ } else if (item.sender == "AI") {
216
+ name = userNameObj.filter(function(e) {
217
+ return e.id == item.recevier;
218
+ })[0].name;
219
+ } else {
220
+ name = userNameObj.filter(function(e) {
221
+ return e.id == item.sender;
222
+ })[0].name;
223
+ }
224
+ return /*#__PURE__*/ _jsxs("div", {
225
+ className: styles.list,
226
+ onClick: function() {
227
+ calculationData(item.roomId, item.messageIdWithinRoom, item.id);
228
+ },
229
+ children: [
230
+ /*#__PURE__*/ _jsxs("div", {
231
+ className: styles.name,
232
+ children: [
233
+ /*#__PURE__*/ _jsx("p", {
234
+ children: name
235
+ }),
236
+ /*#__PURE__*/ _jsx("span", {
237
+ className: styles.time,
238
+ children: getDataTime(item.updatedAt)
239
+ })
240
+ ]
241
+ }),
242
+ /*#__PURE__*/ _jsx("div", {
243
+ className: styles.con,
244
+ dangerouslySetInnerHTML: {
245
+ __html: span
246
+ }
247
+ })
248
+ ]
249
+ }, item.id);
250
+ })
251
+ })
252
+ ]
253
+ })
254
+ });
255
+ };
256
+ export default HistoryFun;
@@ -0,0 +1,189 @@
1
+ @import "../../theme/variable.less";
2
+ //历史记录11
3
+ .history_list {
4
+ position: absolute;
5
+ top: 0;
6
+ background: rgba(0, 0, 0, 0.3);
7
+ width: 100%;
8
+ height: 100%;
9
+ overflow: hidden;
10
+ .search_layout {
11
+ background: #fff;
12
+ position: absolute;
13
+ bottom: -500px;
14
+ width: 100%;
15
+ border-radius: 16px 16px 0px 0px;
16
+ overflow: hidden;
17
+ animation: mymove 1s forwards;
18
+
19
+ .title {
20
+ border-bottom: 1px solid @color-border-Tr;
21
+ font-size: 16px;
22
+ font-weight: 600;
23
+ line-height: 150%;
24
+ padding: 16px;
25
+ display: flex;
26
+ justify-content: space-between;
27
+ svg {
28
+ font-size: 12px;
29
+ cursor: pointer;
30
+ opacity: 0.65;
31
+ font-weight: 300;
32
+ }
33
+ }
34
+ .search_top {
35
+ position: relative;
36
+ margin: 16px 24px;
37
+ // margin-bottom: 0;
38
+ // display: flex;
39
+ // align-items: center;
40
+ // justify-content: space-between;
41
+ background-color: #fff;
42
+
43
+ input {
44
+ width: 100%;
45
+ height: 40px;
46
+ line-height: 40px;
47
+ border-radius: 2px;
48
+ border: 1px solid @color-border-secondary;
49
+ padding-left: 46px;
50
+ padding-right: 30px;
51
+ color: @color-text-Tr;
52
+ }
53
+ :global {
54
+ .anticon {
55
+ position: absolute;
56
+ top: 11px;
57
+ z-index: 1;
58
+ left: 14px;
59
+ font-size: 16px;
60
+ color: rgba(0, 0, 0, 0.65);
61
+ }
62
+ .guanbi_Close {
63
+ position: absolute;
64
+ top: 2px;
65
+ right: 38px;
66
+ font-size: 16px;
67
+ z-index: 1;
68
+ color: rgba(0, 0, 0, 0.65);
69
+ cursor: pointer;
70
+ svg {
71
+ font-size: 12px;
72
+ opacity: 0.65;
73
+ }
74
+ }
75
+ }
76
+ svg {
77
+ opacity: 0.65;
78
+ font-weight: 300;
79
+ }
80
+ }
81
+ .main_list:first-child {
82
+ margin-top: 0;
83
+ }
84
+ .main_list {
85
+ overflow: auto;
86
+ height: 510px;
87
+ &::-webkit-scrollbar {
88
+ background-color: #eaedf1;
89
+ background-color: transparent;
90
+ width: 4px;
91
+ height: 4px;
92
+ }
93
+ &::-webkit-scrollbar-thumb {
94
+ border-radius: 4px;
95
+ background-color: rgba(0, 0, 0, 0.25);
96
+ }
97
+ .list {
98
+ margin: 8px 24px;
99
+ padding: 8px;
100
+ // border-bottom: 1px solid @color-border-secondary;
101
+ margin-bottom: 17px;
102
+ position: relative;
103
+ cursor: pointer;
104
+ &:hover {
105
+ background-color: rgba(0, 0, 0, 0.04);
106
+ border-radius: 8px;
107
+ }
108
+ &::before {
109
+ content: "";
110
+ display: inline-block;
111
+ width: 100%;
112
+ height: 1px;
113
+ background-color: @color-border-secondary;
114
+ position: absolute;
115
+ bottom: -9px;
116
+ left: -1px;
117
+ }
118
+ .name {
119
+ display: flex;
120
+ justify-content: space-between;
121
+ align-items: center;
122
+ margin-bottom: 9px;
123
+ p {
124
+ color: @color-text-Tr;
125
+ font-size: 16px;
126
+ font-weight: 600;
127
+ line-height: 1.5;
128
+ }
129
+ .time {
130
+ font-size: 14px;
131
+ color: @color-text-tertiary;
132
+ }
133
+ }
134
+ .con {
135
+ color: @color-text-Tr;
136
+ font-size: 14px;
137
+ font-weight: 400;
138
+ line-height: 150%;
139
+ overflow: hidden;
140
+ white-space: nowrap;
141
+ text-overflow: ellipsis;
142
+ span {
143
+ color: @color-text-primary;
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ @keyframes mymove {
150
+ from {
151
+ bottom: -500px;
152
+ }
153
+ to {
154
+ bottom: 0;
155
+ }
156
+ }
157
+
158
+ @-webkit-keyframes mymove /*Safari and Chrome*/ {
159
+ from {
160
+ bottom: -500px;
161
+ }
162
+ to {
163
+ bottom: 0;
164
+ }
165
+ }
166
+
167
+ :global {
168
+ .anticon {
169
+ vertical-align: 0;
170
+ }
171
+ }
172
+ }
173
+ //全屏下的历史记录
174
+ .history_list_broadside {
175
+ width: 417px;
176
+ height: calc(100% - 50px);
177
+ right: 0;
178
+ top: 48px;
179
+ border-radius: 0px 8px 8px 0px;
180
+ background: transparent;
181
+ .search_layout {
182
+ height: 100%;
183
+ border-radius: 0;
184
+ .main_list {
185
+ height: calc(100% - 140px);
186
+ max-height: calc(100% - 140px);
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import "highlight.js/styles/default.css";
3
+ interface Service {
4
+ userData: any;
5
+ http?: any;
6
+ urllocation?: string;
7
+ onCancel?: () => {};
8
+ serverName?: string;
9
+ fetchEventSource?: any;
10
+ initShowType?: string | number;
11
+ stepIds: string;
12
+ stepId: string | number;
13
+ onEvent: (a: string, b: string, c: string) => {};
14
+ }
15
+ declare const CustomerService: (props: Service) => JSX.Element;
16
+ export default CustomerService;