bhd-components 0.9.21 → 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/README.md +1 -1
- package/dist/index.esm.es5.development.js +28 -11
- 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.d.ts +1 -0
- package/es2017/viewImage/index.js +14 -12
- package/esm/customerService/index.js +16 -3
- package/esm/viewImage/index.d.ts +1 -0
- package/esm/viewImage/index.js +12 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1673,7 +1673,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
1673
1673
|
curIndex: 0,
|
|
1674
1674
|
multiSelect: false,
|
|
1675
1675
|
imgError: false,
|
|
1676
|
-
actionCloseFlag: 0
|
|
1676
|
+
actionCloseFlag: 0
|
|
1677
1677
|
});
|
|
1678
1678
|
_define_property(_assert_this_initialized(_this), "scaleChange", function(value) {
|
|
1679
1679
|
var _this_state = _this.state, maxScale = _this_state.maxScale, minScale = _this_state.minScale;
|
|
@@ -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
|
});
|
|
@@ -2026,7 +2027,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2026
2027
|
className: "".concat(modules_63b47c51$5.viewImgAction, " ").concat(modules_63b47c51$5.actionTop),
|
|
2027
2028
|
children: /*#__PURE__*/ jsx("span", {
|
|
2028
2029
|
// id="actionClose"
|
|
2029
|
-
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2030
|
+
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2030
2031
|
className: modules_63b47c51$5.viewImgActionClose,
|
|
2031
2032
|
title: "关闭",
|
|
2032
2033
|
onClick: this.close,
|
|
@@ -2111,15 +2112,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2111
2112
|
// this.state.actionCloseFlag===0&&(
|
|
2112
2113
|
// <span
|
|
2113
2114
|
// id="actionClose"
|
|
2114
|
-
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2115
|
-
// className={styles.viewImgActionClose}
|
|
2116
|
-
// title="关闭"
|
|
2115
|
+
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2116
|
+
// className={styles.viewImgActionClose}
|
|
2117
|
+
// title="关闭"
|
|
2117
2118
|
// onClick={this.close}>
|
|
2118
2119
|
// <CustomClose />
|
|
2119
2120
|
// </span>
|
|
2120
2121
|
// )
|
|
2121
2122
|
// }
|
|
2122
|
-
// </div>
|
|
2123
|
+
// </div>
|
|
2123
2124
|
/*#__PURE__*/ jsxs(Fragment, {
|
|
2124
2125
|
children: [
|
|
2125
2126
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -2176,7 +2177,9 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2176
2177
|
return ViewImage;
|
|
2177
2178
|
}(React.Component);
|
|
2178
2179
|
var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
2179
|
-
var visible = props.visible, className = props.className
|
|
2180
|
+
var visible = props.visible, className = props.className, _props_getContainer = props.getContainer, getContainer = _props_getContainer === void 0 ? function() {
|
|
2181
|
+
return document.body;
|
|
2182
|
+
} : _props_getContainer;
|
|
2180
2183
|
var viewRef = useRef(null);
|
|
2181
2184
|
useImperativeHandle(ref, function() {
|
|
2182
2185
|
return {
|
|
@@ -2199,6 +2202,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2199
2202
|
background: "rgba(0, 0, 0, 0.65)"
|
|
2200
2203
|
},
|
|
2201
2204
|
wrapClassName: "".concat(modules_63b47c51$5.AppViewImage, " ").concat(className || ""),
|
|
2205
|
+
getContainer: getContainer,
|
|
2202
2206
|
children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
|
|
2203
2207
|
ref: viewRef
|
|
2204
2208
|
}))
|
|
@@ -8370,16 +8374,29 @@ var CustomerService = function(props) {
|
|
|
8370
8374
|
getHistoryMessage(pageNum, 1);
|
|
8371
8375
|
}
|
|
8372
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() {
|
|
8373
8389
|
//复制代码功能
|
|
8374
|
-
var chat_content = document.getElementById("chat_content");
|
|
8390
|
+
var chat_content = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
|
|
8375
8391
|
if (chat_content) {
|
|
8376
|
-
chat_content = document.getElementById("chat_content");
|
|
8392
|
+
chat_content = document.getElementById(showType == 1 || showType == 3 ? "chat_content" : "chat_content_modal");
|
|
8377
8393
|
delegate(chat_content, "click", ".".concat(styles.copyCode), function(event, target) {
|
|
8378
8394
|
findCopyContent(event);
|
|
8379
8395
|
});
|
|
8380
8396
|
}
|
|
8381
8397
|
}, [
|
|
8382
|
-
roomId
|
|
8398
|
+
roomId,
|
|
8399
|
+
showType
|
|
8383
8400
|
]);
|
|
8384
8401
|
//进入页面,发送打招呼信息
|
|
8385
8402
|
useEffect(function() {
|