bhd-components 0.9.20 → 0.9.22
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.css +1133 -1109
- package/dist/index.esm.es5.development.js +17 -14
- package/dist/index.esm.es5.production.css +1 -1
- 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 +8 -3
- package/es2017/customerService/index.module.less +54 -38
- package/es2017/customerService/index2.module.less +51 -35
- package/es2017/viewImage/index.d.ts +1 -0
- package/es2017/viewImage/index.js +12 -11
- package/esm/customerService/index.js +8 -3
- package/esm/customerService/index.module.less +54 -38
- package/esm/customerService/index2.module.less +51 -35
- package/esm/viewImage/index.d.ts +1 -0
- package/esm/viewImage/index.js +10 -7
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -2026,7 +2026,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2026
2026
|
className: "".concat(modules_63b47c51$5.viewImgAction, " ").concat(modules_63b47c51$5.actionTop),
|
|
2027
2027
|
children: /*#__PURE__*/ jsx("span", {
|
|
2028
2028
|
// id="actionClose"
|
|
2029
|
-
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2029
|
+
// style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
|
|
2030
2030
|
className: modules_63b47c51$5.viewImgActionClose,
|
|
2031
2031
|
title: "关闭",
|
|
2032
2032
|
onClick: this.close,
|
|
@@ -2111,15 +2111,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2111
2111
|
// this.state.actionCloseFlag===0&&(
|
|
2112
2112
|
// <span
|
|
2113
2113
|
// 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="关闭"
|
|
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="关闭"
|
|
2117
2117
|
// onClick={this.close}>
|
|
2118
2118
|
// <CustomClose />
|
|
2119
2119
|
// </span>
|
|
2120
2120
|
// )
|
|
2121
2121
|
// }
|
|
2122
|
-
// </div>
|
|
2122
|
+
// </div>
|
|
2123
2123
|
/*#__PURE__*/ jsxs(Fragment, {
|
|
2124
2124
|
children: [
|
|
2125
2125
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -2176,7 +2176,9 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
|
|
|
2176
2176
|
return ViewImage;
|
|
2177
2177
|
}(React.Component);
|
|
2178
2178
|
var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
2179
|
-
var visible = props.visible, className = props.className
|
|
2179
|
+
var visible = props.visible, className = props.className, _props_getContainer = props.getContainer, getContainer = _props_getContainer === void 0 ? function() {
|
|
2180
|
+
return document.body;
|
|
2181
|
+
} : _props_getContainer;
|
|
2180
2182
|
var viewRef = useRef(null);
|
|
2181
2183
|
useImperativeHandle(ref, function() {
|
|
2182
2184
|
return {
|
|
@@ -2199,6 +2201,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
2199
2201
|
background: "rgba(0, 0, 0, 0.65)"
|
|
2200
2202
|
},
|
|
2201
2203
|
wrapClassName: "".concat(modules_63b47c51$5.AppViewImage, " ").concat(className || ""),
|
|
2204
|
+
getContainer: getContainer,
|
|
2202
2205
|
children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
|
|
2203
2206
|
ref: viewRef
|
|
2204
2207
|
}))
|
|
@@ -2621,7 +2624,7 @@ function BhdAppLayout(props) {
|
|
|
2621
2624
|
});
|
|
2622
2625
|
}
|
|
2623
2626
|
|
|
2624
|
-
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"
|
|
2627
|
+
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__15161658","ChatWindow_Modal":"index_module_ChatWindow_Modal__15161658","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__15161658","header_wrap":"index_module_header_wrap__15161658","top":"index_module_top__15161658","user":"index_module_user__15161658","count":"index_module_count__15161658","operate":"index_module_operate__15161658","line":"index_module_line__15161658","popover_main":"index_module_popover_main__15161658","popover":"index_module_popover__15161658","header_wrap_newlabo":"index_module_header_wrap_newlabo__15161658","Drawer_main":"index_module_Drawer_main__15161658","loading":"index_module_loading__15161658","message_con":"index_module_message_con__15161658","left":"index_module_left__15161658","head_sculpture":"index_module_head_sculpture__15161658","main_content":"index_module_main_content__15161658","right":"index_module_right__15161658","main":"index_module_main__15161658","main_content_flag":"index_module_main_content_flag__15161658","operate_modal":"index_module_operate_modal__15161658","operate_modal_bottom":"index_module_operate_modal_bottom__15161658","active":"index_module_active__15161658","stop_generate":"index_module_stop_generate__15161658","icon":"index_module_icon__15161658","find_teacher":"index_module_find_teacher__15161658","stop_findTeacher":"index_module_stop_findTeacher__15161658","content":"index_module_content__15161658","content_child":"index_module_content_child__15161658","find_teacher_con":"index_module_find_teacher_con__15161658","sign":"index_module_sign__15161658","ask_question":"index_module_ask_question__15161658","bottom":"index_module_bottom__15161658","association_problem":"index_module_association_problem__15161658","association_problem_flag":"index_module_association_problem_flag__15161658","related_issues_flag":"index_module_related_issues_flag__15161658","img_con":"index_module_img_con__15161658","mask_zoom":"index_module_mask_zoom__15161658","img_con2":"index_module_img_con2__15161658","copyCode":"index_module_copyCode__15161658","time":"index_module_time__15161658","citation_content":"index_module_citation_content__15161658","text_exceed":"index_module_text_exceed__15161658","popover_content":"index_module_popover_content__15161658","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__15161658","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__15161658","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__15161658","issues_list_teacherList":"index_module_issues_list_teacherList__15161658","item":"index_module_item__15161658","issues_list":"index_module_issues_list__15161658","issues_list_flag":"index_module_issues_list_flag__15161658","Drawer_buttom":"index_module_Drawer_buttom__15161658","input_wrap":"index_module_input_wrap__15161658","input":"index_module_input__15161658","picture_layout":"index_module_picture_layout__15161658","icon_close":"index_module_icon_close__15161658","icon_zoom":"index_module_icon_zoom__15161658","anticon":"index_module_anticon__15161658","no_AI":"index_module_no_AI__15161658","screenshot":"index_module_screenshot__15161658","disabled":"index_module_disabled__15161658","content_main":"index_module_content_main__15161658","content_con":"index_module_content_con__15161658","delete_quote":"index_module_delete_quote__15161658","sending":"index_module_sending__15161658","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__15161658","main_list":"index_module_main_list__15161658","chat_content":"index_module_chat_content__15161658","popover_main_content":"index_module_popover_main_content__15161658","popover_main_content_name":"index_module_popover_main_content_name__15161658","teacher_layout":"index_module_teacher_layout__15161658","delete":"index_module_delete__15161658","num":"index_module_num__15161658","shrink":"index_module_shrink__15161658","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__15161658","teacher_layout_modal":"index_module_teacher_layout_modal__15161658","ai":"index_module_ai__15161658","user_info":"index_module_user_info__15161658","message":"index_module_message__15161658","con":"index_module_con__15161658","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__15161658","history_list":"index_module_history_list__15161658","search_layout":"index_module_search_layout__15161658","mymove":"index_module_mymove__15161658","title":"index_module_title__15161658","search_top":"index_module_search_top__15161658","list_item":"index_module_list_item__15161658","list_summary":"index_module_list_summary__15161658","head_img":"index_module_head_img__15161658","list_desc":"index_module_list_desc__15161658","name":"index_module_name__15161658","decs":"index_module_decs__15161658","open":"index_module_open__15161658","list_summary_active":"index_module_list_summary_active__15161658","list_detail":"index_module_list_detail__15161658","list":"index_module_list__15161658","list_more":"index_module_list_more__15161658","no_data":"index_module_no_data__15161658","history_list_broadside":"index_module_history_list_broadside__15161658","teacher_list":"index_module_teacher_list__15161658","screenshot_Modal":"index_module_screenshot_Modal__15161658","ReactCrop":"index_module_ReactCrop__15161658","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__15161658"};
|
|
2625
2628
|
|
|
2626
2629
|
//消息已读
|
|
2627
2630
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -10994,16 +10997,13 @@ var CustomerService = function(props) {
|
|
|
10994
10997
|
//渲染底部按钮
|
|
10995
10998
|
var renderBottomAnt = function() {
|
|
10996
10999
|
var placeholder = "";
|
|
10997
|
-
var disabled = false;
|
|
10998
11000
|
if (!finished) {
|
|
10999
11001
|
placeholder = "答案生成中,请稍后再发送...";
|
|
11000
11002
|
}
|
|
11001
11003
|
if (screenshotBese64) {
|
|
11002
11004
|
placeholder = "在发送之前,请输入需要对这个图片做的操作...";
|
|
11003
|
-
disabled = true;
|
|
11004
11005
|
} else {
|
|
11005
11006
|
placeholder = "请输入问题,按Enter发送,Shift+Enter换行";
|
|
11006
|
-
disabled = true;
|
|
11007
11007
|
}
|
|
11008
11008
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
11009
11009
|
children: [
|
|
@@ -11100,6 +11100,9 @@ var CustomerService = function(props) {
|
|
|
11100
11100
|
// console.log('发送内容22222',props)
|
|
11101
11101
|
// console.log(roomList,roomId,'发送内容22222wewewewewewewe');
|
|
11102
11102
|
if (!e.shiftKey && !e.altKey && !e.ctrlKey && keyWord.trim() != "") {
|
|
11103
|
+
if (!finished) {
|
|
11104
|
+
return;
|
|
11105
|
+
}
|
|
11103
11106
|
e.stopPropagation();
|
|
11104
11107
|
e.preventDefault();
|
|
11105
11108
|
clearTimeout(timer.current);
|
|
@@ -11127,7 +11130,7 @@ var CustomerService = function(props) {
|
|
|
11127
11130
|
onFocus: function() {
|
|
11128
11131
|
onEvent(serverName + serverUrl(), "click_智能问答_输入框", "提交");
|
|
11129
11132
|
},
|
|
11130
|
-
disabled
|
|
11133
|
+
// disabled={!disabled || !finished}
|
|
11131
11134
|
maxLength: 1000,
|
|
11132
11135
|
id: "con_textarea"
|
|
11133
11136
|
}),
|
|
@@ -11188,9 +11191,9 @@ var CustomerService = function(props) {
|
|
|
11188
11191
|
/*#__PURE__*/ jsx("p", {
|
|
11189
11192
|
className: "".concat(styles.sending),
|
|
11190
11193
|
children: /*#__PURE__*/ jsx("i", {
|
|
11191
|
-
className: "".concat(!
|
|
11194
|
+
className: "".concat(!finished || keyWord.trim() == "" ? styles.disabled : ""),
|
|
11192
11195
|
onClick: function() {
|
|
11193
|
-
if (
|
|
11196
|
+
if (!finished || keyWord.trim() == "") return;
|
|
11194
11197
|
setCitationContent({});
|
|
11195
11198
|
setButtomHei(45);
|
|
11196
11199
|
if (keyWord.trim() != "") {
|