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.
@@ -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 // 关闭按钮位置 0是跟随图片 1固定右上角
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":"index_module_service_ChatWindow_Drawer__cf49a5ea","ChatWindow_Modal":"index_module_ChatWindow_Modal__cf49a5ea","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__cf49a5ea","header_wrap":"index_module_header_wrap__cf49a5ea","top":"index_module_top__cf49a5ea","user":"index_module_user__cf49a5ea","count":"index_module_count__cf49a5ea","operate":"index_module_operate__cf49a5ea","line":"index_module_line__cf49a5ea","popover_main":"index_module_popover_main__cf49a5ea","popover":"index_module_popover__cf49a5ea","header_wrap_newlabo":"index_module_header_wrap_newlabo__cf49a5ea","Drawer_main":"index_module_Drawer_main__cf49a5ea","loading":"index_module_loading__cf49a5ea","message_con":"index_module_message_con__cf49a5ea","left":"index_module_left__cf49a5ea","head_sculpture":"index_module_head_sculpture__cf49a5ea","main_content":"index_module_main_content__cf49a5ea","right":"index_module_right__cf49a5ea","main":"index_module_main__cf49a5ea","main_content_flag":"index_module_main_content_flag__cf49a5ea","operate_modal":"index_module_operate_modal__cf49a5ea","operate_modal_bottom":"index_module_operate_modal_bottom__cf49a5ea","active":"index_module_active__cf49a5ea","stop_generate":"index_module_stop_generate__cf49a5ea","icon":"index_module_icon__cf49a5ea","find_teacher":"index_module_find_teacher__cf49a5ea","stop_findTeacher":"index_module_stop_findTeacher__cf49a5ea","content":"index_module_content__cf49a5ea","content_child":"index_module_content_child__cf49a5ea","find_teacher_con":"index_module_find_teacher_con__cf49a5ea","sign":"index_module_sign__cf49a5ea","ask_question":"index_module_ask_question__cf49a5ea","bottom":"index_module_bottom__cf49a5ea","association_problem":"index_module_association_problem__cf49a5ea","association_problem_flag":"index_module_association_problem_flag__cf49a5ea","related_issues_flag":"index_module_related_issues_flag__cf49a5ea","img_con":"index_module_img_con__cf49a5ea","mask_zoom":"index_module_mask_zoom__cf49a5ea","img_con2":"index_module_img_con2__cf49a5ea","copyCode":"index_module_copyCode__cf49a5ea","time":"index_module_time__cf49a5ea","citation_content":"index_module_citation_content__cf49a5ea","text_exceed":"index_module_text_exceed__cf49a5ea","popover_content":"index_module_popover_content__cf49a5ea","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__cf49a5ea","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__cf49a5ea","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__cf49a5ea","issues_list_teacherList":"index_module_issues_list_teacherList__cf49a5ea","item":"index_module_item__cf49a5ea","issues_list":"index_module_issues_list__cf49a5ea","issues_list_flag":"index_module_issues_list_flag__cf49a5ea","Drawer_buttom":"index_module_Drawer_buttom__cf49a5ea","input_wrap":"index_module_input_wrap__cf49a5ea","input":"index_module_input__cf49a5ea","picture_layout":"index_module_picture_layout__cf49a5ea","icon_close":"index_module_icon_close__cf49a5ea","icon_zoom":"index_module_icon_zoom__cf49a5ea","anticon":"index_module_anticon__cf49a5ea","no_AI":"index_module_no_AI__cf49a5ea","screenshot":"index_module_screenshot__cf49a5ea","disabled":"index_module_disabled__cf49a5ea","content_main":"index_module_content_main__cf49a5ea","content_con":"index_module_content_con__cf49a5ea","delete_quote":"index_module_delete_quote__cf49a5ea","sending":"index_module_sending__cf49a5ea","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__cf49a5ea","main_list":"index_module_main_list__cf49a5ea","chat_content":"index_module_chat_content__cf49a5ea","popover_main_content":"index_module_popover_main_content__cf49a5ea","popover_main_content_name":"index_module_popover_main_content_name__cf49a5ea","teacher_layout":"index_module_teacher_layout__cf49a5ea","delete":"index_module_delete__cf49a5ea","num":"index_module_num__cf49a5ea","shrink":"index_module_shrink__cf49a5ea","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__cf49a5ea","teacher_layout_modal":"index_module_teacher_layout_modal__cf49a5ea","ai":"index_module_ai__cf49a5ea","user_info":"index_module_user_info__cf49a5ea","message":"index_module_message__cf49a5ea","con":"index_module_con__cf49a5ea","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__cf49a5ea","history_list":"index_module_history_list__cf49a5ea","search_layout":"index_module_search_layout__cf49a5ea","mymove":"index_module_mymove__cf49a5ea","title":"index_module_title__cf49a5ea","search_top":"index_module_search_top__cf49a5ea","list_item":"index_module_list_item__cf49a5ea","list_summary":"index_module_list_summary__cf49a5ea","head_img":"index_module_head_img__cf49a5ea","list_desc":"index_module_list_desc__cf49a5ea","name":"index_module_name__cf49a5ea","decs":"index_module_decs__cf49a5ea","open":"index_module_open__cf49a5ea","list_summary_active":"index_module_list_summary_active__cf49a5ea","list_detail":"index_module_list_detail__cf49a5ea","list":"index_module_list__cf49a5ea","list_more":"index_module_list_more__cf49a5ea","no_data":"index_module_no_data__cf49a5ea","history_list_broadside":"index_module_history_list_broadside__cf49a5ea","teacher_list":"index_module_teacher_list__cf49a5ea","screenshot_Modal":"index_module_screenshot_Modal__cf49a5ea","ReactCrop":"index_module_ReactCrop__cf49a5ea","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__cf49a5ea"};
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: !disabled || !finished,
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(!disabled || keyWord.trim() == "" ? styles.disabled : ""),
11194
+ className: "".concat(!finished || keyWord.trim() == "" ? styles.disabled : ""),
11192
11195
  onClick: function() {
11193
- if (disabled && keyWord.trim() == "") return;
11196
+ if (!finished || keyWord.trim() == "") return;
11194
11197
  setCitationContent({});
11195
11198
  setButtomHei(45);
11196
11199
  if (keyWord.trim() != "") {