bhd-components 0.9.23 → 0.9.25

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.
@@ -2229,13 +2229,16 @@
2229
2229
  "description": "图标,六级填充色"
2230
2230
  }
2231
2231
  */
2232
- .index_module_customSuccess__dc4e3d45.bhd-message-notice .bhd-message-notice-content {
2233
- background: #5991ef !important;
2232
+ .index_module_customSuccess__06f8eef4.bhd-message-notice .bhd-message-notice-content {
2233
+ background: #23d9c3 !important;
2234
2234
  color: #ffffff;
2235
- font-weight: 500;
2235
+ font-weight: 600;
2236
2236
  font-size: 14px;
2237
+ padding: 9.5px 16px !important;
2238
+ border-radius: 4px !important;
2239
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08), 0 3px 6px -4px rgba(49, 49, 49, 0.12), 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
2237
2240
  }
2238
- .index_module_customSuccess__dc4e3d45.bhd-message-notice .bhd-message-notice-content > .bhd-message-success > .anticon {
2241
+ .index_module_customSuccess__06f8eef4.bhd-message-notice .bhd-message-notice-content > .bhd-message-success > .anticon {
2239
2242
  color: #ffffff;
2240
2243
  font-size: 14px;
2241
2244
  display: inline-flex;
@@ -2245,17 +2248,21 @@
2245
2248
  line-height: 0;
2246
2249
  text-align: center;
2247
2250
  text-transform: none;
2248
- vertical-align: -0.125em;
2251
+ vertical-align: middle;
2249
2252
  text-rendering: optimizeLegibility;
2250
2253
  -webkit-font-smoothing: antialiased;
2254
+ transform: translateY(-1.25px);
2251
2255
  }
2252
- .index_module_customWarning__dc4e3d45.bhd-message-notice .bhd-message-notice-content {
2253
- background-color: #fadb14 !important;
2256
+ .index_module_customWarning__06f8eef4.bhd-message-notice .bhd-message-notice-content {
2257
+ background-color: #ffc107 !important;
2254
2258
  color: #ffffff;
2255
- font-weight: 500;
2259
+ font-weight: 600;
2256
2260
  font-size: 14px;
2261
+ padding: 9.5px 16px !important;
2262
+ border-radius: 4px !important;
2263
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08), 0 3px 6px -4px rgba(49, 49, 49, 0.12), 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
2257
2264
  }
2258
- .index_module_customWarning__dc4e3d45.bhd-message-notice .bhd-message-notice-content .bhd-message-warning > .anticon {
2265
+ .index_module_customWarning__06f8eef4.bhd-message-notice .bhd-message-notice-content .bhd-message-warning > .anticon {
2259
2266
  color: #ffffff;
2260
2267
  font-size: 14px;
2261
2268
  display: inline-flex;
@@ -2265,17 +2272,45 @@
2265
2272
  line-height: 0;
2266
2273
  text-align: center;
2267
2274
  text-transform: none;
2268
- vertical-align: -0.125em;
2275
+ vertical-align: middle;
2269
2276
  text-rendering: optimizeLegibility;
2270
2277
  -webkit-font-smoothing: antialiased;
2278
+ transform: translateY(-1.25px);
2271
2279
  }
2272
- .index_module_customError__dc4e3d45.bhd-message-notice .bhd-message-notice-content {
2280
+ .index_module_customError__06f8eef4.bhd-message-notice .bhd-message-notice-content {
2273
2281
  background-color: #f8700c !important;
2274
2282
  color: #ffffff;
2275
- font-weight: 500;
2283
+ font-weight: 600;
2284
+ font-size: 14px;
2285
+ padding: 9.5px 16px !important;
2286
+ border-radius: 4px !important;
2287
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08), 0 3px 6px -4px rgba(49, 49, 49, 0.12), 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
2288
+ }
2289
+ .index_module_customError__06f8eef4.bhd-message-notice .bhd-message-notice-content .bhd-message-error > .anticon {
2290
+ color: #ffffff;
2291
+ font-size: 14px;
2292
+ display: inline-flex;
2293
+ align-items: center;
2294
+ color: inherit;
2295
+ font-style: normal;
2296
+ line-height: 0;
2297
+ text-align: center;
2298
+ text-transform: none;
2299
+ vertical-align: middle;
2300
+ text-rendering: optimizeLegibility;
2301
+ -webkit-font-smoothing: antialiased;
2302
+ transform: translateY(-1.25px);
2303
+ }
2304
+ .index_module_customInfo__06f8eef4.bhd-message-notice .bhd-message-notice-content {
2305
+ background: #5991ef !important;
2306
+ color: #ffffff;
2307
+ font-weight: 600;
2276
2308
  font-size: 14px;
2309
+ padding: 9.5px 16px !important;
2310
+ border-radius: 4px !important;
2311
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08), 0 3px 6px -4px rgba(49, 49, 49, 0.12), 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
2277
2312
  }
2278
- .index_module_customError__dc4e3d45.bhd-message-notice .bhd-message-notice-content .bhd-message-error > .anticon {
2313
+ .index_module_customInfo__06f8eef4.bhd-message-notice .bhd-message-notice-content > .bhd-message-info > .anticon {
2279
2314
  color: #ffffff;
2280
2315
  font-size: 14px;
2281
2316
  display: inline-flex;
@@ -2285,9 +2320,10 @@
2285
2320
  line-height: 0;
2286
2321
  text-align: center;
2287
2322
  text-transform: none;
2288
- vertical-align: -0.125em;
2323
+ vertical-align: middle;
2289
2324
  text-rendering: optimizeLegibility;
2290
2325
  -webkit-font-smoothing: antialiased;
2326
+ transform: translateY(-1.25px);
2291
2327
  }
2292
2328
 
2293
2329
  /* 变量色值 */
@@ -1,5 +1,5 @@
1
- import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, I as Icon, E as ExclamationCircleFilled, i as _to_consumable_array, P as Pagination$1, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input, y as SearchOutlined, B as Spin, D as CloseOutlined, X, F as I, H, G as html2canvas$1, J as Remarkable, K as Drawer, N as HighlightJS, Z as ZoomInOutlined, O as DatePicker, Q as Button } from './vendor.esm.es5.development.js';
2
- export { U as Affix, V as Alert, W as Anchor, a as AntdMessage, A as App, Y as AutoComplete, $ as Avatar, a1 as BackTop, a2 as Badge, a3 as Breadcrumb, Q as Button, a4 as Calendar, a5 as Card, a6 as Carousel, a7 as Cascader, a8 as Checkbox, a9 as Col, aa as Collapse, O as DatePicker, ab as Descriptions, ac as Divider, K as Drawer, ad as Dropdown, ae as Empty, a0 as FloatButton, af as Form, ag as Grid, ah as Image, x as Input, ai as InputNumber, aj as Layout, ak as List, al as Mentions, am as Menu, M as Modal, an as Popconfirm, ao as Popover, ap as Progress, aN as QRCode, aq as Radio, ar as Rate, as as Result, at as Row, au as Segmented, k as Select, av as Skeleton, aw as Slider, ax as Space, B as Spin, ay as Statistic, az as Steps, aA as Switch, aB as Tabs, aC as Tag, aE as TimePicker, aF as Timeline, T as Tooltip, aG as Tour, aH as Transfer, aI as Tree, aJ as TreeSelect, aK as Typography, aL as Upload, aM as Watermark, aP as en_US, b as notification, aD as theme, aO as version, z as zh_CN } from './vendor.esm.es5.development.js';
1
+ import { z as zhCN, A as App, _ as _object_spread, a as AntdMessage, M as Modal$1, b as AntdNotification, C as ConfigProvider, c as _extends, d as _object_destructuring_empty, j as jsx, e as _object_spread_props, f as jsxs, t as transform, S as StyleProvider, g as _sliced_to_array, T as Tooltip, h as Table$2, i as _to_consumable_array, P as Pagination$1, I as Icon, k as Select, l as CaretDownOutlined, m as _inherits, n as _create_super, o as _create_class, p as _class_call_check, q as _define_property, r as _assert_this_initialized, s as _async_to_generator, u as MinusOutlined, v as PlusOutlined, L as LeftOutlined, R as RightOutlined, w as __generator, x as Input$1, y as SearchOutlined, B as Spin, D as CloseOutlined, X, E as I, H, F as html2canvas$1, G as Remarkable, J as Drawer, K as HighlightJS, Z as ZoomInOutlined, N as DatePicker, O as Button } from './vendor.esm.es5.development.js';
2
+ export { Q as Affix, U as Alert, V as Anchor, a as AntdMessage, A as App, W as AutoComplete, Y as Avatar, a0 as BackTop, a1 as Badge, a2 as Breadcrumb, O as Button, a3 as Calendar, a4 as Card, a5 as Carousel, a6 as Cascader, a7 as Checkbox, a8 as Col, a9 as Collapse, N as DatePicker, aa as Descriptions, ab as Divider, J as Drawer, ac as Dropdown, ad as Empty, $ as FloatButton, ae as Form, af as Grid, ag as Image, x as Input, ah as InputNumber, ai as Layout, aj as List, ak as Mentions, al as Menu, M as Modal, am as Popconfirm, an as Popover, ao as Progress, aM as QRCode, ap as Radio, aq as Rate, ar as Result, as as Row, at as Segmented, k as Select, au as Skeleton, av as Slider, aw as Space, B as Spin, ax as Statistic, ay as Steps, az as Switch, aA as Tabs, aB as Tag, aD as TimePicker, aE as Timeline, T as Tooltip, aF as Tour, aG as Transfer, aH as Tree, aI as TreeSelect, aJ as Typography, aK as Upload, aL as Watermark, aO as en_US, b as notification, aC as theme, aN as version, z as zh_CN } from './vendor.esm.es5.development.js';
3
3
  import * as React from 'react';
4
4
  import React__default, { useState, useRef, useEffect, useLayoutEffect, forwardRef, useImperativeHandle, useCallback } from 'react';
5
5
  import { Fragment } from 'react/jsx-runtime';
@@ -604,7 +604,124 @@ var i18Conversion$1 = i18Conversion;
604
604
  };
