@kg-ui/kg-ui 0.0.9 → 0.0.10

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.
@@ -96,6 +96,17 @@ return /******/ (function(modules) { // webpackBootstrap
96
96
  /************************************************************************/
97
97
  /******/ ({
98
98
 
99
+ /***/ "00e6":
100
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
101
+
102
+ "use strict";
103
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_3cfa133a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1b76");
104
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_3cfa133a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_3cfa133a_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
105
+ /* unused harmony reexport * */
106
+
107
+
108
+ /***/ }),
109
+
99
110
  /***/ "00ee":
100
111
  /***/ (function(module, exports, __webpack_require__) {
101
112
 
@@ -4042,14 +4053,15 @@ const sendMsgApi = (sendUrl, data) => {
4042
4053
  const getReport = param => {
4043
4054
  const controller = new AbortController();
4044
4055
  let {
4045
- data
4056
+ data,
4057
+ method = 'POST'
4046
4058
  } = param;
4047
4059
  const headers = Object.assign({
4048
4060
  'Content-Type': 'application/json'
4049
4061
  }, param.headers || {});
4050
4062
  fetchEventSource(param.sendUrl, {
4051
- method: 'POST',
4052
- body: JSON.stringify(data),
4063
+ method,
4064
+ body: data && JSON.stringify(data),
4053
4065
  signal: controller.signal,
4054
4066
  openWhenHidden: true,
4055
4067
  headers,
@@ -4103,6 +4115,7 @@ const copilotStore_state = {
4103
4115
  checkedPluginByBtn: [],
4104
4116
  cancleUrl: '',
4105
4117
  requestSseing: false,
4118
+ isSetOut: false,
4106
4119
  cancelsse: () => {}
4107
4120
  };
4108
4121
  const getters = {};
@@ -4151,8 +4164,15 @@ const mutations = {
4151
4164
  setIsInitCopilot(state, data) {
4152
4165
  state.isInitCopilot = data;
4153
4166
  },
4154
- setSearchText(state, str) {
4167
+ setSearchText(state, {
4168
+ str,
4169
+ isSetOut = false
4170
+ }) {
4155
4171
  state.searchText = str;
4172
+ state.isSetOut = !str || isSetOut;
4173
+ },
4174
+ setIsSetOut(state, value) {
4175
+ state.isSetOut = value;
4156
4176
  },
4157
4177
  setSendLonding(state, isLoading) {
4158
4178
  state.sendLonding = isLoading;
@@ -4197,6 +4217,8 @@ const actions = {
4197
4217
  state,
4198
4218
  commit
4199
4219
  }, msg) {
4220
+ if (!msg) return;
4221
+ if (state.sendLonding) return;
4200
4222
  const plusName = state.checkedPluginByBtn.name;
4201
4223
  commit('setMsgList', {
4202
4224
  isSend: true,
@@ -4206,7 +4228,9 @@ const actions = {
4206
4228
  plusName
4207
4229
  });
4208
4230
  commit('setSendLonding', true);
4209
- commit('setSearchText', '');
4231
+ commit('setSearchText', {
4232
+ str: ''
4233
+ });
4210
4234
  const willSendMsg = [];
4211
4235
  state.msgList.slice(-5).forEach(item => {
4212
4236
  willSendMsg.push(...item.msg);
@@ -4222,6 +4246,7 @@ const actions = {
4222
4246
  commit('setRequestSseing', true);
4223
4247
  commit('setCancelsse', getReport({
4224
4248
  sendUrl: currentPlugin.url,
4249
+ method: currentPlugin.method,
4225
4250
  data,
4226
4251
  headers,
4227
4252
  onerror: () => {
@@ -4267,6 +4292,17 @@ const actions = {
4267
4292
  actions
4268
4293
  });
4269
4294
 
4295
+ /***/ }),
4296
+
4297
+ /***/ "19d3":
4298
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4299
+
4300
+ "use strict";
4301
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2c91042c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a78c");
4302
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2c91042c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2c91042c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
4303
+ /* unused harmony reexport * */
4304
+
4305
+
4270
4306
  /***/ }),
4271
4307
 
4272
4308
  /***/ "1a2d":
@@ -4287,6 +4323,13 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
4287
4323
  };
4288
4324
 
4289
4325
 
4326
+ /***/ }),
4327
+
4328
+ /***/ "1b76":
4329
+ /***/ (function(module, exports, __webpack_require__) {
4330
+
4331
+ // extracted by mini-css-extract-plugin
4332
+
4290
4333
  /***/ }),
4291
4334
 
4292
4335
  /***/ "1d21":
@@ -5530,6 +5573,13 @@ webpackContext.id = "27d5";
5530
5573
 
5531
5574
  /***/ }),
5532
5575
 
5576
+ /***/ "2819":
5577
+ /***/ (function(module, exports, __webpack_require__) {
5578
+
5579
+ // extracted by mini-css-extract-plugin
5580
+
5581
+ /***/ }),
5582
+
5533
5583
  /***/ "2877":
5534
5584
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5535
5585
 
@@ -7230,13 +7280,6 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c
7230
7280
  });
7231
7281
 
7232
7282
 
7233
- /***/ }),
7234
-
7235
- /***/ "2ca5":
7236
- /***/ (function(module, exports, __webpack_require__) {
7237
-
7238
- // extracted by mini-css-extract-plugin
7239
-
7240
7283
  /***/ }),
7241
7284
 
7242
7285
  /***/ "2d00":
@@ -7299,17 +7342,6 @@ module.exports = function createError(message, config, code, request, response)
7299
7342
  };
7300
7343
 
7301
7344
 
7302
- /***/ }),
7303
-
7304
- /***/ "2d97":
7305
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7306
-
7307
- "use strict";
7308
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0345e700_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("91ae");
7309
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0345e700_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0345e700_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
7310
- /* unused harmony reexport * */
7311
-
7312
-
7313
7345
  /***/ }),
