bhd-components 0.9.22 → 0.9.23
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/dist/index.esm.es5.development.js +18 -4
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +16 -3
- package/es2017/viewImage/index.js +2 -1
- package/esm/customerService/index.js +16 -3
- package/esm/viewImage/index.js +2 -1
- package/package.json +1 -1
|
@@ -1976,7 +1976,8 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1976
1976
|
});
|
|
1977
1977
|
_define_property(_assert_this_initialized(_this), "imgErr", function() {
|
|
1978
1978
|
_this.setState({
|
|
1979
|
-
imgError: true
|
|
1979
|
+
imgError: true,
|
|
1980
|
+
actionCloseFlag: 1 //报错时关闭按钮固定右上角
|
|
1980
1981
|
}, function() {
|
|
1981
1982
|
_this.moveActionClose();
|
|
1982
1983
|
});
|
|
@@ -8373,16 +8374,29 @@ var CustomerService = function(props) {
|
|
|
8373
8374
|
getHistoryMessage(pageNum, 1);
|
|
8374
8375
|
}
|
|
8375
8376
|
}
|
|
8377
|
+
// //复制代码功能
|
|
8378
|
+
// let chat_content = document.getElementById('chat_content');
|
|
8379
|
+
// if(chat_content){
|
|
8380
|
+
// chat_content = document.getElementById('chat_content');
|
|
8381
|
+
// delegate(chat_content, 'click', `.${styles.copyCode}`, (event:any, target:any) => {
|
|
8382
|
+
// findCopyContent(event);
|
|
8383
|
+
// });
|
|
8384
|
+
// }
|
|
8385
|
+
}, [
|
|
8386
|
+
roomId
|
|
8387
|
+
]);
|
|
8388
|
+
useEffect(function() {
|
|
8376
8389
|
//复制代码功能
|
|
8377
|
-
var chat_content = document.getElementById("chat_content");
|
|
8390
|
+
var chat_content = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
|
|
8378
8391
|
if (chat_content) {
|
|
8379
|
-
chat_content = document.getElementById("chat_content");
|
|
8392
|
+
chat_content = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
|
|
8380
8393
|
delegate(chat_content, "click", ".".concat(styles.copyCode), function(event, target) {
|
|
8381
8394
|
findCopyContent(event);
|
|
8382
8395
|
});
|
|
8383
8396
|
}
|
|
8384
8397
|
}, [
|
|
8385
|
-
roomId
|
|
8398
|
+
roomId,
|
|
8399
|
+
showType
|
|
8386
8400
|
]);
|
|
8387
8401
|
//进入页面,发送打招呼信息
|
|
8388
8402
|
useEffect(function() {
|