eoss-ui 0.6.51 → 0.6.53

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.
Files changed (76) hide show
  1. package/lib/button-group.js +58 -55
  2. package/lib/button.js +58 -55
  3. package/lib/checkbox-group.js +61 -58
  4. package/lib/data-table-form.js +58 -55
  5. package/lib/data-table.js +65 -62
  6. package/lib/date-picker.js +58 -55
  7. package/lib/dialog.js +58 -55
  8. package/lib/eoss-ui.common.js +422 -335
  9. package/lib/flow-group.js +58 -55
  10. package/lib/flow-list.js +87 -61
  11. package/lib/flow.js +187 -144
  12. package/lib/form.js +62 -59
  13. package/lib/handle-user.js +58 -55
  14. package/lib/handler.js +58 -55
  15. package/lib/icon.js +58 -55
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +58 -55
  18. package/lib/input.js +59 -56
  19. package/lib/login.js +61 -58
  20. package/lib/main.js +126 -103
  21. package/lib/menu.js +1 -1
  22. package/lib/nav.js +61 -58
  23. package/lib/page.js +58 -55
  24. package/lib/pagination.js +58 -55
  25. package/lib/player.js +58 -55
  26. package/lib/qr-code.js +58 -55
  27. package/lib/radio-group.js +61 -58
  28. package/lib/retrial-auth.js +58 -55
  29. package/lib/select-ganged.js +59 -56
  30. package/lib/select.js +61 -57
  31. package/lib/selector-panel.js +61 -58
  32. package/lib/selector.js +58 -55
  33. package/lib/sizer.js +58 -55
  34. package/lib/steps.js +61 -58
  35. package/lib/switch.js +58 -55
  36. package/lib/table-form.js +58 -55
  37. package/lib/tabs.js +58 -55
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/upload.css +1 -1
  40. package/lib/tips.js +61 -58
  41. package/lib/tree-group.js +58 -55
  42. package/lib/tree.js +61 -58
  43. package/lib/upload.js +72 -69
  44. package/lib/utils/util.js +54 -51
  45. package/lib/wujie.js +58 -55
  46. package/lib/wxlogin.js +58 -55
  47. package/package.json +2 -2
  48. package/packages/checkbox-group/src/main.vue +2 -2
  49. package/packages/data-table/src/main.vue +3 -3
  50. package/packages/flow/src/reset.vue +4 -6
  51. package/packages/flow/src/startTaskRead.vue +180 -136
  52. package/packages/flow-list/src/main.vue +25 -2
  53. package/packages/form/src/main.vue +3 -3
  54. package/packages/input/src/main.vue +2 -2
  55. package/packages/login/src/main.vue +2 -2
  56. package/packages/main/src/default/index.vue +7 -1
  57. package/packages/main/src/main.vue +4 -1
  58. package/packages/main/src/public/search.vue +8 -3
  59. package/packages/main/src/simplicity/apps.vue +2 -2
  60. package/packages/main/src/simplicity/index.vue +3 -3
  61. package/packages/main/src/simplicity/user.vue +2 -2
  62. package/packages/menu/src/main.vue +2 -2
  63. package/packages/nav/src/main.vue +2 -2
  64. package/packages/radio-group/src/main.vue +2 -2
  65. package/packages/select/src/main.vue +4 -3
  66. package/packages/select-ganged/src/main.vue +2 -2
  67. package/packages/selector-panel/src/main.vue +2 -2
  68. package/packages/steps/src/main.vue +2 -2
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/upload.css +1 -1
  71. package/packages/theme-chalk/src/upload.scss +1 -0
  72. package/packages/tips/src/main.vue +2 -2
  73. package/packages/tree/src/main.vue +2 -2
  74. package/packages/upload/src/main.vue +18 -10
  75. package/src/index.js +1 -1
  76. package/src/utils/util.js +15 -12
package/lib/tree-group.js CHANGED
@@ -115,8 +115,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
115
115
  **/