7314
7346
 
7315
7347
  /***/ "2e67":
@@ -10591,17 +10623,6 @@ function json(hljs) {
10591
10623
  module.exports = json;
10592
10624
 
10593
10625
 
10594
- /***/ }),
10595
-
10596
- /***/ "5b0a":
10597
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10598
-
10599
- "use strict";
10600
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_732a039e_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6592");
10601
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_732a039e_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_732a039e_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
10602
- /* unused harmony reexport * */
10603
-
10604
-
10605
10626
  /***/ }),
10606
10627
 
10607
10628
  /***/ "5c6c":
@@ -10628,26 +10649,17 @@ module.exports = function (bitmap, value) {
10628
10649
  // ESM COMPAT FLAG
10629
10650
  __webpack_require__.r(__webpack_exports__);
10630
10651
 
10631
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/Home/main.vue?vue&type=template&id=732a039e&scoped=true
10652
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/Home/main.vue?vue&type=template&id=13cf9100&scoped=true
10632
10653
  var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"panel common-layout"},[_c('el-container',{staticStyle:{"height":"100%"}},[_c('el-header',{staticClass:"mb-1",staticStyle:{"padding":"0","height":"auto","width":"100%"}},[_c('LFilter',{ref:"LFilter"})],1)],1)],1)
10633
10654
  }
10634
10655
  var staticRenderFns = []
10635
10656
 
10636
10657
 
10637
- // CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/main.vue?vue&type=template&id=732a039e&scoped=true
10658
+ // CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/main.vue?vue&type=template&id=13cf9100&scoped=true
10638
10659
 
10639
10660
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
10640
10661
  var es_array_push = __webpack_require__("14d9");
10641
10662
 
10642
- // EXTERNAL MODULE: ./packages/know_ui_v2/style/reset.scss
10643
- var style_reset = __webpack_require__("eb5c");
10644
-
10645
- // EXTERNAL MODULE: ./packages/know_ui_v2/style/index.scss
10646
- var style = __webpack_require__("b943");
10647
-
10648
- // EXTERNAL MODULE: ./packages/know_ui_v2/style/tailwind.css
10649
- var tailwind = __webpack_require__("e535");
10650
-
10651
10663
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/Home/LFilter/index.vue?vue&type=template&id=44cc531c&scoped=true
10652
10664
  var LFiltervue_type_template_id_44cc531c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('FilterArea',{ref:"FilterArea"})],1)
10653
10665
  }
@@ -11099,9 +11111,6 @@ var LFilter_component = Object(componentNormalizer["a" /* default */])(
11099
11111
 
11100
11112
 
11101
11113
 
11102
-
11103
-
11104
-
11105
11114
  /* harmony default export */ var mainvue_type_script_lang_js = ({
11106
11115
  name: 'Home',
11107
11116
  components: {
@@ -11271,8 +11280,8 @@ var LFilter_component = Object(componentNormalizer["a" /* default */])(
11271
11280
  });
11272
11281
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/main.vue?vue&type=script&lang=js
11273
11282
  /* harmony default export */ var Home_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
11274
- // EXTERNAL MODULE: ./packages/know_ui_v2/components/Home/main.vue?vue&type=style&index=0&id=732a039e&prod&scoped=true&lang=scss
11275
- var mainvue_type_style_index_0_id_732a039e_prod_scoped_true_lang_scss = __webpack_require__("5b0a");
11283
+ // EXTERNAL MODULE: ./packages/know_ui_v2/components/Home/main.vue?vue&type=style&index=0&id=13cf9100&prod&scoped=true&lang=scss
11284
+ var mainvue_type_style_index_0_id_13cf9100_prod_scoped_true_lang_scss = __webpack_require__("df9c");
11276
11285
 
11277
11286
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/main.vue
11278
11287
 
@@ -11289,7 +11298,7 @@ var main_component = Object(componentNormalizer["a" /* default */])(
11289
11298
  staticRenderFns,
11290
11299
  false,
11291
11300
  null,
11292
- "732a039e",
11301
+ "13cf9100",
11293
11302
  null
11294
11303
 
11295
11304
  )
@@ -11386,13 +11395,6 @@ module.exports = function (key, value) {
11386
11395
  };
11387
11396
 
11388
11397
 
11389
- /***/ }),
11390
-
11391
- /***/ "6592":
11392
- /***/ (function(module, exports, __webpack_require__) {
11393
-
11394
- // extracted by mini-css-extract-plugin
11395
-
11396
11398
  /***/ }),
11397
11399
 
11398
11400
  /***/ "677e":
@@ -16319,13 +16321,6 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
16319
16321
  };