605
605
  var BhdTableSimple$1 = BhdTableSimple;
606
606
 
607
- var modules_63b47c51$9 = {"customSuccess":"index_module_customSuccess__dc4e3d45","customWarning":"index_module_customWarning__dc4e3d45","customError":"index_module_customError__dc4e3d45"};
607
+ var modules_63b47c51$9 = {"customSuccess":"index_module_customSuccess__06f8eef4","customWarning":"index_module_customWarning__06f8eef4","customError":"index_module_customError__06f8eef4","customInfo":"index_module_customInfo__06f8eef4"};
608
+
609
+ var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
610
+ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
611
+ customSuccess: function(config) {
612
+ var className = modules_63b47c51$9.customSuccess;
613
+ if (typeof config === "string") {
614
+ return message$1.success({
615
+ content: config,
616
+ className: className
617
+ });
618
+ }
619
+ return message$1.success(_object_spread_props(_object_spread({}, config), {
620
+ className: "".concat(className, " ").concat(config.className || "")
621
+ }));
622
+ },
623
+ customWarning: function(config) {
624
+ var className = modules_63b47c51$9.customWarning;
625
+ if (typeof config === "string") {
626
+ return message$1.warning({
627
+ content: config,
628
+ className: className
629
+ });
630
+ }
631
+ return message$1.warning(_object_spread_props(_object_spread({}, config), {
632
+ className: "".concat(className, " ").concat(config.className || "")
633
+ }));
634
+ },
635
+ customError: function(config) {
636
+ var className = modules_63b47c51$9.customError;
637
+ if (typeof config === "string") {
638
+ return message$1.error({
639
+ content: config,
640
+ className: className
641
+ });
642
+ }
643
+ return message$1.error(_object_spread_props(_object_spread({}, config), {
644
+ className: "".concat(className, " ").concat(config.className || "")
645
+ }));
646
+ },
647
+ customInfo: function(config) {
648
+ var className = modules_63b47c51$9.customInfo;
649
+ if (typeof config === "string") {
650
+ return message$1.info({
651
+ content: config,
652
+ className: className
653
+ });
654
+ }
655
+ return message$1.info(_object_spread_props(_object_spread({}, config), {
656
+ className: "".concat(className, " ").concat(config.className || "")
657
+ }));
658
+ },
659
+ open: function() {
660
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
661
+ arg[_key] = arguments[_key];
662
+ }
663
+ return (_message = message$1).open.apply(_message, _to_consumable_array(arg));
664
+ },
665
+ destroy: function() {
666
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
667
+ arg[_key] = arguments[_key];
668
+ }
669
+ return (_message1 = message$1).destroy.apply(_message1, _to_consumable_array(arg));
670
+ },
671
+ error: function() {
672
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
673
+ arg[_key] = arguments[_key];
674
+ }
675
+ return (_message2 = message$1).error.apply(_message2, _to_consumable_array(arg));
676
+ },
677
+ info: function() {
678
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
679
+ arg[_key] = arguments[_key];
680
+ }
681
+ return (_message3 = message$1).info.apply(_message3, _to_consumable_array(arg));
682
+ },
683
+ loading: function() {
684
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
685
+ arg[_key] = arguments[_key];
686
+ }
687
+ return (_message4 = message$1).loading.apply(_message4, _to_consumable_array(arg));
688
+ },
689
+ success: function() {
690
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
691
+ arg[_key] = arguments[_key];
692
+ }
693
+ return (_message5 = message$1).success.apply(_message5, _to_consumable_array(arg));
694
+ },
695
+ useMessage: function() {
696
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
697
+ arg[_key] = arguments[_key];
698
+ }
699
+ return (_message6 = message$1).useMessage.apply(_message6, _to_consumable_array(arg));
700
+ },
701
+ warning: function() {
702
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
703
+ arg[_key] = arguments[_key];
704
+ }
705
+ return (_message7 = message$1).warning.apply(_message7, _to_consumable_array(arg));
706
+ },
707
+ _InternalPanelDoNotUseOrYouWillBeFired: function() {
708
+ for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
709
+ arg[_key] = arguments[_key];
710
+ }
711
+ return (_message8 = message$1)._InternalPanelDoNotUseOrYouWillBeFired.apply(_message8, _to_consumable_array(arg));
712
+ }
713
+ });
714
+ var message = BhdMessage;
715
+
716
+ var modules_63b47c51$8 = {"pagination":"index_module_pagination__db6ba815"};
717
+
718
+ var BhdPagination = function(props) {
719
+ var className = "".concat(modules_63b47c51$8.pagination, " ").concat(props.className || "");
720
+ return /*#__PURE__*/ jsx(Pagination$1, _object_spread_props(_object_spread({}, props), {
721
+ className: className
722
+ }));
723
+ };
724
+ var Pagination = BhdPagination;
608
725
 