116
116
 
117
117
  /* eslint-disable indent */
118
- var sm2 = __webpack_require__(10).sm2;
119
- var lodash = __webpack_require__(11);
118
+ var sm2 = __webpack_require__(11).sm2;
119
+ var lodash = __webpack_require__(10);
120
120
 
121
121
 
122
122
 
@@ -592,61 +592,64 @@ var ajaxStream = function ajaxStream(_ref2) {
592
592
  if (line === '') {
593
593
  return;
594
594
  }
595
- if (line.startsWith('data:')) {
596
- var _data = line.replace('data:', '').trim();
597
- if (_data) {
598
- try {
599
- // 假设数据是 JSON 格式
600
- var parsedData = JSON.parse(_data);
601
- info.time = parsedData.time;
602
- info.conversationId = parsedData.conversationId;
603
- var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
604
- var match = parsedData.message.match(thinkRegex);
605
- if (match) {
606
- var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
607
- var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
608
- // 更新 AI 消息内容
609
- info.thinkContent += thinkContent;
610
- info.content += content;
595
+ // if (line.startsWith('data:')) {
596
+ var data = line.startsWith('data:') ? line.replace('data:', '').trim() : line.trim();
597
+ if (data) {
598
+ try {
599
+ // 假设数据是 JSON 格式
600
+ var parsedData = JSON.parse(data);
601
+ info.time = parsedData.time;
602
+ info.conversationId = parsedData.conversationId;
603
+ var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
604
+ var match = parsedData.message.match(thinkRegex);
605
+ if (match) {
606
+ var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
607
+ var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
608
+ // 更新 AI 消息内容
609
+ info.thinkContent += thinkContent;
610
+ info.content += content;
611
+ } else {
612
+ var startRegex = /<think>([\s\S]*)/;
613
+ var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
614
+ var start = parsedData.message.match(startRegex);
615
+ var end = parsedData.message.match(endRegex);
616
+ if (start) {
617
+ hasThink = true;
618
+ var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
619
+ info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
611
623
  } else {
612
- var startRegex = /<think>([\s\S]*)/;
613
- var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
614
- var start = parsedData.message.match(startRegex);
615
- var end = parsedData.message.match(endRegex);
616
- if (start) {
617
- hasThink = true;
618
- var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
619
- info.thinkContent += _thinkContent;
620
- } else if (hasThink === false) {
624
+ if (end) {
625
+ finishThink = true;
626
+ var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
627
+ var _content = end[2] ? end[2].trim() : '';
628
+ // 更新 AI 消息内容
629
+ info.thinkContent += _thinkContent2;
630
+ info.content += _content;
631
+ chunks += _content;
632
+ } else if (finishThink) {
621
633
  info.content += parsedData.message;
622
634
  chunks += parsedData.message;
623
635
  } else {
624
- if (end) {
625
- finishThink = true;
626
- var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
627
- var _content = end[2] ? end[2].trim() : '';
628
- // 更新 AI 消息内容
629
- info.thinkContent += _thinkContent2;
630
- info.content += _content;
631
- chunks += _content;
632
- } else if (finishThink) {
633
- info.content += parsedData.message;
634
- chunks += parsedData.message;
635
- } else {
636
- info.thinkContent += parsedData.message;
637
- }
636
+ info.thinkContent += parsedData.message;
638
637
  }
639
638
  }
640
- primeval += parsedData.message;
641
- done = parsedData.done;
642
- } catch (parseError) {
643
- console.error('解析数据出错:', parseError);
644
639
  }
640
+ primeval += parsedData.message;
641
+ done = parsedData.done;
642
+ } catch (parseError) {
643
+ remainingData += line;
644
+ console.log('解析数据出错:', parseError);
645
645
  }
646
- } else {
647
- // 保存未处理完的部分数据
648
- remainingData += line + '\n';
649
646
  }
647
+ // }
648
+ // else {
649
+ // console.log('未处理的数据:', line);
650
+ // // 保存未处理完的部分数据
651
+ // remainingData += line.replace('data:', '\ndata:');
652
+ // }
650
653
  });
651
654
  info.primeval = primeval;
652
655
  info.chunk = chunks;
@@ -655,7 +658,7 @@ var ajaxStream = function ajaxStream(_ref2) {
655
658
  partialData = remainingData;
656
659
  progress && progress({ message: info, controller: controller, done: done });
657
660
  }
658
- })).then(function () {
661
+ })).then(function (results) {
659
662
  // 处理请求完成后的信息
660
663
  var originalText = info.content;
661
664
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -664,8 +667,8 @@ var ajaxStream = function ajaxStream(_ref2) {
664
667
  info.thinkContent = match ? match[1].trim() : '';
665
668
  info.content = match ? match[2].trim() : '';
666
669
  }
667
- success && success({ message: info, controller: controller });
668
- }).catch(function () {
670
+ success && success({ message: info, controller: controller, results: results });
671
+ }).catch(function (results) {
669
672
  // 处理请求完成后的信息
670
673
  var originalText = info.content || '';
671
674
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -674,7 +677,7 @@ var ajaxStream = function ajaxStream(_ref2) {
674
677
  info.thinkContent = match ? match[1].trim() : '';
675
678
  info.content = match ? match[2].trim() : '';
676
679
  }
677
- fail && fail({ status: 1, message: info, controller: controller });
680
+ fail && fail({ status: 1, message: info, controller: controller, results: results });
678
681
  });