16320
16322
 
16321
16323
 
16322
- /***/ }),
16323
-
16324
- /***/ "91ae":
16325
- /***/ (function(module, exports, __webpack_require__) {
16326
-
16327
- // extracted by mini-css-extract-plugin
16328
-
16329
16324
  /***/ }),
16330
16325
 
16331
16326
  /***/ "94ca":
@@ -16798,6 +16793,17 @@ function python(hljs) {
16798
16793
  module.exports = python;
16799
16794
 
16800
16795
 
16796
+ /***/ }),
16797
+
16798
+ /***/ "9631":
16799
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16800
+
16801
+ "use strict";
16802
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_43afc106_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ec2b");
16803
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_43afc106_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_43afc106_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
16804
+ /* unused harmony reexport * */
16805
+
16806
+
16801
16807
  /***/ }),
16802
16808
 
16803
16809
  /***/ "968d":
@@ -16866,13 +16872,13 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
16866
16872
  // ESM COMPAT FLAG
16867
16873
  __webpack_require__.r(__webpack_exports__);
16868
16874
 
16869
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=ed1e4dde&scoped=true
16875
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=3cfa133a&scoped=true
16870
16876
  var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"wrap",staticStyle:{"height":"100%"}},[_c('div',{staticClass:"copilot-box"},[_c('Dialogue',{scopedSlots:_vm._u([_vm._l((_vm.$slots),function(item,key){return {key:key,fn:function(){return [_vm._t(key)]},proxy:true}})],null,true)}),_c('div',{staticClass:"copilot-bottom-box"},[_c('CopiFooter')],1)],1)])
16871
16877
  }
16872
16878
  var staticRenderFns = []
16873
16879
 
16874
16880
 
16875
- // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=ed1e4dde&scoped=true
16881
+ // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=3cfa133a&scoped=true
16876
16882
 
16877
16883
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=1cbde01f&scoped=true
16878
16884
  var dialoguevue_type_template_id_1cbde01f_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"messageBox",staticClass:"message-box"},[_vm._l((_vm.msgList),function(item,index){return _c('div',{key:item.uuid,staticClass:"message-group"},[_c('div',{staticClass:"msg-head"},[(item.isSend)?_c('UserHead'):_c('AnswerHead',{scopedSlots:_vm._u([{key:"avatar",fn:function(){return [_vm._t("avatar")]},proxy:true}],null,true)})],1),_c('div',{class:{ 'msg-content': true, 'response-content': !item.isSend }},[(!item.isSend && item.plusName)?_c('div',{staticClass:"msg-plus mb-1"},[_vm._v(" 使用: "),_c('span',[_vm._v(_vm._s(item.plusName.replace(/,/g, ' ')))])]):_vm._e(),_c('readMd',{attrs:{"text":item.msg.join(' <br/>'),"isPrinting":item.needPrinting,"scrollToBottom":_vm.scrollToBottom},on:{"printOk":_vm.printOk,"update:isPrinting":function($event){return _vm.$set(item, "needPrinting", $event)},"update:is-printing":function($event){return _vm.$set(item, "needPrinting", $event)}}}),(!item.isSend && !item.needPrinting && item.showOpt)?_c('div',{staticClass:"icon-operates"},[_c('div',{staticClass:"icon-item",attrs:{"title":"点赞"}},[_c('Like')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"不喜欢"}},[_c('Notlike')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"复制"}},[_c('Copy')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"导出"}},[_c('Download')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"播放"}})]):_vm._e()],1)])}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.stopDialogue),expression:"stopDialogue"}],staticClass:"stop-dialogue"},[_c('div',{staticClass:"gray-line"}),_c('div',{staticClass:"title"},[_vm._v("很抱歉,此对话已达到其限制。让我们开始新的聊天。")]),_c('div',{staticClass:"gray-line"})])],2)
@@ -17364,15 +17370,15 @@ var CopiFootervue_type_template_id_699521c0_scoped_true_staticRenderFns = []
17364
17370
 
17365
17371
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/index.vue?vue&type=template&id=699521c0&scoped=true
17366
17372
 