609
726
  var CustomCloseSvg = function() {
610
727
  return /*#__PURE__*/ jsx("svg", {
@@ -1165,113 +1282,6 @@ var CustomWenhaoRound = function(props) {
1165
1282
  };
1166
1283
  var CustomWenhaoRound$1 = CustomWenhaoRound;
1167
1284
 
1168
- var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
1169
- var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
1170
- customSuccess: function(config) {
1171
- var className = modules_63b47c51$9.customSuccess;
1172
- if (typeof config === "string") {
1173
- return message$1.success({
1174
- content: config,
1175
- className: className
1176
- });
1177
- }
1178
- return message$1.success(_object_spread_props(_object_spread({}, config), {
1179
- className: "".concat(className, " ").concat(config.className || "")
1180
- }));
1181
- },
1182
- customWarning: function(config) {
1183
- var className = modules_63b47c51$9.customWarning;
1184
- if (typeof config === "string") {
1185
- return message$1.warning({
1186
- content: config,
1187
- className: className
1188
- });
1189
- }
1190
- return message$1.warning(_object_spread_props(_object_spread({}, config), {
1191
- className: "".concat(className, " ").concat(config.className || "")
1192
- }));
1193
- },
1194
- customError: function(config) {
1195
- var className = modules_63b47c51$9.customError;
1196
- if (typeof config === "string") {
1197
- return message$1.error({
1198
- content: config,
1199
- className: className,
1200
- icon: /*#__PURE__*/ jsx(ExclamationCircleFilled, {})
1201
- });
1202
- }
1203
- return message$1.error(_object_spread_props(_object_spread({}, config), {
1204
- className: "".concat(className, " ").concat(config.className || ""),
1205
- icon: config.icon || /*#__PURE__*/ jsx(ExclamationCircleFilled, {})
1206
- }));
1207
- },
1208
- open: function() {
1209
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1210
- arg[_key] = arguments[_key];
1211
- }
1212
- return (_message = message$1).open.apply(_message, _to_consumable_array(arg));
1213
- },
1214
- destroy: function() {
1215
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1216
- arg[_key] = arguments[_key];
1217
- }
1218
- return (_message1 = message$1).destroy.apply(_message1, _to_consumable_array(arg));
1219
- },
1220
- error: function() {
1221
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1222
- arg[_key] = arguments[_key];
1223
- }
1224
- return (_message2 = message$1).error.apply(_message2, _to_consumable_array(arg));
1225
- },
1226
- info: function() {
1227
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1228
- arg[_key] = arguments[_key];
1229
- }
1230
- return (_message3 = message$1).info.apply(_message3, _to_consumable_array(arg));
1231
- },
1232
- loading: function() {
1233
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1234
- arg[_key] = arguments[_key];
1235
- }
1236
- return (_message4 = message$1).loading.apply(_message4, _to_consumable_array(arg));
1237
- },
1238
- success: function() {
1239
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1240
- arg[_key] = arguments[_key];
1241
- }
1242
- return (_message5 = message$1).success.apply(_message5, _to_consumable_array(arg));
1243
- },
1244
- useMessage: function() {
1245
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1246
- arg[_key] = arguments[_key];
1247
- }
1248
- return (_message6 = message$1).useMessage.apply(_message6, _to_consumable_array(arg));
1249
- },
1250
- warning: function() {
1251
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1252
- arg[_key] = arguments[_key];
1253
- }
1254
- return (_message7 = message$1).warning.apply(_message7, _to_consumable_array(arg));
1255
- },
1256
- _InternalPanelDoNotUseOrYouWillBeFired: function() {
1257
- for(var _len = arguments.length, arg = new Array(_len), _key = 0; _key < _len; _key++){
1258
- arg[_key] = arguments[_key];
1259
- }
1260
- return (_message8 = message$1)._InternalPanelDoNotUseOrYouWillBeFired.apply(_message8, _to_consumable_array(arg));
1261
- }
1262
- });
1263
- var message = BhdMessage;
1264
-
1265
- var modules_63b47c51$8 = {"pagination":"index_module_pagination__db6ba815"};
1266
-
1267
- var BhdPagination = function(props) {
1268
- var className = "".concat(modules_63b47c51$8.pagination, " ").concat(props.className || "");
1269
- return /*#__PURE__*/ jsx(Pagination$1, _object_spread_props(_object_spread({}, props), {
1270
- className: className
1271
- }));
1272
- };
1273
- var Pagination = BhdPagination;
1274
-
1275
1285
  var modules_63b47c51$7 = {"BhdTableSelect":"index_module_BhdTableSelect__67bd66da"};
