bhd-components 0.9.15 → 0.9.17
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 +1105 -1104
- package/dist/index.esm.es5.development.js +53 -38
- 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 -6
- package/dist/vendor.esm.es5.production.js +3 -3
- package/es2017/bhdSelect/index.js +10 -2
- package/es2017/customerService/historyFun.js +9 -9
- package/es2017/customerService/index.js +32 -25
- package/es2017/customerService/index.module.less +6 -5
- package/es2017/customerService/index2.module.less +6 -5
- package/es2017/message/index.module.less +0 -3
- package/esm/bhdSelect/index.js +10 -2
- package/esm/customerService/historyFun.js +9 -9
- package/esm/customerService/index.js +32 -25
- package/esm/customerService/index.module.less +6 -5
- package/esm/customerService/index2.module.less +6 -5
- package/esm/message/index.module.less +0 -3
- package/package.json +9 -3
|
@@ -604,7 +604,7 @@ var i18Conversion$1 = i18Conversion;
|
|
|
604
604
|
};
|
|
605
605
|
var BhdTableSimple$1 = BhdTableSimple;
|
|
606
606
|
|
|
607
|
-
var modules_63b47c51$9 = {"customSuccess":"
|
|
607
|
+
var modules_63b47c51$9 = {"customSuccess":"index_module_customSuccess__dc4e3d45","customWarning":"index_module_customWarning__dc4e3d45","customError":"index_module_customError__dc4e3d45"};
|
|
608
608
|
|
|
609
609
|
var CustomCloseSvg = function() {
|
|
610
610
|
return /*#__PURE__*/ jsx("svg", {
|
|
@@ -2140,9 +2140,17 @@ var BhdSelect = function(props) {
|
|
|
2140
2140
|
var renderSuffixIcon = function() {
|
|
2141
2141
|
switch(arrowType){
|
|
2142
2142
|
case "table":
|
|
2143
|
-
return /*#__PURE__*/ jsx(CaretDownOutlined, {
|
|
2143
|
+
return /*#__PURE__*/ jsx(CaretDownOutlined, {
|
|
2144
|
+
style: {
|
|
2145
|
+
pointerEvents: "none"
|
|
2146
|
+
}
|
|
2147
|
+
});
|
|
2144
2148
|
default:
|
|
2145
|
-
return /*#__PURE__*/ jsx(CustomArrow$1, {
|
|
2149
|
+
return /*#__PURE__*/ jsx(CustomArrow$1, {
|
|
2150
|
+
style: {
|
|
2151
|
+
pointerEvents: "none"
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2146
2154
|
}
|
|
2147
2155
|
};
|
|
2148
2156
|
var filterOption = function() {
|
|
@@ -2520,7 +2528,7 @@ function BhdAppLayout(props) {
|
|
|
2520
2528
|
});
|
|
2521
2529
|
}
|
|
2522
2530
|
|
|
2523
|
-
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"
|
|
2531
|
+
var modules_63b47c51$1 = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__6402b35f","ChatWindow_Modal":"index_module_ChatWindow_Modal__6402b35f","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__6402b35f","header_wrap":"index_module_header_wrap__6402b35f","top":"index_module_top__6402b35f","user":"index_module_user__6402b35f","count":"index_module_count__6402b35f","operate":"index_module_operate__6402b35f","line":"index_module_line__6402b35f","popover_main":"index_module_popover_main__6402b35f","popover":"index_module_popover__6402b35f","header_wrap_newlabo":"index_module_header_wrap_newlabo__6402b35f","Drawer_main":"index_module_Drawer_main__6402b35f","loading":"index_module_loading__6402b35f","message_con":"index_module_message_con__6402b35f","left":"index_module_left__6402b35f","head_sculpture":"index_module_head_sculpture__6402b35f","main_content":"index_module_main_content__6402b35f","right":"index_module_right__6402b35f","main":"index_module_main__6402b35f","main_content_flag":"index_module_main_content_flag__6402b35f","operate_modal":"index_module_operate_modal__6402b35f","operate_modal_bottom":"index_module_operate_modal_bottom__6402b35f","active":"index_module_active__6402b35f","stop_generate":"index_module_stop_generate__6402b35f","icon":"index_module_icon__6402b35f","find_teacher":"index_module_find_teacher__6402b35f","stop_findTeacher":"index_module_stop_findTeacher__6402b35f","content":"index_module_content__6402b35f","content_child":"index_module_content_child__6402b35f","find_teacher_con":"index_module_find_teacher_con__6402b35f","sign":"index_module_sign__6402b35f","ask_question":"index_module_ask_question__6402b35f","bottom":"index_module_bottom__6402b35f","association_problem":"index_module_association_problem__6402b35f","association_problem_flag":"index_module_association_problem_flag__6402b35f","related_issues_flag":"index_module_related_issues_flag__6402b35f","img_con":"index_module_img_con__6402b35f","mask_zoom":"index_module_mask_zoom__6402b35f","img_con2":"index_module_img_con2__6402b35f","copyCode":"index_module_copyCode__6402b35f","time":"index_module_time__6402b35f","citation_content":"index_module_citation_content__6402b35f","text_exceed":"index_module_text_exceed__6402b35f","popover_content":"index_module_popover_content__6402b35f","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__6402b35f","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__6402b35f","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__6402b35f","issues_list_teacherList":"index_module_issues_list_teacherList__6402b35f","item":"index_module_item__6402b35f","issues_list":"index_module_issues_list__6402b35f","issues_list_flag":"index_module_issues_list_flag__6402b35f","Drawer_buttom":"index_module_Drawer_buttom__6402b35f","input_wrap":"index_module_input_wrap__6402b35f","input":"index_module_input__6402b35f","picture_layout":"index_module_picture_layout__6402b35f","icon_close":"index_module_icon_close__6402b35f","icon_zoom":"index_module_icon_zoom__6402b35f","anticon":"index_module_anticon__6402b35f","no_AI":"index_module_no_AI__6402b35f","screenshot":"index_module_screenshot__6402b35f","disabled":"index_module_disabled__6402b35f","content_main":"index_module_content_main__6402b35f","content_con":"index_module_content_con__6402b35f","delete_quote":"index_module_delete_quote__6402b35f","sending":"index_module_sending__6402b35f","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__6402b35f","main_list":"index_module_main_list__6402b35f","chat_content":"index_module_chat_content__6402b35f","popover_main_content":"index_module_popover_main_content__6402b35f","popover_main_content_name":"index_module_popover_main_content_name__6402b35f","teacher_layout":"index_module_teacher_layout__6402b35f","delete":"index_module_delete__6402b35f","num":"index_module_num__6402b35f","shrink":"index_module_shrink__6402b35f","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__6402b35f","teacher_layout_modal":"index_module_teacher_layout_modal__6402b35f","ai":"index_module_ai__6402b35f","user_info":"index_module_user_info__6402b35f","message":"index_module_message__6402b35f","con":"index_module_con__6402b35f","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__6402b35f","history_list":"index_module_history_list__6402b35f","search_layout":"index_module_search_layout__6402b35f","mymove":"index_module_mymove__6402b35f","title":"index_module_title__6402b35f","search_top":"index_module_search_top__6402b35f","list_item":"index_module_list_item__6402b35f","list_summary":"index_module_list_summary__6402b35f","head_img":"index_module_head_img__6402b35f","list_desc":"index_module_list_desc__6402b35f","name":"index_module_name__6402b35f","decs":"index_module_decs__6402b35f","open":"index_module_open__6402b35f","list_summary_active":"index_module_list_summary_active__6402b35f","list_detail":"index_module_list_detail__6402b35f","list":"index_module_list__6402b35f","list_more":"index_module_list_more__6402b35f","no_data":"index_module_no_data__6402b35f","history_list_broadside":"index_module_history_list_broadside__6402b35f","teacher_list":"index_module_teacher_list__6402b35f","screenshot_Modal":"index_module_screenshot_Modal__6402b35f","ReactCrop":"index_module_ReactCrop__6402b35f","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__6402b35f"};
|
|
2524
2532
|
|
|
2525
2533
|
//消息已读
|
|
2526
2534
|
var readMessage = function(roomId, urllocation, userData, http) {
|
|
@@ -3008,14 +3016,14 @@ var HistoryFun = function(props) {
|
|
|
3008
3016
|
})
|
|
3009
3017
|
]
|
|
3010
3018
|
}),
|
|
3011
|
-
/*#__PURE__*/ jsx(
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
children: /*#__PURE__*/ jsxs(
|
|
3015
|
-
|
|
3016
|
-
|
|
3019
|
+
/*#__PURE__*/ jsx(Spin, {
|
|
3020
|
+
spinning: loading,
|
|
3021
|
+
tip: "加载中...",
|
|
3022
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
3023
|
+
className: modules_63b47c51$1.main_list,
|
|
3024
|
+
id: "history_list",
|
|
3017
3025
|
children: [
|
|
3018
|
-
showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3026
|
+
!loading && showLoadingState == 1 && /*#__PURE__*/ jsxs("div", {
|
|
3019
3027
|
className: modules_63b47c51$1.no_data,
|
|
3020
3028
|
children: [
|
|
3021
3029
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -3026,7 +3034,7 @@ var HistoryFun = function(props) {
|
|
|
3026
3034
|
})
|
|
3027
3035
|
]
|
|
3028
3036
|
}),
|
|
3029
|
-
showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3037
|
+
!loading && showLoadingState == 2 && /*#__PURE__*/ jsxs("div", {
|
|
3030
3038
|
className: modules_63b47c51$1.no_data,
|
|
3031
3039
|
children: [
|
|
3032
3040
|
/*#__PURE__*/ jsx("img", {
|
|
@@ -3037,7 +3045,7 @@ var HistoryFun = function(props) {
|
|
|
3037
3045
|
})
|
|
3038
3046
|
]
|
|
3039
3047
|
}),
|
|
3040
|
-
/*#__PURE__*/ jsx("div", {
|
|
3048
|
+
!loading && /*#__PURE__*/ jsx("div", {
|
|
3041
3049
|
className: modules_63b47c51$1.list_item,
|
|
3042
3050
|
children: totalData.map(function(item) {
|
|
3043
3051
|
var span = "";
|
|
@@ -10282,32 +10290,39 @@ var CustomerService = function(props) {
|
|
|
10282
10290
|
children: /*#__PURE__*/ jsxs("div", {
|
|
10283
10291
|
className: styles.main_content_flag,
|
|
10284
10292
|
onMouseEnter: function() {
|
|
10285
|
-
var
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
var
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
if (
|
|
10299
|
-
topDom.style.cssText = "
|
|
10300
|
-
bottomDom.style.cssText = "";
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51), "px");
|
|
10293
|
+
var isSmall = showType == 1 || showType == 3;
|
|
10294
|
+
var container = document.getElementById(isSmall ? "chat_content" : "chat_content_modal");
|
|
10295
|
+
if (container) {
|
|
10296
|
+
var dom = container.querySelector('[id="'.concat(item.id, '"]'));
|
|
10297
|
+
if (dom) {
|
|
10298
|
+
// const con_h=document.getElementById('chat_content').clientHeight-24;//滚动区域的高度
|
|
10299
|
+
var con_h = container.clientHeight - (isSmall ? 24 : 0); //滚动区域的高度;
|
|
10300
|
+
var rectY = dom.getBoundingClientRect().y - 48;
|
|
10301
|
+
var h = dom.clientHeight + (isSmall ? 24 : 0); //当前元素高度
|
|
10302
|
+
var topDom = dom.getElementsByClassName("operate_modal_showtop")[0];
|
|
10303
|
+
var bottomDom = dom.getElementsByClassName("operate_modal_showbottom")[0];
|
|
10304
|
+
// console.log({h,con_h,rectY,topDom,bottomDom})
|
|
10305
|
+
if (topDom && bottomDom) {
|
|
10306
|
+
if (rectY > 0) {
|
|
10307
|
+
topDom.style.cssText = "";
|
|
10308
|
+
bottomDom.style.cssText = "visibility: hidden;";
|
|
10309
|
+
// 上下都能显示时,显示到下边
|
|
10310
|
+
if (h < con_h - rectY) {
|
|
10311
|
+
console.log("上下都能显示时,显示到下边");
|
|
10312
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10313
|
+
bottomDom.style.cssText = "";
|
|
10314
|
+
}
|
|
10308
10315
|
} else {
|
|
10309
|
-
|
|
10310
|
-
|
|
10316
|
+
// 上下都不显示
|
|
10317
|
+
if (h > con_h && h - con_h > Math.abs(rectY)) {
|
|
10318
|
+
console.log("上下都不显示");
|
|
10319
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10320
|
+
bottomDom.style.cssText = "top:".concat(-(h + rectY - 51 - (isSmall ? 0 : 58)), "px;");
|
|
10321
|
+
} else {
|
|
10322
|
+
console.log("12312312");
|
|
10323
|
+
topDom.style.cssText = "visibility: hidden;";
|
|
10324
|
+
bottomDom.style.cssText = "";
|
|
10325
|
+
}
|
|
10311
10326
|
}
|
|
10312
10327
|
}
|
|
10313
10328
|
}
|