17367
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=0345e700&scoped=true
17368
- var SearchInputvue_type_template_id_0345e700_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"bottomFooter",staticClass:"bottom-footer"},[_c('div',{staticClass:"control-contain"},[_c('SelectPluginByKey',{attrs:{"isShowSelect":_vm.isShowSelect,"selectPluginList":_vm.selectPluginList,"modal":_vm.pluginModal,"activePluInd":_vm.activePluInd},on:{"close":_vm.closePluginByoutside,"deleteText":_vm.deleteText}}),_c('button',{staticClass:"control-button select-button",on:{"click":function($event){$event.stopPropagation();return _vm.openPluDialog.apply(null, arguments)}}},[_c('span',[_vm._v(" "+_vm._s(_vm.buttonText)+" ")]),_c('div',{staticClass:"icon",class:[_vm.isShowSelection && 'rotated']},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"32","height":"32","fill":"currentColor"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M16 0a2.4 2.4 0 012.4 2.4l-.001 11.199L29.6 13.6a2.4 2.4 0 010 4.8l-11.201-.001L18.4 29.6a2.4 2.4 0 01-4.8 0l-.001-11.201L2.4 18.4a2.4 2.4 0 010-4.8l11.199-.001L13.6 2.4A2.4 2.4 0 0116 0z"}})])])]),_c('NewTheme'),(_vm.sendLonding)?_c('button',{staticClass:"control-button stop-responding-button",on:{"click":_vm.handleClickStopBtn}},[_c('div',{staticClass:"stop-icon"}),_c('span',[_vm._v("停止生成")])]):_vm._e()],1),_c('div',{staticClass:"input-container"},[(Object.keys(_vm.checkedPluginByBtn).length)?_c('div',{staticClass:"plugin-town"},[_vm._v(" 已选插件:"+_vm._s(_vm.checkedPluginByBtn.name)+" ")]):_vm._e(),_c('div',{staticClass:"input-row",attrs:{"id":"copiFooter"}},[_c('div',{ref:"coptInput",staticClass:"text-area",attrs:{"contenteditable":"plaintext-only","placeholder":"有问题请尽管问我。。。"},on:{"input":_vm.inputChange,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handlerSendMsg.apply(null, arguments)},_vm.handleKeyDown],"compositionstart":_vm.handleCompositionStart,"compositionend":_vm.handleCompositionEnd}},[_vm._v(" "+_vm._s(_vm.searchText)+" ")])]),_c('div',{staticClass:"bottom-controls"},[_c('div',{staticClass:"bottom-left-controls"}),_c('div',{staticClass:"bottom-right-controls"},[_c('span',{staticClass:"text-sum"},[_c('span',[_vm._v(_vm._s(_vm.textLength))]),_vm._v("/2000")]),_c('button',{staticClass:"send-button",on:{"click":_vm.handlerSendMsg}},[_c('i',{staticClass:"el-icon-s-promotion",class:['icon'],style:({
17373
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=2c91042c&scoped=true
17374
+ var SearchInputvue_type_template_id_2c91042c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"bottomFooter",staticClass:"bottom-footer"},[_c('div',{staticClass:"control-contain"},[_c('SelectPluginByKey',{attrs:{"isShowSelect":_vm.isShowSelect,"selectPluginList":_vm.selectPluginList,"modal":_vm.pluginModal,"activePluInd":_vm.activePluInd},on:{"close":_vm.closePluginByoutside,"deleteText":_vm.deleteText}}),_c('button',{staticClass:"control-button select-button",on:{"click":function($event){$event.stopPropagation();return _vm.openPluDialog.apply(null, arguments)}}},[_c('span',[_vm._v(" "+_vm._s(_vm.buttonText)+" ")]),_c('div',{staticClass:"icon",class:[_vm.isShowSelection && 'rotated']},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"32","height":"32","fill":"currentColor"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M16 0a2.4 2.4 0 012.4 2.4l-.001 11.199L29.6 13.6a2.4 2.4 0 010 4.8l-11.201-.001L18.4 29.6a2.4 2.4 0 01-4.8 0l-.001-11.201L2.4 18.4a2.4 2.4 0 010-4.8l11.199-.001L13.6 2.4A2.4 2.4 0 0116 0z"}})])])]),_c('NewTheme'),(_vm.sendLonding)?_c('button',{staticClass:"control-button stop-responding-button",on:{"click":_vm.handleClickStopBtn}},[_c('div',{staticClass:"stop-icon"}),_c('span',[_vm._v("停止生成")])]):_vm._e()],1),_c('div',{staticClass:"input-container"},[(Object.keys(_vm.checkedPluginByBtn).length)?_c('div',{staticClass:"plugin-town"},[_vm._v(" 已选插件:"+_vm._s(_vm.checkedPluginByBtn.name)+" ")]):_vm._e(),_c('div',{staticClass:"input-row",attrs:{"id":"copiFooter"}},[_c('div',{ref:"coptInput",staticClass:"text-area",attrs:{"contenteditable":"plaintext-only","placeholder":"有问题请尽管问我。。。","spellcheck":"false"},on:{"input":_vm.inputChange,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handlerSendMsg.apply(null, arguments)},_vm.handleKeyDown],"compositionstart":_vm.handleCompositionStart,"compositionend":_vm.handleCompositionEnd}})]),_c('div',{staticClass:"bottom-controls"},[_c('div',{staticClass:"bottom-left-controls"}),_c('div',{staticClass:"bottom-right-controls"},[_c('span',{staticClass:"text-sum"},[_c('span',[_vm._v(_vm._s(_vm.textLength))]),_vm._v("/2000")]),_c('button',{staticClass:"send-button",on:{"click":_vm.handlerSendMsg}},[_c('i',{staticClass:"el-icon-s-promotion",class:['icon'],style:({
17369
17375
  color: _vm.textLength && !_vm.sendLonding ? '#1e56ea' : '#dbdbdb'
17370
17376
  })})])])]),(_vm.stopDialogue)?_c('div',{staticClass:"disable",attrs:{"click.stop":""}}):_vm._e()])])