679
682
  } catch (error) {
680
683
  console.error('聊天请求出错:', error);
@@ -771,7 +774,7 @@ var busEmit = function busEmit(that, _ref3) {
771
774
 
772
775
  var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus : null;
773
776
  if (bus) {
774
- bus.$emit(method, args);
777
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
775
778
  } else {
776
779
  win.parent.postMessage({ method: method, query: args }, '*');
777
780
  }
@@ -3876,14 +3879,14 @@ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3876
3879
  /***/ 10:
3877
3880
  /***/ (function(module, exports) {
3878
3881
 
3879
- module.exports = require("sm-crypto");
3882
+ module.exports = require("lodash");
3880
3883
 
3881
3884
  /***/ }),
3882
3885
 
3883
3886
  /***/ 11:
3884
3887
  /***/ (function(module, exports) {
3885
3888
 
3886
- module.exports = require("lodash");
3889
+ module.exports = require("sm-crypto");
3887
3890
 
3888
3891
  /***/ }),
3889
3892
 
package/lib/tree.js CHANGED
@@ -115,8 +115,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
115
115
  **/
116
116
 
117
117
  /* eslint-disable indent */
118
- var sm2 = __webpack_require__(10).sm2;
119
- var lodash = __webpack_require__(11);
118
+ var sm2 = __webpack_require__(11).sm2;
119
+ var lodash = __webpack_require__(10);
120
120
 
121
121
 
122
122
 
@@ -592,61 +592,64 @@ var ajaxStream = function ajaxStream(_ref2) {
592
592
  if (line === '') {
593
593
  return;
594
594
  }
595
- if (line.startsWith('data:')) {
596
- var _data = line.replace('data:', '').trim();
597
- if (_data) {
598
- try {
599
- // 假设数据是 JSON 格式
600
- var parsedData = JSON.parse(_data);
601
- info.time = parsedData.time;
602
- info.conversationId = parsedData.conversationId;
603
- var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
604
- var match = parsedData.message.match(thinkRegex);
605
- if (match) {
606
- var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
607
- var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
608
- // 更新 AI 消息内容
609
- info.thinkContent += thinkContent;
610
- info.content += content;
595
+ // if (line.startsWith('data:')) {
596
+ var data = line.startsWith('data:') ? line.replace('data:', '').trim() : line.trim();
597
+ if (data) {
598
+ try {
599
+ // 假设数据是 JSON 格式
600
+ var parsedData = JSON.parse(data);
601
+ info.time = parsedData.time;
602
+ info.conversationId = parsedData.conversationId;
603
+ var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
604
+ var match = parsedData.message.match(thinkRegex);
605
+ if (match) {
606
+ var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
607
+ var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
608
+ // 更新 AI 消息内容
609
+ info.thinkContent += thinkContent;
610
+ info.content += content;
611
+ } else {
612
+ var startRegex = /<think>([\s\S]*)/;
613
+ var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
614
+ var start = parsedData.message.match(startRegex);
615
+ var end = parsedData.message.match(endRegex);
616
+ if (start) {
617
+ hasThink = true;
618
+ var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
619
+ info.thinkContent += _thinkContent;
620
+ } else if (hasThink === false) {
621
+ info.content += parsedData.message;
622
+ chunks += parsedData.message;
611
623
  } else {
612
- var startRegex = /<think>([\s\S]*)/;
613
- var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
614
- var start = parsedData.message.match(startRegex);
615
- var end = parsedData.message.match(endRegex);
616
- if (start) {
617
- hasThink = true;
618
- var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
619
- info.thinkContent += _thinkContent;
620
- } else if (hasThink === false) {
624
+ if (end) {
625
+ finishThink = true;
626
+ var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
627
+ var _content = end[2] ? end[2].trim() : '';
628
+ // 更新 AI 消息内容
629
+ info.thinkContent += _thinkContent2;
630
+ info.content += _content;
631
+ chunks += _content;
632
+ } else if (finishThink) {
621
633
  info.content += parsedData.message;
622
634
  chunks += parsedData.message;
623
635
  } else {
624
- if (end) {
625
- finishThink = true;
626
- var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
627
- var _content = end[2] ? end[2].trim() : '';
628
- // 更新 AI 消息内容
629
- info.thinkContent += _thinkContent2;
630
- info.content += _content;
631
- chunks += _content;
632
- } else if (finishThink) {
633
- info.content += parsedData.message;
634
- chunks += parsedData.message;
635
- } else {
636
- info.thinkContent += parsedData.message;
637
- }
636
+ info.thinkContent += parsedData.message;
638
637
  }
639
638
  }
640
- primeval += parsedData.message;
641
- done = parsedData.done;
642
- } catch (parseError) {
643
- console.error('解析数据出错:', parseError);
644
639
  }
640
+ primeval += parsedData.message;
641
+ done = parsedData.done;
642
+ } catch (parseError) {
643
+ remainingData += line;
644
+ console.log('解析数据出错:', parseError);
645
645
  }
646
- } else {
647
- // 保存未处理完的部分数据
648
- remainingData += line + '\n';
649
646
  }
647
+ // }
648
+ // else {
649
+ // console.log('未处理的数据:', line);
650
+ // // 保存未处理完的部分数据
651
+ // remainingData += line.replace('data:', '\ndata:');
652
+ // }
650
653
  });
651
654
  info.primeval = primeval;
652
655
  info.chunk = chunks;
@@ -655,7 +658,7 @@ var ajaxStream = function ajaxStream(_ref2) {
655
658
  partialData = remainingData;
656
659
  progress && progress({ message: info, controller: controller, done: done });
657
660
  }
658
- })).then(function () {
661
+ })).then(function (results) {
659
662
  // 处理请求完成后的信息
660
663
  var originalText = info.content;
661
664
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -664,8 +667,8 @@ var ajaxStream = function ajaxStream(_ref2) {
664
667
  info.thinkContent = match ? match[1].trim() : '';
665
668
  info.content = match ? match[2].trim() : '';
666
669
  }
667
- success && success({ message: info, controller: controller });
668
- }).catch(function () {
670
+ success && success({ message: info, controller: controller, results: results });
671
+ }).catch(function (results) {
669
672
  // 处理请求完成后的信息
670
673
  var originalText = info.content || '';
671
674
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -674,7 +677,7 @@ var ajaxStream = function ajaxStream(_ref2) {
674
677
  info.thinkContent = match ? match[1].trim() : '';
675
678
  info.content = match ? match[2].trim() : '';
676
679
  }
677
- fail && fail({ status: 1, message: info, controller: controller });
680
+ fail && fail({ status: 1, message: info, controller: controller, results: results });
678
681
  });
679
682
  } catch (error) {
680
683
  console.error('聊天请求出错:', error);
@@ -771,7 +774,7 @@ var busEmit = function busEmit(that, _ref3) {
771
774
 
772
775
  var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus : null;
773
776
  if (bus) {
774
- bus.$emit(method, args);
777
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
775
778
  } else {
776
779
  win.parent.postMessage({ method: method, query: args }, '*');
777
780
  }
@@ -3876,14 +3879,14 @@ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3876
3879
  /***/ 10:
3877
3880
  /***/ (function(module, exports) {
3878
3881
 
3879
- module.exports = require("sm-crypto");
3882
+ module.exports = require("lodash");
3880
3883
 
3881
3884
  /***/ }),
3882
3885
 
3883
3886
  /***/ 11:
3884
3887
  /***/ (function(module, exports) {
3885
3888
 
3886
- module.exports = require("lodash");
3889
+ module.exports = require("sm-crypto");
3887
3890
 
3888
3891
  /***/ }),
3889
3892
 
@@ -4034,7 +4037,7 @@ module.exports = require("json-bigint");
4034
4037
  // ESM COMPAT FLAG
4035
4038
  __webpack_require__.r(__webpack_exports__);
4036
4039
 
4037
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=367f47a8&
4040
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=e49fd234&
4038
4041
  var render = function () {
4039
4042
  var _vm = this
4040
4043
  var _h = _vm.$createElement
@@ -4235,7 +4238,7 @@ var staticRenderFns = []
4235
4238
  render._withStripped = true
4236
4239
 
4237
4240
 
4238
- // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=367f47a8&
4241
+ // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=e49fd234&
4239
4242
 
4240
4243
  // EXTERNAL MODULE: ./src/config/api.js
4241
4244
  var api = __webpack_require__(1);
@@ -4616,7 +4619,7 @@ var util = __webpack_require__(0);
4616
4619
  beforeCreate: function beforeCreate() {
4617
4620
  var _this = this;
4618
4621
 
4619
- this.getTreeData = Object(external_throttle_debounce_["debounce"])(500, function (param) {
4622
+ this.getTreeData = Object(external_throttle_debounce_["throttle"])(500, function (param) {
4620
4623
  _this.getTreeDatas(param);
4621
4624
  });
4622
4625
  },
package/lib/upload.js CHANGED
@@ -114,8 +114,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
114
114
  **/
115
115
 
116
116
  /* eslint-disable indent */
117
- var sm2 = __webpack_require__(10).sm2;
118
- var lodash = __webpack_require__(11);
117
+ var sm2 = __webpack_require__(11).sm2;
118
+ var lodash = __webpack_require__(10);
119
119
 
120
120
 
121
121
 
@@ -591,61 +591,64 @@ var ajaxStream = function ajaxStream(_ref2) {
591
591
  if (line === '') {
592
592
  return;
593
593
  }
594
- if (line.startsWith('data:')) {
595
- var _data = line.replace('data:', '').trim();
596
- if (_data) {
597
- try {
598
- // 假设数据是 JSON 格式
599
- var parsedData = JSON.parse(_data);
600
- info.time = parsedData.time;
601
- info.conversationId = parsedData.conversationId;
602
- var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
603
- var match = parsedData.message.match(thinkRegex);
604
- if (match) {
605
- var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
606
- var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
607
- // 更新 AI 消息内容
608
- info.thinkContent += thinkContent;
609
- info.content += content;
594
+ // if (line.startsWith('data:')) {
595
+ var data = line.startsWith('data:') ? line.replace('data:', '').trim() : line.trim();
596
+ if (data) {
597
+ try {
598
+ // 假设数据是 JSON 格式
599
+ var parsedData = JSON.parse(data);
600
+ info.time = parsedData.time;
601
+ info.conversationId = parsedData.conversationId;
602
+ var thinkRegex = /<think>([\s\S]*?)<\/think>([\s\S]*)?/;
603
+ var match = parsedData.message.match(thinkRegex);
604
+ if (match) {
605
+ var thinkContent = match[1] ? match[1].trim() : ''; // <think> 标签内的数据
606
+ var content = match[2] ? match[2].trim() : ''; // <think> 标签后的数据
607
+ // 更新 AI 消息内容
608
+ info.thinkContent += thinkContent;
609
+ info.content += content;
610
+ } else {
611
+ var startRegex = /<think>([\s\S]*)/;
612
+ var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
613
+ var start = parsedData.message.match(startRegex);
614
+ var end = parsedData.message.match(endRegex);
615
+ if (start) {
616
+ hasThink = true;
617
+ var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
618
+ info.thinkContent += _thinkContent;
619
+ } else if (hasThink === false) {
620
+ info.content += parsedData.message;
621
+ chunks += parsedData.message;
610
622
  } else {
611
- var startRegex = /<think>([\s\S]*)/;
612
- var endRegex = /([\s\S]*?)<\/think>([\s\S]*)?/;
613
- var start = parsedData.message.match(startRegex);
614
- var end = parsedData.message.match(endRegex);
615
- if (start) {
616
- hasThink = true;
617
- var _thinkContent = start[1] ? start[1].trim() : ''; // <think> 标签内的数据
618
- info.thinkContent += _thinkContent;
619
- } else if (hasThink === false) {
623
+ if (end) {
624
+ finishThink = true;
625
+ var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
626
+ var _content = end[2] ? end[2].trim() : '';
627
+ // 更新 AI 消息内容
628
+ info.thinkContent += _thinkContent2;
629
+ info.content += _content;
630
+ chunks += _content;
631
+ } else if (finishThink) {
620
632
  info.content += parsedData.message;
621
633
  chunks += parsedData.message;
622
634
  } else {
623
- if (end) {
624
- finishThink = true;
625
- var _thinkContent2 = end[1] ? end[1].trim() : ''; // <think> 标签后的数据
626
- var _content = end[2] ? end[2].trim() : '';
627
- // 更新 AI 消息内容
628
- info.thinkContent += _thinkContent2;
629
- info.content += _content;
630
- chunks += _content;
631
- } else if (finishThink) {
632
- info.content += parsedData.message;
633
- chunks += parsedData.message;
634
- } else {
635
- info.thinkContent += parsedData.message;
636
- }
635
+ info.thinkContent += parsedData.message;
637
636
  }
638
637
  }
639
- primeval += parsedData.message;
640
- done = parsedData.done;
641
- } catch (parseError) {
642
- console.error('解析数据出错:', parseError);
643
638
  }
639
+ primeval += parsedData.message;
640
+ done = parsedData.done;
641
+ } catch (parseError) {
642
+ remainingData += line;
643
+ console.log('解析数据出错:', parseError);
644
644
  }
645
- } else {
646
- // 保存未处理完的部分数据
647
- remainingData += line + '\n';
648
645
  }
646
+ // }
647
+ // else {
648
+ // console.log('未处理的数据:', line);
649
+ // // 保存未处理完的部分数据
650
+ // remainingData += line.replace('data:', '\ndata:');
651
+ // }
649
652
  });
650
653
  info.primeval = primeval;
651
654
  info.chunk = chunks;
@@ -654,7 +657,7 @@ var ajaxStream = function ajaxStream(_ref2) {
654
657
  partialData = remainingData;
655
658
  progress && progress({ message: info, controller: controller, done: done });
656
659
  }
657
- })).then(function () {
660
+ })).then(function (results) {
658
661
  // 处理请求完成后的信息
659
662
  var originalText = info.content;
660
663
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -663,8 +666,8 @@ var ajaxStream = function ajaxStream(_ref2) {
663
666
  info.thinkContent = match ? match[1].trim() : '';
664
667
  info.content = match ? match[2].trim() : '';
665
668
  }
666
- success && success({ message: info, controller: controller });
667
- }).catch(function () {
669
+ success && success({ message: info, controller: controller, results: results });
670
+ }).catch(function (results) {
668
671
  // 处理请求完成后的信息
669
672
  var originalText = info.content || '';
670
673
  var regex = /<think>([\s\S]*?)<\/think>([\s\S]*)/;
@@ -673,7 +676,7 @@ var ajaxStream = function ajaxStream(_ref2) {
673
676
  info.thinkContent = match ? match[1].trim() : '';
674
677
  info.content = match ? match[2].trim() : '';
675
678
  }
676
- fail && fail({ status: 1, message: info, controller: controller });
679
+ fail && fail({ status: 1, message: info, controller: controller, results: results });
677
680
  });
678
681
  } catch (error) {
679
682
  console.error('聊天请求出错:', error);
@@ -770,7 +773,7 @@ var busEmit = function busEmit(that, _ref3) {
770
773
 
771
774
  var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus : null;
772
775
  if (bus) {
773
- bus.$emit(method, args);
776
+ Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args);
774
777
  } else {
775
778
  win.parent.postMessage({ method: method, query: args }, '*');
776
779
  }
@@ -4155,13 +4158,13 @@ module.exports = require("stompjs");
4155
4158
  /* 10 */
4156
4159
  /***/ (function(module, exports) {
4157
4160
 
4158
- module.exports = require("sm-crypto");
4161
+ module.exports = require("lodash");
4159
4162
 
4160
4163
  /***/ }),
4161
4164
  /* 11 */
4162
4165
  /***/ (function(module, exports) {
4163
4166
 
4164
- module.exports = require("lodash");
4167
+ module.exports = require("sm-crypto");
4165
4168
 
4166
4169
  /***/ }),
4167
4170
  /* 12 */
@@ -4230,8 +4233,8 @@ module.exports = require("js-base64");
4230
4233
  // ESM COMPAT FLAG
4231
4234
  __webpack_require__.r(__webpack_exports__);
4232
4235
 
4233
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=8cc84748&
4234
- var mainvue_type_template_id_8cc84748_render = function () {
4236
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=8bfa53ee&
4237
+ var mainvue_type_template_id_8bfa53ee_render = function () {
4235
4238
  var _vm = this
4236
4239
  var _h = _vm.$createElement
4237
4240
  var _c = _vm._self._c || _h
@@ -4263,7 +4266,7 @@ var mainvue_type_template_id_8cc84748_render = function () {
4263
4266
  previewAdjunct: _vm.host + _vm.previewAdjunct,
4264
4267
  headers: _vm.headers,
4265
4268
  data: _vm.datas,
4266
- "show-info": _vm.showList ? _vm.showInfo : [],
4269
+ "show-info": _vm.showList ? _vm.showInfo : undefined,
4267
4270
  "auto-upload": _vm.autoUpload,
4268
4271
  response: true,
4269
4272
  operate: _vm.operate,
@@ -4273,7 +4276,7 @@ var mainvue_type_template_id_8cc84748_render = function () {
4273
4276
  exclude: _vm.excludes,
4274
4277
  download: _vm.isDownload,
4275
4278
  deleted: _vm.isRemove,
4276
- icons: _vm._icons,
4279
+ fileIcons: _vm._icons,
4277
4280
  picture: _vm._picture,
4278
4281
  "before-upload": _vm.handleBeforeUpload,
4279
4282
  "before-remove": _vm.handleBeforeRemove,
@@ -4612,10 +4615,10 @@ var mainvue_type_template_id_8cc84748_render = function () {
4612
4615
  : _vm._e()
4613
4616
  }
4614
4617
  var staticRenderFns = []
4615
- mainvue_type_template_id_8cc84748_render._withStripped = true
4618
+ mainvue_type_template_id_8bfa53ee_render._withStripped = true
4616
4619
 
4617
4620
 
4618
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=8cc84748&
4621
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=8bfa53ee&
4619
4622
 
4620
4623
  // EXTERNAL MODULE: ./src/config/api.js
4621
4624
  var api = __webpack_require__(1);
@@ -4889,7 +4892,7 @@ var _props;
4889
4892
  },
4890
4893
  listType: {
4891
4894
  type: String,
4892
- default: 'text' // text,picture,picture-card
4895
+ default: 'table' // text,table,picture,picture-card
4893
4896
  },
4894
4897
  operate: {
4895
4898
  type: Boolean,
@@ -4957,7 +4960,7 @@ var _props;
4957
4960
  showInfo: {
4958
4961
  type: Array,
4959
4962
  default: function _default() {
4960
- return ['uploadTime', 'fileSize', 'userName'];
4963
+ return [{ label: '上传时间', field: 'uploadTime', width: 160 }, { label: '大小', field: 'fileSize', width: 100 }, { label: '上传人', field: 'userName', width: 100 }];
4961
4964
  }
4962
4965
  },
4963
4966
  // 上传地址
@@ -5038,7 +5041,7 @@ var _props;
5038
5041
  default: function _default() {
5039
5042
  return api["E" /* getAdjunctProperties */];
5040
5043
  }
5041
- }, _props.icons = {
5044
+ }, _props.fileIcons = {
5042
5045
  type: Object,
5043
5046
  default: function _default() {
5044
5047
  return {};
@@ -5105,7 +5108,7 @@ var _props;
5105
5108
  mp3: 'es-icon-audioo',
5106
5109
  wma: 'es-icon-audioo',
5107
5110
  pdf: 'es-icon-pdf'
5108
- }, this.icons);
5111
+ }, this.fileIcons);
5109
5112
  },
5110
5113
  _picture: function _picture() {
5111
5114
  return _extends({}, picture, this.picture);
@@ -5282,10 +5285,10 @@ var _props;
5282
5285
  beforeCreate: function beforeCreate() {
5283
5286
  var _this = this;
5284
5287
 
5285
- this.getFiles = Object(external_throttle_debounce_["debounce"])(500, function (params) {
5288
+ this.getFiles = Object(external_throttle_debounce_["throttle"])(500, function (params) {
5286
5289
  _this.getFileLists(params);
5287
5290
  });
5288
- this.getAdjunctPropertie = Object(external_throttle_debounce_["debounce"])(500, function () {
5291
+ this.getAdjunctPropertie = Object(external_throttle_debounce_["throttle"])(500, function () {
5289
5292
  _this.getAdjunctProperties();
5290
5293
  });
5291
5294
  },
@@ -5638,7 +5641,7 @@ var _props;
5638
5641
  },
5639
5642
  handleDownloads: function handleDownloads() {
5640
5643
  var url = typeof this.downloads === 'string' ? this.downloads : this.dochubConfig.compressDownloadDocumentUrl || api["nc" /* uploadDownloads */];
5641
- util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : ''));
5644
+ util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : '') + '&businessId=' + this.ownId + '&fileName=文档.zip' + '&bucketCode=' + this.code);
5642
5645
  },
5643
5646
  handleDownload: function handleDownload(file) {
5644
5647
  if (file.status === 'success') {
@@ -5789,7 +5792,7 @@ var componentNormalizer = __webpack_require__(3);
5789
5792
 
5790
5793
  var component = Object(componentNormalizer["a" /* default */])(
5791
5794
  src_mainvue_type_script_lang_js_,
5792
- mainvue_type_template_id_8cc84748_render,
5795
+ mainvue_type_template_id_8bfa53ee_render,
5793
5796
  staticRenderFns,
5794
5797
  false,
5795
5798
  null,