1276
1286
 
1277
1287
  var BhdTableSelect = function(props) {
@@ -2212,7 +2222,7 @@ var ViewImage$1 = AppViewImage;
2212
2222
 
2213
2223
  var modules_63b47c51$3 = {"BhdSelect":"index_module_BhdSelect__0483925f","bhdSelect_option":"index_module_bhdSelect_option__0483925f","bhdSelectDrop":"index_module_bhdSelectDrop__0483925f","selectTitle":"index_module_selectTitle__0483925f","bhdSelectSearch":"index_module_bhdSelectSearch__0483925f","search":"index_module_search__0483925f"};
2214
2224
 
2215
- var Search = Input.Search;
2225
+ var Search = Input$1.Search;
2216
2226
  var RenderDrop = function(param) {
2217
2227
  var menu = param.menu, bhdDropdownRef = param.bhdDropdownRef, mask = param.mask, initHeight = param.initHeight;
2218
2228
  useEffect(function() {
@@ -2256,7 +2266,7 @@ var BhdSelect = function(props) {
2256
2266
  var list = [];
2257
2267
  list = children.filter(function(item) {
2258
2268
  if (props.filterOption == undefined) {
2259
- return item.props[search_label].includes(filterValue);
2269
+ return item.props[search_label] ? String(item.props[search_label]).includes(filterValue) : false;
2260
2270
  } else {
2261
2271
  if (typeof props.filterOption === "function") {
2262
2272
  return props.filterOption(filterValue, item);
@@ -2627,6 +2637,75 @@ function BhdAppLayout(props) {
2627
2637
 
2628
2638
  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"};
2629
2639
 
2640
+ function BaseHOC(key) {
2641
+ return function(props) {
2642
+ var defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, onPressEnter = props.onPressEnter;
2643
+ var hasValue = props.hasOwnProperty("value");
2644
+ // 用户切换到底是显示 value 还是 input
2645
+ // 不能直接用 isOnComposition 原因是,这个值发生变化不会触发重新渲染
2646
+ // 不能只使用 flag 原因是,setFlag 是异步的
2647
+ var _useState = _sliced_to_array(useState(false), 2), flag = _useState[0], setFlag = _useState[1];
2648
+ // 非中文输入时候显示 value。中文输入的时候显示 input
2649
+ var _useState1 = _sliced_to_array(useState(hasValue ? value : defaultValue), 2), input = _useState1[0], setInput = _useState1[1];
2650
+ useEffect(function() {
2651
+ if (hasValue && input !== value) {
2652
+ setInput(value);
2653
+ }
2654
+ }, [
2655
+ value
2656
+ ]);
2657
+ var isOnCompositionRef = useRef(false);
2658
+ function handleChange(e) {
2659
+ setInput(e.target.value);
2660
+ if (isOnCompositionRef.current) return;
2661
+ onChange && onChange(e);
2662
+ }
2663
+ function handleComposition(e) {
2664
+ console.log("e.type", e.type);
2665
+ if ("compositionend" === e.type) {
2666
+ isOnCompositionRef.current = false;
2667
+ handleChange(e);
2668
+ } else {
2669
+ isOnCompositionRef.current = true;
2670
+ }
2671
+ if (flag !== isOnCompositionRef.current) {
2672
+ setFlag(isOnCompositionRef.current);
2673
+ }
2674
+ }
2675
+ var Component = Input$1;
2676
+ if (key) {
2677
+ //@ts-ignore
2678
+ Component = Input$1[key];
2679
+ }
2680
+ function handlePressEnter(e) {
2681
+ console.log("isOnCompositionisOnComposition", isOnCompositionRef.current);
2682
+ setInput(e.target.value);
2683
+ if (isOnCompositionRef.current) return;
2684
+ onPressEnter && onPressEnter(e);
2685
+ }
2686
+ return /*#__PURE__*/ jsx(Component, _object_spread_props(_object_spread({}, props), {
2687
+ value: hasValue && !flag ? value : input,
2688
+ onCompositionStart: handleComposition,
2689
+ onCompositionUpdate: handleComposition,
2690
+ onCompositionEnd: handleComposition,
2691
+ onChange: handleChange,
2692
+ onPressEnter: handlePressEnter
2693
+ }));
2694
+ };
2695
+ }
2696
+ var Component = function Component(props) {
2697
+ return BaseHOC()(props);
2698
+ };
2699
+ Component.Search = function(props) {
2700
+ return BaseHOC("Search")(props);
2701
+ };
2702
+ Component.TextArea = function(props) {
2703
+ return BaseHOC("TextArea")(props);
2704
+ };
2705
+ Component.Password = Input$1.Password;
2706
+ Component.Group = Input$1.Group;
2707
+ var Input = Component;
2708
+
2630
2709
  //消息已读
2631
2710
  var readMessage = function(roomId, urllocation, userData, http) {
2632
2711
  http.patch("".concat(urllocation, "/chat-service/public/v1.0/history-messages:read"), {
@@ -3084,7 +3163,7 @@ var HistoryFun = function(props) {
3084
3163
  className: modules_63b47c51$1.search_top,
3085
3164
  children: [
3086
3165
  /*#__PURE__*/ jsx(SearchOutlined, {}),
3087
- /*#__PURE__*/ jsx(Input, {
3166
+ /*#__PURE__*/ jsx(Input$1, {
3088
3167
  placeholder: "请输入您要搜索的内容",
3089
3168
  value: keyWordProblem,
3090
3169
  onChange: function(e) {
@@ -3807,7 +3886,7 @@ var TeacherList = function(props) {
3807
3886
  className: modules_63b47c51$1.search_top,
3808
3887
  children: [
3809
3888
  /*#__PURE__*/ jsx(SearchOutlined, {}),
3810
- /*#__PURE__*/ jsx(Input, {
3889
+ /*#__PURE__*/ jsx(Input$1, {
3811
3890
  placeholder: "请输入您要召唤的老师姓名",
3812
3891
  value: keyWordProblem,
3813
3892
  onChange: function(e) {
@@ -12643,4 +12722,4 @@ var BhdDatePicker = /*#__PURE__*/ forwardRef(function(props, ref) {
12643
12722
  });
12644
12723
  var BhdDatePicker$1 = BhdDatePicker;
12645
12724
 
12646
- export { BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };
12725
+ export { BhdAppLayout, BhdDatePicker$1 as BhdDatePicker, Input as BhdEnterInput, BhdSelect$1 as BhdSelect, BhdTableSelect$1 as BhdTableSelect, BhdTableSimple$1 as BhdTableSimple, BhdTipModal$1 as BhdTipModal, CustomerService$1 as CustomerService, Pagination, Provider$1 as Provider, Table$1 as Table, TextTootip$1 as TextTootip, TitleBar$1 as TitleBar, ViewImage$1 as ViewImage, message };