17371
17377
  }
17372
- var SearchInputvue_type_template_id_0345e700_scoped_true_staticRenderFns = []
17378
+ var SearchInputvue_type_template_id_2c91042c_scoped_true_staticRenderFns = []
17373
17379
 
17374
17380
 
17375
- // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=0345e700&scoped=true
17381
+ // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=2c91042c&scoped=true
17376
17382
 
17377
17383
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue?vue&type=template&id=2cd26986&scoped=true
17378
17384
  var NewThemevue_type_template_id_2cd26986_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"outside-left-container"},[_c('button',{staticClass:"button-compose",style:({ width: _vm.newthemeWidth + 'px' }),attrs:{"type":"button","aria-label":"新主题"},on:{"mouseenter":_vm.mouseEnterBtn,"mouseleave":_vm.mouseLeaveBtn,"click":_vm.getNewTheme}},[_c('div',{staticClass:"button-compose-content"},[_c('div',{staticClass:"button-compose-icon"},[_c('svg',{staticClass:"button-compose-icon",attrs:{"width":"24","viewBox":"0 0 24 24","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"fill":"#fff","d":"M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z"}})])]),_c('div',{staticClass:"button-compose-text"},[_vm._v("新主题")])])])])
@@ -17442,13 +17448,13 @@ var NewTheme_component = Object(componentNormalizer["a" /* default */])(
17442
17448
  )
17443
17449
 
17444
17450
  /* harmony default export */ var NewTheme = (NewTheme_component.exports);
17445
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=2cac976f&scoped=true
17446
- var SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{"name":"fade-scale"}},[(_vm.isShowSelect)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.onClickOutside),expression:"onClickOutside"}],staticClass:"selection",style:({ top: _vm.modal === 'key' ? '-105px' : '-150px' })},[_c('div',{ref:"pluginContent",staticClass:"plugin-content"},_vm._l((_vm.selectPluginList),function(plugin,index){return _c('el-popover',{key:index,attrs:{"offset":0,"placement":"right-start","title":plugin.name,"width":200,"trigger":"hover","content":plugin.describe,"open-delay":200,"close-delay":0}},[_c('div',{ref:"pluginItem",refInFor:true,staticClass:"plugin-item",class:{ isSel: index === _vm.activePluInd },attrs:{"slot":"reference"},on:{"click":function($event){return _vm.choosePlugin(plugin)}},slot:"reference"},[_c('span',[_vm._v(_vm._s(plugin.name))]),_c('div',{staticClass:"plugin-item-right"},[_c('div',{staticClass:"select-radio",class:{ 'active-radio': _vm.checkedPluginByBtn === plugin }},[_c('i',{staticClass:"el-icon-check",class:['icon', { hoverIcon: index === _vm.activePluInd }]})])])])])}),1)]):_vm._e()])
17451
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5ce15629-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=43afc106&scoped=true
17452
+ var SelectPluginByKeyvue_type_template_id_43afc106_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{"name":"fade-scale"}},[(_vm.isShowSelect)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.onClickOutside),expression:"onClickOutside"}],staticClass:"selection",style:({ top: _vm.modal === 'key' ? '-105px' : '-150px' })},[_c('div',{ref:"pluginContent",staticClass:"plugin-content"},_vm._l((_vm.selectPluginList),function(plugin,index){return _c('el-popover',{key:index,attrs:{"offset":0,"placement":"right-start","title":plugin.name,"width":200,"trigger":"hover","content":plugin.introduce,"open-delay":200,"close-delay":0}},[_c('div',{ref:"pluginItem",refInFor:true,staticClass:"plugin-item",class:{ isSel: index === _vm.activePluInd },attrs:{"slot":"reference"},on:{"click":function($event){return _vm.choosePlugin(plugin)}},slot:"reference"},[_c('span',[_vm._v(_vm._s(plugin.name))]),_c('div',{staticClass:"plugin-item-right"},[_c('div',{staticClass:"select-radio",class:{ 'active-radio': _vm.checkedPluginByBtn === plugin }},[_c('i',{staticClass:"el-icon-check",class:['icon', { hoverIcon: index === _vm.activePluInd }]})])])])])}),1)]):_vm._e()])
17447
17453
  }
