@fle-ui/plus-im-record 0.0.8-beta.4 → 0.0.8-beta.6
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.
- package/es/GoodsCard/index.d.ts +1 -0
- package/es/GoodsCard/index.js +30 -0
- package/es/GoodsCard/index.less +30 -1
- package/es/GoodsOrderCard/index.less +2 -0
- package/es/ParseSession/index.js +40 -0
- package/es/ParseSession/index.less +69 -0
- package/es/common/const/index.d.ts +3 -0
- package/es/common/const/index.js +6 -0
- package/lib/GoodsCard/index.d.ts +1 -0
- package/lib/GoodsCard/index.js +29 -0
- package/lib/GoodsCard/index.less +30 -1
- package/lib/GoodsOrderCard/index.less +2 -0
- package/lib/ParseSession/index.js +40 -0
- package/lib/ParseSession/index.less +69 -0
- package/lib/common/const/index.d.ts +3 -0
- package/lib/common/const/index.js +6 -0
- package/package.json +2 -2
package/es/GoodsCard/index.d.ts
CHANGED
package/es/GoodsCard/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "antd/es/message/style";
|
|
2
|
+
import _message from "antd/es/message";
|
|
1
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -7,8 +9,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
7
9
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
8
10
|
import { cardTagMap, fallbackImg } from '../common/const';
|
|
9
11
|
import CardTag from '../CardTag';
|
|
12
|
+
import Icon from '../Icon';
|
|
10
13
|
import { ImContext } from '..';
|
|
11
14
|
import { fitUrl } from '../GoodsOrderCard';
|
|
15
|
+
import { copyText } from '../common/utils';
|
|
12
16
|
import './index.less';
|
|
13
17
|
var OrderCard = function OrderCard(props) {
|
|
14
18
|
var _props$prefix = props.prefix,
|
|
@@ -72,12 +76,38 @@ var OrderCard = function OrderCard(props) {
|
|
|
72
76
|
}
|
|
73
77
|
return '';
|
|
74
78
|
}, [data]);
|
|
79
|
+
console.log(1);
|
|
75
80
|
return /*#__PURE__*/React.createElement("div", {
|
|
76
81
|
className: "".concat(prefix, "-goods"),
|
|
77
82
|
onClick: function onClick() {
|
|
78
83
|
return onCardClick();
|
|
79
84
|
}
|
|
85
|
+
}, !!content.orderSn && /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
className: "".concat(prefix, "-goods-order"),
|
|
87
|
+
onClick: function onClick(e) {
|
|
88
|
+
e.stopPropagation();
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
}
|
|
80
91
|
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
className: "".concat(prefix, "-goods-order-prefix")
|
|
93
|
+
}, "\u8BA2\u5355\u7F16\u53F7:"), /*#__PURE__*/React.createElement("div", {
|
|
94
|
+
className: "".concat(prefix, "-goods-order-text")
|
|
95
|
+
}, content.orderSn), /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "".concat(prefix, "-goods-order-copy")
|
|
97
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
98
|
+
type: "icon-fuzhi",
|
|
99
|
+
style: {
|
|
100
|
+
marginLeft: 4
|
|
101
|
+
},
|
|
102
|
+
onClick: function onClick(e) {
|
|
103
|
+
var _content$orderSn;
|
|
104
|
+
e.stopPropagation();
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
copyText((_content$orderSn = content.orderSn) === null || _content$orderSn === void 0 ? void 0 : _content$orderSn.toString()).then(function () {
|
|
107
|
+
_message.success('复制成功');
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
81
111
|
className: "".concat(prefix, "-goods-info")
|
|
82
112
|
}, /*#__PURE__*/React.createElement("div", {
|
|
83
113
|
className: "".concat(prefix, "-goods-info-img"),
|
package/es/GoodsCard/index.less
CHANGED
|
@@ -4,13 +4,42 @@
|
|
|
4
4
|
max-width: 272px;
|
|
5
5
|
min-width: 200px;
|
|
6
6
|
padding-bottom: 2px;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
|
|
9
|
+
&-order {
|
|
10
|
+
margin: 0 12px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
padding-bottom: 8px;
|
|
13
|
+
padding-top: 8px;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-bottom: 1px solid #eee;
|
|
18
|
+
&-text {
|
|
19
|
+
flex: 1;
|
|
20
|
+
white-space: nowrap; // 添加此行
|
|
21
|
+
text-overflow: ellipsis; // 添加此行
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
&-copy {
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
color: #aaa;
|
|
27
|
+
transition: 0.3;
|
|
28
|
+
&:hover {
|
|
29
|
+
color: #2c6bffff;
|
|
30
|
+
}
|
|
31
|
+
&:active {
|
|
32
|
+
color: #2c6bffff;
|
|
33
|
+
transform: scale(1.1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
7
37
|
&-info {
|
|
8
38
|
display: flex;
|
|
9
39
|
flex-flow: row;
|
|
10
40
|
padding: 12px;
|
|
11
41
|
cursor: pointer;
|
|
12
42
|
border-radius: 4px;
|
|
13
|
-
background-color: #fff;
|
|
14
43
|
&-img {
|
|
15
44
|
flex-shrink: 0;
|
|
16
45
|
border-radius: 3px;
|
package/es/ParseSession/index.js
CHANGED
|
@@ -452,6 +452,40 @@ var ParseSession = function ParseSession(_ref) {
|
|
|
452
452
|
}
|
|
453
453
|
})), "\u7CFB\u7EDF\u8F6C\u53D1"));
|
|
454
454
|
};
|
|
455
|
+
var renderLiveSupport = function renderLiveSupport() {
|
|
456
|
+
var liveSupportAttach = attach;
|
|
457
|
+
console.log(liveSupportAttach, 'liveSupportAttach');
|
|
458
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
459
|
+
className: "".concat(prefix, "-live-support")
|
|
460
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
461
|
+
className: "".concat(prefix, "-live-support-title")
|
|
462
|
+
}, liveSupportAttach.content.title), /*#__PURE__*/React.createElement("div", {
|
|
463
|
+
className: "".concat(prefix, "-live-support-operate")
|
|
464
|
+
}, liveSupportAttach.content.liveSupportBtn));
|
|
465
|
+
};
|
|
466
|
+
var renderAfsFaq = function renderAfsFaq() {
|
|
467
|
+
var afsFaqAttach = attach;
|
|
468
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
469
|
+
className: "".concat(prefix, "-afs-faq")
|
|
470
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
471
|
+
className: "".concat(prefix, "-afs-faq-title")
|
|
472
|
+
}, afsFaqAttach.content.title), /*#__PURE__*/React.createElement("div", {
|
|
473
|
+
className: "".concat(prefix, "-afs-faq-list")
|
|
474
|
+
}, afsFaqAttach.content.qaList.map(function (item) {
|
|
475
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
476
|
+
className: "".concat(prefix, "-afs-faq-list-item"),
|
|
477
|
+
key: item.id
|
|
478
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
479
|
+
className: "title"
|
|
480
|
+
}, item.question));
|
|
481
|
+
})));
|
|
482
|
+
};
|
|
483
|
+
var renderFeedback = function renderFeedback() {
|
|
484
|
+
var feedbackAttach = attach;
|
|
485
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
486
|
+
className: "".concat(prefix, "-text")
|
|
487
|
+
}, feedbackAttach.content.title);
|
|
488
|
+
};
|
|
455
489
|
var renderOfflineSupport = function renderOfflineSupport() {
|
|
456
490
|
var _attach$content14, _attach$content15;
|
|
457
491
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -480,6 +514,12 @@ var ParseSession = function ParseSession(_ref) {
|
|
|
480
514
|
return renderFaq();
|
|
481
515
|
case imMsgTypes.faqLink:
|
|
482
516
|
return renderFaqLink();
|
|
517
|
+
case imMsgTypes.afsFaq:
|
|
518
|
+
return renderAfsFaq();
|
|
519
|
+
case imMsgTypes.feedback:
|
|
520
|
+
return renderFeedback();
|
|
521
|
+
case imMsgTypes.liveSupport:
|
|
522
|
+
return renderLiveSupport();
|
|
483
523
|
case imMsgTypes.formCustomer:
|
|
484
524
|
return renderFormCustomer();
|
|
485
525
|
case imMsgTypes.tip:
|
|
@@ -211,6 +211,75 @@
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
+
|
|
215
|
+
&-afs-faq {
|
|
216
|
+
padding: 16px;
|
|
217
|
+
width: 272px;
|
|
218
|
+
&-title {
|
|
219
|
+
font-size: 14px;
|
|
220
|
+
color: #333;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
}
|
|
223
|
+
&-list {
|
|
224
|
+
margin-top: 16px;
|
|
225
|
+
border-top: 1px solid #eee;
|
|
226
|
+
color: #2c6bff;
|
|
227
|
+
&-item {
|
|
228
|
+
cursor: default;
|
|
229
|
+
padding: 16px 0 0 0;
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
transition: color 0.3s, transform 0.3s;
|
|
233
|
+
// &:active {
|
|
234
|
+
// color: #1a4d99;
|
|
235
|
+
// transform: scale(1.05);
|
|
236
|
+
// }
|
|
237
|
+
&::before {
|
|
238
|
+
content: '';
|
|
239
|
+
display: inline-block;
|
|
240
|
+
width: 6px;
|
|
241
|
+
height: 6px;
|
|
242
|
+
border-radius: 50%;
|
|
243
|
+
background-color: #2c6bff;
|
|
244
|
+
margin-right: 8px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
&-feedback {
|
|
250
|
+
padding: 16px;
|
|
251
|
+
width: 272px;
|
|
252
|
+
}
|
|
253
|
+
&-live-support {
|
|
254
|
+
padding: 16px;
|
|
255
|
+
width: 272px;
|
|
256
|
+
&-title {
|
|
257
|
+
font-size: 14px;
|
|
258
|
+
color: #333;
|
|
259
|
+
font-weight: 400;
|
|
260
|
+
}
|
|
261
|
+
&-operate {
|
|
262
|
+
cursor: default;
|
|
263
|
+
font-size: 14px;
|
|
264
|
+
color: #2c6bff;
|
|
265
|
+
font-weight: 400;
|
|
266
|
+
margin-top: 16px;
|
|
267
|
+
transition: color 0.3s, transform 0.3s;
|
|
268
|
+
// &:active {
|
|
269
|
+
// color: #1a4d99;
|
|
270
|
+
// transform: scale(1.05);
|
|
271
|
+
// }
|
|
272
|
+
&::before {
|
|
273
|
+
content: '';
|
|
274
|
+
display: inline-block;
|
|
275
|
+
width: 6px;
|
|
276
|
+
height: 6px;
|
|
277
|
+
border-radius: 50%;
|
|
278
|
+
background-color: #2c6bff;
|
|
279
|
+
margin-right: 8px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
214
283
|
}
|
|
215
284
|
|
|
216
285
|
.fx-preview-toolbar-wrapper {
|
package/es/common/const/index.js
CHANGED
|
@@ -8,6 +8,12 @@ export var imMsgTypes = {
|
|
|
8
8
|
link: 'link',
|
|
9
9
|
file: 'file',
|
|
10
10
|
faq: 'faq',
|
|
11
|
+
// 机器人自动回复问题
|
|
12
|
+
afsFaq: 'afs-faq',
|
|
13
|
+
// 请用户给快速反馈
|
|
14
|
+
feedback: 'feedback',
|
|
15
|
+
// 询问是否需要转
|
|
16
|
+
liveSupport: 'live-support',
|
|
11
17
|
faqLink: 'faqLink',
|
|
12
18
|
formCustomer: 'formCustomer',
|
|
13
19
|
tip: 'tip',
|
package/lib/GoodsCard/index.d.ts
CHANGED
package/lib/GoodsCard/index.js
CHANGED
|
@@ -6,10 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _antd = require("antd");
|
|
9
10
|
var _const = require("../common/const");
|
|
10
11
|
var _CardTag = _interopRequireDefault(require("../CardTag"));
|
|
12
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
13
|
var _ = require("..");
|
|
12
14
|
var _GoodsOrderCard = require("../GoodsOrderCard");
|
|
15
|
+
var _utils = require("../common/utils");
|
|
13
16
|
require("./index.less");
|
|
14
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -82,12 +85,38 @@ var OrderCard = function OrderCard(props) {
|
|
|
82
85
|
}
|
|
83
86
|
return '';
|
|
84
87
|
}, [data]);
|
|
88
|
+
console.log(1);
|
|
85
89
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
86
90
|
className: "".concat(prefix, "-goods"),
|
|
87
91
|
onClick: function onClick() {
|
|
88
92
|
return onCardClick();
|
|
89
93
|
}
|
|
94
|
+
}, !!content.orderSn && /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
+
className: "".concat(prefix, "-goods-order"),
|
|
96
|
+
onClick: function onClick(e) {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
}
|
|
90
100
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
101
|
+
className: "".concat(prefix, "-goods-order-prefix")
|
|
102
|
+
}, "\u8BA2\u5355\u7F16\u53F7:"), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
+
className: "".concat(prefix, "-goods-order-text")
|
|
104
|
+
}, content.orderSn), /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
+
className: "".concat(prefix, "-goods-order-copy")
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
107
|
+
type: "icon-fuzhi",
|
|
108
|
+
style: {
|
|
109
|
+
marginLeft: 4
|
|
110
|
+
},
|
|
111
|
+
onClick: function onClick(e) {
|
|
112
|
+
var _content$orderSn;
|
|
113
|
+
e.stopPropagation();
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
(0, _utils.copyText)((_content$orderSn = content.orderSn) === null || _content$orderSn === void 0 ? void 0 : _content$orderSn.toString()).then(function () {
|
|
116
|
+
_antd.message.success('复制成功');
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
91
120
|
className: "".concat(prefix, "-goods-info")
|
|
92
121
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
93
122
|
className: "".concat(prefix, "-goods-info-img"),
|
package/lib/GoodsCard/index.less
CHANGED
|
@@ -4,13 +4,42 @@
|
|
|
4
4
|
max-width: 272px;
|
|
5
5
|
min-width: 200px;
|
|
6
6
|
padding-bottom: 2px;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
|
|
9
|
+
&-order {
|
|
10
|
+
margin: 0 12px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
padding-bottom: 8px;
|
|
13
|
+
padding-top: 8px;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-bottom: 1px solid #eee;
|
|
18
|
+
&-text {
|
|
19
|
+
flex: 1;
|
|
20
|
+
white-space: nowrap; // 添加此行
|
|
21
|
+
text-overflow: ellipsis; // 添加此行
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
&-copy {
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
color: #aaa;
|
|
27
|
+
transition: 0.3;
|
|
28
|
+
&:hover {
|
|
29
|
+
color: #2c6bffff;
|
|
30
|
+
}
|
|
31
|
+
&:active {
|
|
32
|
+
color: #2c6bffff;
|
|
33
|
+
transform: scale(1.1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
7
37
|
&-info {
|
|
8
38
|
display: flex;
|
|
9
39
|
flex-flow: row;
|
|
10
40
|
padding: 12px;
|
|
11
41
|
cursor: pointer;
|
|
12
42
|
border-radius: 4px;
|
|
13
|
-
background-color: #fff;
|
|
14
43
|
&-img {
|
|
15
44
|
flex-shrink: 0;
|
|
16
45
|
border-radius: 3px;
|
|
@@ -454,6 +454,40 @@ var ParseSession = function ParseSession(_ref) {
|
|
|
454
454
|
}
|
|
455
455
|
})), "\u7CFB\u7EDF\u8F6C\u53D1"));
|
|
456
456
|
};
|
|
457
|
+
var renderLiveSupport = function renderLiveSupport() {
|
|
458
|
+
var liveSupportAttach = attach;
|
|
459
|
+
console.log(liveSupportAttach, 'liveSupportAttach');
|
|
460
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
461
|
+
className: "".concat(prefix, "-live-support")
|
|
462
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
463
|
+
className: "".concat(prefix, "-live-support-title")
|
|
464
|
+
}, liveSupportAttach.content.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
465
|
+
className: "".concat(prefix, "-live-support-operate")
|
|
466
|
+
}, liveSupportAttach.content.liveSupportBtn));
|
|
467
|
+
};
|
|
468
|
+
var renderAfsFaq = function renderAfsFaq() {
|
|
469
|
+
var afsFaqAttach = attach;
|
|
470
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
471
|
+
className: "".concat(prefix, "-afs-faq")
|
|
472
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
473
|
+
className: "".concat(prefix, "-afs-faq-title")
|
|
474
|
+
}, afsFaqAttach.content.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
475
|
+
className: "".concat(prefix, "-afs-faq-list")
|
|
476
|
+
}, afsFaqAttach.content.qaList.map(function (item) {
|
|
477
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
478
|
+
className: "".concat(prefix, "-afs-faq-list-item"),
|
|
479
|
+
key: item.id
|
|
480
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
481
|
+
className: "title"
|
|
482
|
+
}, item.question));
|
|
483
|
+
})));
|
|
484
|
+
};
|
|
485
|
+
var renderFeedback = function renderFeedback() {
|
|
486
|
+
var feedbackAttach = attach;
|
|
487
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
488
|
+
className: "".concat(prefix, "-text")
|
|
489
|
+
}, feedbackAttach.content.title);
|
|
490
|
+
};
|
|
457
491
|
var renderOfflineSupport = function renderOfflineSupport() {
|
|
458
492
|
var _attach$content14, _attach$content15;
|
|
459
493
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -482,6 +516,12 @@ var ParseSession = function ParseSession(_ref) {
|
|
|
482
516
|
return renderFaq();
|
|
483
517
|
case _const.imMsgTypes.faqLink:
|
|
484
518
|
return renderFaqLink();
|
|
519
|
+
case _const.imMsgTypes.afsFaq:
|
|
520
|
+
return renderAfsFaq();
|
|
521
|
+
case _const.imMsgTypes.feedback:
|
|
522
|
+
return renderFeedback();
|
|
523
|
+
case _const.imMsgTypes.liveSupport:
|
|
524
|
+
return renderLiveSupport();
|
|
485
525
|
case _const.imMsgTypes.formCustomer:
|
|
486
526
|
return renderFormCustomer();
|
|
487
527
|
case _const.imMsgTypes.tip:
|
|
@@ -211,6 +211,75 @@
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
+
|
|
215
|
+
&-afs-faq {
|
|
216
|
+
padding: 16px;
|
|
217
|
+
width: 272px;
|
|
218
|
+
&-title {
|
|
219
|
+
font-size: 14px;
|
|
220
|
+
color: #333;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
}
|
|
223
|
+
&-list {
|
|
224
|
+
margin-top: 16px;
|
|
225
|
+
border-top: 1px solid #eee;
|
|
226
|
+
color: #2c6bff;
|
|
227
|
+
&-item {
|
|
228
|
+
cursor: default;
|
|
229
|
+
padding: 16px 0 0 0;
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
transition: color 0.3s, transform 0.3s;
|
|
233
|
+
// &:active {
|
|
234
|
+
// color: #1a4d99;
|
|
235
|
+
// transform: scale(1.05);
|
|
236
|
+
// }
|
|
237
|
+
&::before {
|
|
238
|
+
content: '';
|
|
239
|
+
display: inline-block;
|
|
240
|
+
width: 6px;
|
|
241
|
+
height: 6px;
|
|
242
|
+
border-radius: 50%;
|
|
243
|
+
background-color: #2c6bff;
|
|
244
|
+
margin-right: 8px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
&-feedback {
|
|
250
|
+
padding: 16px;
|
|
251
|
+
width: 272px;
|
|
252
|
+
}
|
|
253
|
+
&-live-support {
|
|
254
|
+
padding: 16px;
|
|
255
|
+
width: 272px;
|
|
256
|
+
&-title {
|
|
257
|
+
font-size: 14px;
|
|
258
|
+
color: #333;
|
|
259
|
+
font-weight: 400;
|
|
260
|
+
}
|
|
261
|
+
&-operate {
|
|
262
|
+
cursor: default;
|
|
263
|
+
font-size: 14px;
|
|
264
|
+
color: #2c6bff;
|
|
265
|
+
font-weight: 400;
|
|
266
|
+
margin-top: 16px;
|
|
267
|
+
transition: color 0.3s, transform 0.3s;
|
|
268
|
+
// &:active {
|
|
269
|
+
// color: #1a4d99;
|
|
270
|
+
// transform: scale(1.05);
|
|
271
|
+
// }
|
|
272
|
+
&::before {
|
|
273
|
+
content: '';
|
|
274
|
+
display: inline-block;
|
|
275
|
+
width: 6px;
|
|
276
|
+
height: 6px;
|
|
277
|
+
border-radius: 50%;
|
|
278
|
+
background-color: #2c6bff;
|
|
279
|
+
margin-right: 8px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
214
283
|
}
|
|
215
284
|
|
|
216
285
|
.fx-preview-toolbar-wrapper {
|
|
@@ -14,6 +14,12 @@ var imMsgTypes = exports.imMsgTypes = {
|
|
|
14
14
|
link: 'link',
|
|
15
15
|
file: 'file',
|
|
16
16
|
faq: 'faq',
|
|
17
|
+
// 机器人自动回复问题
|
|
18
|
+
afsFaq: 'afs-faq',
|
|
19
|
+
// 请用户给快速反馈
|
|
20
|
+
feedback: 'feedback',
|
|
21
|
+
// 询问是否需要转
|
|
22
|
+
liveSupport: 'live-support',
|
|
17
23
|
faqLink: 'faqLink',
|
|
18
24
|
formCustomer: 'formCustomer',
|
|
19
25
|
tip: 'tip',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-im-record",
|
|
3
|
-
"version": "0.0.8-beta.
|
|
3
|
+
"version": "0.0.8-beta.6",
|
|
4
4
|
"description": "@fle-ui/plus-im-record",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=17.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "52aeefee080d3d3b254239c6dc0f79161e5635cd"
|
|
49
49
|
}
|