bhd-components 0.10.10 → 0.10.11

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.
@@ -14387,7 +14387,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14387
14387
  reference: null,
14388
14388
  source: null,
14389
14389
  suffix: item.suffix,
14390
- fileSize: item.size || 0,
14391
14390
  fileTitle: item.name
14392
14391
  });
14393
14392
  });
@@ -14444,10 +14443,6 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14444
14443
  if (coverRenderText) {
14445
14444
  contentNode = coverRenderText(item, html);
14446
14445
  }
14447
- // item.type = "file";
14448
- // item.suffix = "docx";
14449
- // item.fileTitle = "这是一个文件名称.docx";
14450
- // item.fileSize = "5Mb";
14451
14446
  if (item.type === "file") {
14452
14447
  var renderFileObj = _object_spread({
14453
14448
  fileTitleRender: function(item) {
@@ -15400,7 +15395,9 @@ var defaultFileUploadProps = {
15400
15395
  };
15401
15396
  var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15402
15397
  var footerConfig = props.footerConfig, prefix = props.prefix, errorCallback = props.errorCallback, apiRef = props.apiRef;
15403
- var _footerConfig_placeholder = footerConfig.placeholder, placeholder = _footerConfig_placeholder === void 0 ? defaultProps.placeholder : _footerConfig_placeholder, _footerConfig_className = footerConfig.className, className = _footerConfig_className === void 0 ? defaultProps.className : _footerConfig_className, _footerConfig_maxLength = footerConfig.maxLength, maxLength = _footerConfig_maxLength === void 0 ? defaultProps.maxLength : _footerConfig_maxLength, renderAction = footerConfig.renderAction, fileUpload = footerConfig.fileUpload, sendMsgAjaxParams = footerConfig.sendMsgAjaxParams, _footerConfig_onClickStop = footerConfig.onClickStop, onClickStop = _footerConfig_onClickStop === void 0 ? function() {} : _footerConfig_onClickStop;
15398
+ var _footerConfig_placeholder = footerConfig.placeholder, placeholder = _footerConfig_placeholder === void 0 ? defaultProps.placeholder : _footerConfig_placeholder, _footerConfig_className = footerConfig.className, className = _footerConfig_className === void 0 ? defaultProps.className : _footerConfig_className, _footerConfig_maxLength = footerConfig.maxLength, maxLength = _footerConfig_maxLength === void 0 ? defaultProps.maxLength : _footerConfig_maxLength, renderAction = footerConfig.renderAction, fileUpload = footerConfig.fileUpload, sendMsgAjaxParams = footerConfig.sendMsgAjaxParams, _footerConfig_onClickStop = footerConfig.onClickStop, onClickStop = _footerConfig_onClickStop === void 0 ? function() {} : _footerConfig_onClickStop, _footerConfig_conversionContent = footerConfig.conversionContent, conversionContent = _footerConfig_conversionContent === void 0 ? function(str) {
15399
+ return str;
15400
+ } : _footerConfig_conversionContent;
15404
15401
  if (fileUpload) {
15405
15402
  fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
15406
15403
  }
@@ -15652,10 +15649,12 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15652
15649
  onmessage: function(ev) {
15653
15650
  var data = onMessage(ev, closeCallback);
15654
15651
  msgContent += data.content;
15652
+ var str = msgContent.replace(/\\n/g, "\n");
15653
+ str = conversionContent(str);
15655
15654
  delete data.content;
15656
15655
  recordMsgObj = _object_spread({
15657
15656
  createTime: createTime,
15658
- content: msgContent || "正在输入...",
15657
+ content: str || "正在输入...",
15659
15658
  location: "left",
15660
15659
  reference: null,
15661
15660
  source: null