17448
- var SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_staticRenderFns = []
17454
+ var SelectPluginByKeyvue_type_template_id_43afc106_scoped_true_staticRenderFns = []
17449
17455
 
17450
17456
 
17451
- // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=2cac976f&scoped=true
17457
+ // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=43afc106&scoped=true
17452
17458
 
17453
17459
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
17454
17460
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
@@ -17803,7 +17809,6 @@ function createDocumentHandler(el, binding, vnode) {
17803
17809
  isShowSelect(val) {
17804
17810
  if (val) {
17805
17811
  if (this.activePluInd !== null) {
17806
- console.log('this.activePluInd', this.activePluInd);
17807
17812
  this.$nextTick(() => {
17808
17813
  this.$refs.pluginItem[this.activePluInd].scrollIntoView({
17809
17814
  block: 'nearest',
@@ -17833,8 +17838,8 @@ function createDocumentHandler(el, binding, vnode) {
17833
17838
  });
17834
17839
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=script&lang=js
17835
17840
  /* harmony default export */ var SearchInput_SelectPluginByKeyvue_type_script_lang_js = (SelectPluginByKeyvue_type_script_lang_js);
17836
- // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=style&index=0&id=2cac976f&prod&scoped=true&lang=scss
17837
- var SelectPluginByKeyvue_type_style_index_0_id_2cac976f_prod_scoped_true_lang_scss = __webpack_require__("bcbe6");
17841
+ // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=style&index=0&id=43afc106&prod&scoped=true&lang=scss
17842
+ var SelectPluginByKeyvue_type_style_index_0_id_43afc106_prod_scoped_true_lang_scss = __webpack_require__("9631");
17838
17843
 
17839
17844
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue
17840
17845
 
@@ -17847,11 +17852,11 @@ var SelectPluginByKeyvue_type_style_index_0_id_2cac976f_prod_scoped_true_lang_sc
17847
17852
 
17848
17853
  var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])(
17849
17854
  SearchInput_SelectPluginByKeyvue_type_script_lang_js,
17850
- SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_render,
17851
- SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_staticRenderFns,
17855
+ SelectPluginByKeyvue_type_template_id_43afc106_scoped_true_render,
17856
+ SelectPluginByKeyvue_type_template_id_43afc106_scoped_true_staticRenderFns,
17852
17857
  false,
17853
17858
  null,
17854
- "2cac976f",
17859
+ "43afc106",
17855
17860
  null
17856
17861
 
17857
17862
  )
@@ -17895,7 +17900,7 @@ var util = __webpack_require__("caad");
17895
17900
  };
17896
17901
  },
17897
17902
  computed: {
17898
- ...Object(vuex_esm["d" /* mapState */])('copilot', ['searchText', 'isInitCopilot', 'sendLonding', 'stopDialogue', 'checkedPluginBykey', 'checkedPluginByBtn', 'plugins']),
17903
+ ...Object(vuex_esm["d" /* mapState */])('copilot', ['searchText', 'isSetOut', 'isInitCopilot', 'sendLonding', 'stopDialogue', 'checkedPluginBykey', 'checkedPluginByBtn', 'plugins']),
17899
17904
  textLength() {
17900
17905
  const num = this.searchText.length;
17901
17906
  if (num === 0) {
@@ -17948,7 +17953,9 @@ var util = __webpack_require__("caad");
17948
17953
  e.target.innerText = e.target.innerText.substring(0, 2000);
17949
17954
  this.moveCursorPosition(2000);
17950
17955
  }
17951
- this.$store.commit('copilot/setSearchText', e.target.innerText);
17956
+ this.$store.commit('copilot/setSearchText', {
17957
+ str: e.target.innerText
17958
+ });
17952
17959
  clearTimeout(this.getBottomtimer);
17953
17960
  const root = document.documentElement;
17954
17961
  this.getBottomtimer = setTimeout(() => {
@@ -18022,16 +18029,14 @@ var util = __webpack_require__("caad");
18022
18029
  deletePlugin() {
18023
18030
  this.$store.commit('copilot/setPluginByKey', '');
18024
18031
  },
18025
- initInput() {
18026
- this.$refs.coptInput.innerText = '';
18027
- this.$store.commit('copilot/setSearchText', '');
18028
- },
18029
18032
  // 删除@符号
18030
18033
  deleteText() {
18031
18034
  let textArr = this.$refs.coptInput.innerText.split('');
18032
18035
  textArr.splice(this.cursorPos, this.cursorCurrentPos - this.cursorPos);
18033
18036
  this.$refs.coptInput.innerText = textArr.join('');
18034
- this.$store.commit('copilot/setSearchText', this.$refs.coptInput.innerText);
18037
+ this.$store.commit('copilot/setSearchText', {
18038
+ str: this.$refs.coptInput.innerText
18039
+ });
18035
18040
  this.moveCursorPosition(this.cursorPos);
18036
18041
  },
18037
18042
  // 监听输入法开始和结束
@@ -18053,10 +18058,7 @@ var util = __webpack_require__("caad");
18053
18058
  return;
18054
18059
  }
18055
18060
  const sendText = this.searchText;
18056
- if (!sendText) return;
18057
- if (this.sendLonding) return;
18058
18061
  this.sendMsg(sendText);
18059
- this.initInput();
18060
18062
  },
18061
18063
  handleClickStopBtn() {
18062
18064
  this.cancelRequest();
@@ -18081,7 +18083,9 @@ var util = __webpack_require__("caad");
18081
18083
  mounted() {
18082
18084
  // this.$refs.coptInput.focus();
18083
18085
  this.$refs.coptInput.innerText = '';
18084
- this.$store.commit('copilot/setSearchText', '');
18086
+ this.$store.commit('copilot/setSearchText', {
18087
+ str: ''
18088
+ });
18085
18089
  const root = document.documentElement;
18086
18090
  let timer;
18087
18091
  this.observer = new MutationObserver(() => {
@@ -18098,10 +18102,18 @@ var util = __webpack_require__("caad");
18098
18102
  });
18099
18103
  },
18100
18104
  watch: {
18105
+ isSetOut(val) {
18106
+ if (val) {
18107
+ this.$refs.coptInput.innerText = this.searchText;
18108
+ this.$store.commit('copilot/setIsSetOut', false);
18109
+ }
18110
+ },
18101
18111
  // 点击新主题时清空
18102
18112
  isInitCopilot(newVal) {
18103
18113
  if (newVal) {
18104
- this.initInput();
18114
+ this.$store.commit('copilot/setSearchText', {
18115
+ str: ''
18116
+ });
18105
18117
  this.$store.commit('copilot/setIsInitCopilot', false);
18106
18118
  }
18107
18119
  },
@@ -18148,8 +18160,8 @@ var util = __webpack_require__("caad");
18148
18160
  });
18149
18161
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=script&lang=js
18150
18162
  /* harmony default export */ var CopiFooter_SearchInputvue_type_script_lang_js = (SearchInputvue_type_script_lang_js);
18151
- // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=style&index=0&id=0345e700&prod&lang=scss&scoped=true
18152
- var SearchInputvue_type_style_index_0_id_0345e700_prod_lang_scss_scoped_true = __webpack_require__("2d97");
18163
+ // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=style&index=0&id=2c91042c&prod&lang=scss&scoped=true
18164
+ var SearchInputvue_type_style_index_0_id_2c91042c_prod_lang_scss_scoped_true = __webpack_require__("19d3");
18153
18165
 
18154
18166
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue
18155
18167
 
@@ -18162,11 +18174,11 @@ var SearchInputvue_type_style_index_0_id_0345e700_prod_lang_scss_scoped_true = _
18162
18174
 
18163
18175
  var SearchInput_component = Object(componentNormalizer["a" /* default */])(
18164
18176
  CopiFooter_SearchInputvue_type_script_lang_js,
18165
- SearchInputvue_type_template_id_0345e700_scoped_true_render,
18166
- SearchInputvue_type_template_id_0345e700_scoped_true_staticRenderFns,
18177
+ SearchInputvue_type_template_id_2c91042c_scoped_true_render,
18178
+ SearchInputvue_type_template_id_2c91042c_scoped_true_staticRenderFns,
18167
18179
  false,
18168
18180
  null,
18169
- "0345e700",
18181
+ "2c91042c",
18170
18182
  null
18171
18183
 
18172
18184
  )
@@ -18259,20 +18271,23 @@ var CopiFooter_component = Object(componentNormalizer["a" /* default */])(
18259
18271
  return this.searchText;
18260
18272
  },
18261
18273
  setSearchText(value) {
18262
- this.$store.commit('copilot/setSearchText', value);
18274
+ this.$store.commit('copilot/setSearchText', {
18275
+ str: value,
18276
+ isSetOut: true
18277
+ });
18263
18278
  },
18264
18279
  getMsgList() {
18265
- return this.msgList;
18280
+ return JSON.parse(JSON.stringify(this.msgList));
18266
18281
  },
18267
- setMsgList(value) {
18268
- this.$store.commit('copilot/setMsgList', value);
18282
+ sendMsg(msg) {
18283
+ this.$store.dispatch('copilot/sendMsg', msg);
18269
18284
  }
18270
18285
  }
18271
18286
  });
18272
18287
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=script&lang=js
18273
18288
  /* harmony default export */ var KgCopilot_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
18274
- // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=style&index=0&id=ed1e4dde&prod&scoped=true&lang=scss
18275
- var mainvue_type_style_index_0_id_ed1e4dde_prod_scoped_true_lang_scss = __webpack_require__("cb73");
18289
+ // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=style&index=0&id=3cfa133a&prod&scoped=true&lang=scss
18290
+ var mainvue_type_style_index_0_id_3cfa133a_prod_scoped_true_lang_scss = __webpack_require__("00e6");
18276
18291
 
18277
18292
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue
18278
18293
 
@@ -18289,7 +18304,7 @@ var main_component = Object(componentNormalizer["a" /* default */])(
18289
18304
  staticRenderFns,
18290
18305
  false,
18291
18306
  null,
18292
- "ed1e4dde",
18307
+ "3cfa133a",
18293
18308
  null
18294
18309
 
18295
18310
  )
@@ -19015,6 +19030,13 @@ module.exports = function (METHOD_NAME, argument) {
19015
19030
  };
19016
19031
 
19017
19032
 
19033
+ /***/ }),
19034
+
19035
+ /***/ "a78c":
19036
+ /***/ (function(module, exports, __webpack_require__) {
19037
+
19038
+ // extracted by mini-css-extract-plugin
19039
+
19018
19040
  /***/ }),
19019
19041
 
19020
19042
  /***/ "ab36":
@@ -20424,13 +20446,6 @@ module.exports = function (name) {
20424
20446
  };
20425
20447
 
20426
20448
 
20427
- /***/ }),
20428
-
20429
- /***/ "b943":
20430
- /***/ (function(module, exports, __webpack_require__) {
20431
-
20432
- // extracted by mini-css-extract-plugin
20433
-
20434
20449
  /***/ }),
20435
20450
 
20436
20451
  /***/ "b980":
@@ -20464,17 +20479,6 @@ module.exports = __webpack_require__("cee4");
20464
20479
 
20465
20480
  // extracted by mini-css-extract-plugin
20466
20481
 
20467
- /***/ }),
20468
-
20469
- /***/ "bcbe6":
20470
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20471
-
20472
- "use strict";
20473
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_2cac976f_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2ca5");
20474
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_2cac976f_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectPluginByKey_vue_vue_type_style_index_0_id_2cac976f_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
20475
- /* unused harmony reexport * */
20476
-
20477
-
20478
20482
  /***/ }),
20479
20483
 
20480
20484
  /***/ "bd88":
@@ -23794,17 +23798,6 @@ module.exports = function (O, key, value, options) {
23794
23798
  };
23795
23799
 
23796
23800
 
23797
- /***/ }),
23798
-
23799
- /***/ "cb73":
23800
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23801
-
23802
- "use strict";
23803
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_ed1e4dde_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d54f");
23804
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_ed1e4dde_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_ed1e4dde_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
23805
- /* unused harmony reexport * */
23806
-
23807
-
23808
23801
  /***/ }),
23809
23802
 
23810
23803
  /***/ "cc12":
@@ -24099,13 +24092,6 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
24099
24092
  /* unused harmony reexport * */
24100
24093
 
24101
24094
 
24102
- /***/ }),
24103
-
24104
- /***/ "d54f":
24105
- /***/ (function(module, exports, __webpack_require__) {
24106
-
24107
- // extracted by mini-css-extract-plugin
24108
-
24109
24095
  /***/ }),
24110
24096
 
24111
24097
  /***/ "d58f":
@@ -24626,6 +24612,17 @@ var substr = 'ab'.substr(-1) === 'b'
24626
24612
 
24627
24613
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362")))
24628
24614
 
24615
+ /***/ }),
24616
+
24617
+ /***/ "df9c":
24618
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
24619
+
24620
+ "use strict";
24621
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_13cf9100_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2819");
24622
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_13cf9100_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_13cf9100_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
24623
+ /* unused harmony reexport * */
24624
+
24625
+
24629
24626
  /***/ }),
24630
24627
 
24631
24628
  /***/ "e330":
@@ -24671,13 +24668,6 @@ module.exports = function (argument, $default) {
24671
24668
  /* unused harmony reexport * */
24672
24669
 
24673
24670
 
24674
- /***/ }),
24675
-
24676
- /***/ "e535":
24677
- /***/ (function(module, exports, __webpack_require__) {
24678
-
24679
- // extracted by mini-css-extract-plugin
24680
-
24681
24671
  /***/ }),
24682
24672
 
24683
24673
  /***/ "e5cb":
@@ -24815,13 +24805,6 @@ module.exports = Array.isArray || function isArray(argument) {
24815
24805
  };
24816
24806
 
24817
24807
 
24818
- /***/ }),
24819
-
24820
- /***/ "eb5c":
24821
- /***/ (function(module, exports, __webpack_require__) {
24822
-
24823
- // extracted by mini-css-extract-plugin
24824
-
24825
24808
  /***/ }),
24826
24809
 
24827
24810
  /***/ "eb86":
@@ -24833,6 +24816,13 @@ module.exports = Array.isArray || function isArray(argument) {
24833
24816
  /* unused harmony reexport * */
24834
24817
 
24835
24818
 
24819
+ /***/ }),
24820
+
24821
+ /***/ "ec2b":
24822
+ /***/ (function(module, exports, __webpack_require__) {
24823
+
24824
+ // extracted by mini-css-extract-plugin
24825
+
24836
24826
  /***/ }),
24837
24827
 
24838
24828
  /***/ "ee8c":