@kg-ui/kg-ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main.common.js +346 -312
- package/lib/main.css +1 -1
- package/lib/main.umd.js +346 -312
- package/lib/main.umd.min.js +3 -3
- package/package.json +2 -2
package/lib/main.common.js
CHANGED
|
@@ -4101,7 +4101,6 @@ const copilotStore_state = {
|
|
|
4101
4101
|
msgList: [],
|
|
4102
4102
|
sendLonding: false,
|
|
4103
4103
|
checkedPluginByBtn: [],
|
|
4104
|
-
plugins: [],
|
|
4105
4104
|
cancleUrl: '',
|
|
4106
4105
|
requestSseing: false,
|
|
4107
4106
|
cancelsse: () => {}
|
|
@@ -4162,13 +4161,7 @@ const mutations = {
|
|
|
4162
4161
|
state.isShowNewTheme = show;
|
|
4163
4162
|
},
|
|
4164
4163
|
setCheckedPluginList(state, plugin) {
|
|
4165
|
-
|
|
4166
|
-
if (index !== -1) {
|
|
4167
|
-
state.checkedPluginByBtn.splice(index, 1);
|
|
4168
|
-
} else {
|
|
4169
|
-
if (state.checkedPluginByBtn.length >= 3) return;
|
|
4170
|
-
state.checkedPluginByBtn.push(plugin);
|
|
4171
|
-
}
|
|
4164
|
+
state.checkedPluginByBtn = state.checkedPluginByBtn === plugin ? {} : plugin;
|
|
4172
4165
|
},
|
|
4173
4166
|
setMsgList(state, msg) {
|
|
4174
4167
|
state.msgList.push(msg);
|
|
@@ -4204,7 +4197,7 @@ const actions = {
|
|
|
4204
4197
|
state,
|
|
4205
4198
|
commit
|
|
4206
4199
|
}, msg) {
|
|
4207
|
-
const plusName = state.checkedPluginByBtn.
|
|
4200
|
+
const plusName = state.checkedPluginByBtn.name;
|
|
4208
4201
|
commit('setMsgList', {
|
|
4209
4202
|
isSend: true,
|
|
4210
4203
|
msg: [msg],
|
|
@@ -4219,8 +4212,8 @@ const actions = {
|
|
|
4219
4212
|
willSendMsg.push(...item.msg);
|
|
4220
4213
|
});
|
|
4221
4214
|
let currentPlugin = state.defaultPlugin;
|
|
4222
|
-
if (state.checkedPluginByBtn.length) {
|
|
4223
|
-
currentPlugin = state.checkedPluginByBtn
|
|
4215
|
+
if (Object.keys(state.checkedPluginByBtn).length) {
|
|
4216
|
+
currentPlugin = state.checkedPluginByBtn;
|
|
4224
4217
|
}
|
|
4225
4218
|
const {
|
|
4226
4219
|
data,
|
|
@@ -4303,7 +4296,7 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
|
4303
4296
|
// ESM COMPAT FLAG
|
|
4304
4297
|
__webpack_require__.r(__webpack_exports__);
|
|
4305
4298
|
|
|
4306
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4299
|
+
// 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/KgTimePicker/main.vue?vue&type=template&id=f6fcc5da&scoped=true
|
|
4307
4300
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"k-time-picker"},[_c('el-dropdown',{attrs:{"trigger":"click","hide-on-click":false},on:{"command":_vm.command,"visible-change":_vm.visibleChange}},[_c('span',{attrs:{"title":_vm.languages['releaseTime'] + ':' + _vm.timeTitleResult}},[_c('span',[_vm._v(_vm._s(_vm.timeTitleResult))]),_c('i',{directives:[{name:"show",rawName:"v-show",value:(!_vm.dropDownVisible),expression:"!dropDownVisible"}],staticClass:"el-icon-arrow-down el-icon--right"}),_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.dropDownVisible),expression:"dropDownVisible"}],staticClass:"el-icon-arrow-up el-icon--right"})]),_c('el-dropdown-menu',{staticClass:"dedup-dropdown",attrs:{"slot":"dropdown"},slot:"dropdown"},[_vm._l((_vm.pureTimeTypeList),function(item){return _c('el-dropdown-item',{key:item,attrs:{"command":item}},[_c('el-radio',{attrs:{"label":item},model:{value:(_vm.currentTimeType),callback:function ($$v) {_vm.currentTimeType=$$v},expression:"currentTimeType"}},[_vm._v(" "+_vm._s(_vm.languages[item])+" ")])],1)}),_c('div',{staticClass:"custom_redio"},[_c('el-radio',{attrs:{"label":_vm.customType},model:{value:(_vm.currentTimeType),callback:function ($$v) {_vm.currentTimeType=$$v},expression:"currentTimeType"}},[_vm._v(" "+_vm._s(_vm.languages['custom'])+" ")])],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentTimeType === _vm.customType),expression:"currentTimeType === customType"}],staticClass:"datepicker_area"},[_c('div',{staticClass:"back_now"},[_c('span',{on:{"click":_vm.datepickerBackNow}},[_c('i',{staticClass:"el-icon-refresh-right"}),_vm._v(" "+_vm._s(_vm.languages['backNow'])+" ")])]),_c('vue-datepicker-local',{attrs:{"clearable":false,"range-separator":"至","format":"YYYY-MM-DD HH:mm:ss"},on:{"confirm":_vm.getCustomerTime,"input":_vm.getCustomerTime},model:{value:(_vm.range),callback:function ($$v) {_vm.range=$$v},expression:"range"}})],1)],2)],1)],1)
|
|
4308
4301
|
}
|
|
4309
4302
|
var staticRenderFns = []
|
|
@@ -4314,7 +4307,7 @@ var staticRenderFns = []
|
|
|
4314
4307
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
4315
4308
|
var es_error_cause = __webpack_require__("d9e2");
|
|
4316
4309
|
|
|
4317
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4310
|
+
// 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!./node_modules/vue-datepicker-local/src/VueDatepickerLocal.vue?vue&type=template&id=48749f78
|
|
4318
4311
|
var VueDatepickerLocalvue_type_template_id_48749f78_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"datepicker",class:{'datepicker-range':_vm.range,'datepicker__clearable':_vm.clearable&&_vm.text&&!_vm.disabled}},[(_vm.type!=='inline')?_c('input',{class:[_vm.show ? 'focus' : '', _vm.inputClass],attrs:{"readonly":"","disabled":_vm.disabled,"placeholder":_vm.placeholder,"name":_vm.name},domProps:{"value":_vm.text}}):_vm._e(),_c('a',{staticClass:"datepicker-close",on:{"click":function($event){$event.stopPropagation();return _vm.cls.apply(null, arguments)}}}),_c('transition',{attrs:{"name":"datepicker-anim"}},[(_vm.show||_vm.type==='inline')?_c('div',{staticClass:"datepicker-popup",class:[_vm.popupClass,{'datepicker-inline':_vm.type==='inline'}],attrs:{"tabindex":"-1"}},[(_vm.range)?[_c('vue-datepicker-local-calendar',{attrs:{"left":true},model:{value:(_vm.dates[0]),callback:function ($$v) {_vm.$set(_vm.dates, 0, $$v)},expression:"dates[0]"}}),_c('vue-datepicker-local-calendar',{attrs:{"right":true},model:{value:(_vm.dates[1]),callback:function ($$v) {_vm.$set(_vm.dates, 1, $$v)},expression:"dates[1]"}})]:[_c('vue-datepicker-local-calendar',{model:{value:(_vm.dates[0]),callback:function ($$v) {_vm.$set(_vm.dates, 0, $$v)},expression:"dates[0]"}})],(_vm.showButtons)?_c('div',{staticClass:"datepicker__buttons"},[_c('button',{staticClass:"datepicker__button-cancel",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.cancel.apply(null, arguments)}}},[_vm._v(_vm._s(this.local.cancelTip))]),_c('button',{staticClass:"datepicker__button-select",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.submit.apply(null, arguments)}}},[_vm._v(_vm._s(this.local.submitTip))])]):_vm._e()],2):_vm._e()])],1)
|
|
4319
4312
|
}
|
|
4320
4313
|
var VueDatepickerLocalvue_type_template_id_48749f78_staticRenderFns = []
|
|
@@ -4322,7 +4315,7 @@ var VueDatepickerLocalvue_type_template_id_48749f78_staticRenderFns = []
|
|
|
4322
4315
|
|
|
4323
4316
|
// CONCATENATED MODULE: ./node_modules/vue-datepicker-local/src/VueDatepickerLocal.vue?vue&type=template&id=48749f78
|
|
4324
4317
|
|
|
4325
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4318
|
+
// 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!./node_modules/vue-datepicker-local/src/VueDatepickerLocalCalendar.vue?vue&type=template&id=29da1c58
|
|
4326
4319
|
var VueDatepickerLocalCalendarvue_type_template_id_29da1c58_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:`${_vm.pre}`},[_c('div',{class:`${_vm.pre}-head`},[_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.showYears),expression:"showYears"}],class:`${_vm.pre}-prev-decade-btn`,on:{"click":function($event){_vm.year-=10}}},[_vm._v("«")]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears),expression:"!showYears"}],class:`${_vm.pre}-prev-year-btn`,on:{"click":function($event){_vm.year--}}},[_vm._v("«")]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears&&!_vm.showMonths),expression:"!showYears&&!showMonths"}],class:`${_vm.pre}-prev-month-btn`,on:{"click":_vm.pm}},[_vm._v("‹")]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.showYears),expression:"showYears"}],class:`${_vm.pre}-year-select`},[_vm._v(_vm._s(_vm.ys+'-'+_vm.ye))]),(_vm.local.yearSuffix)?[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears),expression:"!showYears"}],class:`${_vm.pre}-year-select`,on:{"click":function($event){_vm.showYears=!_vm.showYears}}},[_vm._v(_vm._s(_vm.year)+_vm._s(_vm.local.yearSuffix))]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears&&!_vm.showMonths),expression:"!showYears&&!showMonths"}],class:`${_vm.pre}-month-select`,on:{"click":function($event){_vm.showMonths=!_vm.showMonths}}},[_vm._v(_vm._s(_vm.local.monthsHead[_vm.month]))])]:[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears&&!_vm.showMonths),expression:"!showYears&&!showMonths"}],class:`${_vm.pre}-month-select`,on:{"click":function($event){_vm.showMonths=!_vm.showMonths}}},[_vm._v(_vm._s(_vm.local.monthsHead[_vm.month]))]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears),expression:"!showYears"}],class:`${_vm.pre}-year-select`,on:{"click":function($event){_vm.showYears=!_vm.showYears}}},[_vm._v(_vm._s(_vm.year))])],_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears&&!_vm.showMonths),expression:"!showYears&&!showMonths"}],class:`${_vm.pre}-next-month-btn`,on:{"click":_vm.nm}},[_vm._v("›")]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showYears),expression:"!showYears"}],class:`${_vm.pre}-next-year-btn`,on:{"click":function($event){_vm.year++}}},[_vm._v("»")]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.showYears),expression:"showYears"}],class:`${_vm.pre}-next-decade-btn`,on:{"click":function($event){_vm.year+=10}}},[_vm._v("»")])],2),_c('div',{class:`${_vm.pre}-body`},[_c('div',{class:`${_vm.pre}-days`},[_vm._l((_vm.local.weeks),function(i){return _c('a',{key:i,class:`${_vm.pre}-week`},[_vm._v(_vm._s(i))])}),_vm._l((_vm.days),function(j,i){return _c('a',{key:i,class:[(j.p||j.n)?`${_vm.pre}-date-out`:'',_vm.status(j.y,j.m,j.i,_vm.hour,_vm.minute,_vm.second,'YYYYMMDD')],on:{"click":function($event){_vm.is($event)&&(_vm.day=j.i,_vm.ok(j))}}},[_vm._v(_vm._s(j.i))])})],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMonths),expression:"showMonths"}],class:`${_vm.pre}-months`},_vm._l((_vm.local.months),function(i,j){return _c('a',{key:j,class:[_vm.status(_vm.year,j,_vm.day,_vm.hour,_vm.minute,_vm.second,'YYYYMM')],on:{"click":function($event){_vm.is($event)&&(_vm.showMonths=(_vm.m==='M'),_vm.month=j,(_vm.m==='M'&&_vm.ok('m')))}}},[_vm._v(_vm._s(i))])}),0),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showYears),expression:"showYears"}],class:`${_vm.pre}-years`},_vm._l((_vm.years),function(i,j){return _c('a',{key:j,class:[(j===0||j===11)?`${_vm.pre}-date-out`:'',_vm.status(i,_vm.month,_vm.day,_vm.hour,_vm.minute,_vm.second,'YYYY')],on:{"click":function($event){_vm.is($event)&&(_vm.showYears=(_vm.m==='Y'),_vm.year=i,(_vm.m==='Y'&&_vm.ok('y')))}}},[_vm._v(_vm._s(i))])}),0),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showHours),expression:"showHours"}],class:`${_vm.pre}-hours`},[_c('div',{class:`${_vm.pre}-title`},[_vm._v(_vm._s(_vm.local.hourTip))]),_vm._l((24),function(j,i){return _c('a',{key:i,class:[_vm.status(_vm.year,_vm.month,_vm.day,i,_vm.minute,_vm.second,'YYYYMMDDHH')],on:{"click":function($event){_vm.is($event)&&(_vm.showHours=false,_vm.hour=i,_vm.ok('h'))}}},[_vm._v(_vm._s(i))])})],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMinutes),expression:"showMinutes"}],class:`${_vm.pre}-minutes`},[_c('div',{class:`${_vm.pre}-title`},[_vm._v(_vm._s(_vm.local.minuteTip))]),_vm._l((60),function(j,i){return _c('a',{key:i,class:[_vm.status(_vm.year,_vm.month,_vm.day,_vm.hour,i,_vm.second,'YYYYMMDDHHmm')],on:{"click":function($event){_vm.is($event)&&(_vm.showMinutes=false,_vm.minute=i,_vm.ok('h'))}}},[_vm._v(_vm._s(i))])})],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSeconds),expression:"showSeconds"}],class:`${_vm.pre}-seconds`},[_c('div',{class:`${_vm.pre}-title`},[_vm._v(_vm._s(_vm.local.secondTip))]),_vm._l((60),function(j,i){return _c('a',{key:i,class:[_vm.status(_vm.year,_vm.month,_vm.day,_vm.hour,_vm.minute,i,'YYYYMMDDHHmmss')],on:{"click":function($event){_vm.is($event)&&(_vm.showSeconds=false,_vm.second=i,_vm.ok('h'))}}},[_vm._v(_vm._s(i))])})],2)]),(_vm.m==='H')?_c('div',{class:`${_vm.pre}-foot`},[_c('div',{class:`${_vm.pre}-hour`},[_c('a',{class:{on:_vm.showHours},attrs:{"title":_vm.local.hourTip},on:{"click":function($event){_vm.showHours=!_vm.showHours,_vm.showMinutes=_vm.showSeconds=false}}},[_vm._v(_vm._s(_vm._f("dd")(_vm.hour)))]),_c('span',[_vm._v(":")]),_c('a',{class:{on:_vm.showMinutes},attrs:{"title":_vm.local.minuteTip},on:{"click":function($event){_vm.showMinutes=!_vm.showMinutes,_vm.showHours=_vm.showSeconds=false}}},[_vm._v(_vm._s(_vm._f("dd")(_vm.minute)))]),_c('span',[_vm._v(":")]),_c('a',{class:{on:_vm.showSeconds},attrs:{"title":_vm.local.secondTip},on:{"click":function($event){_vm.showSeconds=!_vm.showSeconds,_vm.showHours=_vm.showMinutes=false}}},[_vm._v(_vm._s(_vm._f("dd")(_vm.second)))])])]):_vm._e()])
|
|
4327
4320
|
}
|
|
4328
4321
|
var VueDatepickerLocalCalendarvue_type_template_id_29da1c58_staticRenderFns = []
|
|
@@ -7237,6 +7230,13 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c
|
|
|
7237
7230
|
});
|
|
7238
7231
|
|
|
7239
7232
|
|
|
7233
|
+
/***/ }),
|
|
7234
|
+
|
|
7235
|
+
/***/ "2ca5":
|
|
7236
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7237
|
+
|
|
7238
|
+
// extracted by mini-css-extract-plugin
|
|
7239
|
+
|
|
7240
7240
|
/***/ }),
|
|
7241
7241
|
|
|
7242
7242
|
/***/ "2d00":
|
|
@@ -7299,6 +7299,17 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
7299
7299
|
};
|
|
7300
7300
|
|
|
7301
7301
|
|
|
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
|
+
|
|
7302
7313
|
/***/ }),
|
|
7303
7314
|
|
|
7304
7315
|
/***/ "2e67":
|
|
@@ -9081,13 +9092,6 @@ module.exports = function (argument) {
|
|
|
9081
9092
|
};
|
|
9082
9093
|
|
|
9083
9094
|
|
|
9084
|
-
/***/ }),
|
|
9085
|
-
|
|
9086
|
-
/***/ "3e66":
|
|
9087
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9088
|
-
|
|
9089
|
-
// extracted by mini-css-extract-plugin
|
|
9090
|
-
|
|
9091
9095
|
/***/ }),
|
|
9092
9096
|
|
|
9093
9097
|
/***/ "40d5":
|
|
@@ -9214,13 +9218,6 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
9214
9218
|
};
|
|
9215
9219
|
|
|
9216
9220
|
|
|
9217
|
-
/***/ }),
|
|
9218
|
-
|
|
9219
|
-
/***/ "4691":
|
|
9220
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9221
|
-
|
|
9222
|
-
// extracted by mini-css-extract-plugin
|
|
9223
|
-
|
|
9224
9221
|
/***/ }),
|
|
9225
9222
|
|
|
9226
9223
|
/***/ "485a":
|
|
@@ -10631,7 +10628,7 @@ module.exports = function (bitmap, value) {
|
|
|
10631
10628
|
// ESM COMPAT FLAG
|
|
10632
10629
|
__webpack_require__.r(__webpack_exports__);
|
|
10633
10630
|
|
|
10634
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
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
|
|
10635
10632
|
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)
|
|
10636
10633
|
}
|
|
10637
10634
|
var staticRenderFns = []
|
|
@@ -10651,7 +10648,7 @@ var style = __webpack_require__("b943");
|
|
|
10651
10648
|
// EXTERNAL MODULE: ./packages/know_ui_v2/style/tailwind.css
|
|
10652
10649
|
var tailwind = __webpack_require__("e535");
|
|
10653
10650
|
|
|
10654
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10651
|
+
// 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
|
|
10655
10652
|
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)
|
|
10656
10653
|
}
|
|
10657
10654
|
var LFiltervue_type_template_id_44cc531c_scoped_true_staticRenderFns = []
|
|
@@ -10659,7 +10656,7 @@ var LFiltervue_type_template_id_44cc531c_scoped_true_staticRenderFns = []
|
|
|
10659
10656
|
|
|
10660
10657
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/LFilter/index.vue?vue&type=template&id=44cc531c&scoped=true
|
|
10661
10658
|
|
|
10662
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10659
|
+
// 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/FilterArea.vue?vue&type=template&id=b4d1465c&scoped=true
|
|
10663
10660
|
var FilterAreavue_type_template_id_b4d1465c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{"name":"fade"}},[(_vm.selProjectId !== 0)?_c('div',{staticClass:"filterAreaWrap filterWrap bg-white mt-1"},[_c('div',{attrs:{"id":"filterWrap"}},[(_vm.showList.length ===0)?[_c('div')]:[_vm._l((_vm.showList),function(filter,rowIndex){return _c('div',{key:filter.label_id},[(rowIndex < 4)?_c('div',{staticClass:"flex justify-between gap-x-5 rowWrap",class:{
|
|
10664
10661
|
multiple: filter.multipleSel,
|
|
10665
10662
|
xinyuan: filter.kind === _vm.EnumFilterKind.XinYuan,
|
|
@@ -10698,7 +10695,7 @@ var FilterAreavue_type_template_id_b4d1465c_scoped_true_staticRenderFns = []
|
|
|
10698
10695
|
|
|
10699
10696
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/Home/LFilter/FilterArea.vue?vue&type=template&id=b4d1465c&scoped=true
|
|
10700
10697
|
|
|
10701
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10698
|
+
// 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/FilterItem.vue?vue&type=template&id=3a70deee&scoped=true
|
|
10702
10699
|
var FilterItemvue_type_template_id_3a70deee_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.multipleSel)?[_c('div',{on:{"mouseenter":function($event){return _vm.handleHoverAccount(true)},"mouseleave":function($event){return _vm.handleHoverAccount(false)}}},[_c('el-link',{staticClass:"tagText gap-1.5",attrs:{"size":"small","link":"","type":_vm.selFilterIds.includes(_vm.subFilter.label_id) ? 'warning' : ''},on:{"click":function($event){return _vm.clickFilter(_vm.subFilter)}}},[_c('span',[_vm._v(" "+_vm._s(_vm.subFilter['name_'+_vm.lang])+" ")])]),(_vm.isShowCount)?[(_vm.fliterCount[_vm.subFilter.label_id])?_c('span',{staticClass:"num",staticStyle:{"color":"#aaa"}},[_vm._v(_vm._s(_vm.fliterCount[_vm.subFilter.label_id].toLocaleString()))]):_vm._e()]:_vm._e()],2)]:[_c('div',{staticClass:"flex items-center text-xs text-[#606266]"},[_c('el-checkbox',{model:{value:(_vm.checkOut),callback:function ($$v) {_vm.checkOut=$$v},expression:"checkOut"}},[_c('span',{staticClass:"tagText"},[_vm._v(" "+_vm._s(_vm.subFilter['name_'+_vm.lang]))])])],1)]],2)
|
|
10703
10700
|
}
|
|
10704
10701
|
var FilterItemvue_type_template_id_3a70deee_scoped_true_staticRenderFns = []
|
|
@@ -10781,7 +10778,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
10781
10778
|
)
|
|
10782
10779
|
|
|
10783
10780
|
/* harmony default export */ var FilterItem = (component.exports);
|
|
10784
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10781
|
+
// 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/FilterItemIcon.vue?vue&type=template&id=4b83b000&scoped=true
|
|
10785
10782
|
var FilterItemIconvue_type_template_id_4b83b000_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"relative",class:{ hover: _vm.showEdit }},[_c('div',{staticClass:"flex items-end",on:{"mouseenter":function($event){return _vm.handleHoverAccount(true)},"mouseleave":function($event){return _vm.handleHoverAccount(false)}}},[_c('el-link',{staticClass:"tagText gap-1.5",attrs:{"size":"small","type":"text"},on:{"click":function($event){return _vm.clickFilter(_vm.subFilter)}}},[_c('el-image',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showEdit),expression:"!showEdit"}],staticStyle:{"width":"103px","height":"36px"},attrs:{"src":_vm.subFilter.icon,"fit":"none"}},[_c('template',{slot:"error"},[_c('div',{staticClass:"image-slot"},[_vm._v(" "+_vm._s(_vm.subFilter['name_'+_vm.lang])+" ")])])],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showEdit),expression:"showEdit"}],staticClass:"truncate flex items-center justify-center",staticStyle:{"width":"103px","height":"36px"}},[_vm._v(" "+_vm._s(_vm.subFilter['name_'+_vm.lang])+" ")])],1),(_vm.isShowCount)?[(_vm.fliterCount[_vm.subFilter.label_id])?_c('span',{staticClass:"num",staticStyle:{"color":"#aaa"}},[_vm._v(_vm._s(_vm.fliterCount[_vm.subFilter.label_id].toLocaleString()))]):_vm._e()]:_vm._e()],2)])
|
|
10786
10783
|
}
|
|
10787
10784
|
var FilterItemIconvue_type_template_id_4b83b000_scoped_true_staticRenderFns = []
|
|
@@ -11482,17 +11479,6 @@ module.exports = {
|
|
|
11482
11479
|
};
|
|
11483
11480
|
|
|
11484
11481
|
|
|
11485
|
-
/***/ }),
|
|
11486
|
-
|
|
11487
|
-
/***/ "6c5a":
|
|
11488
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11489
|
-
|
|
11490
|
-
"use strict";
|
|
11491
|
-
/* 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_19c33e18_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4691");
|
|
11492
|
-
/* 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_19c33e18_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_19c33e18_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
11493
|
-
/* unused harmony reexport * */
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
11482
|
/***/ }),
|
|
11497
11483
|
|
|
11498
11484
|
/***/ "6d3e":
|
|
@@ -16333,6 +16319,13 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
|
16333
16319
|
};
|
|
16334
16320
|
|
|
16335
16321
|
|
|
16322
|
+
/***/ }),
|
|
16323
|
+
|
|
16324
|
+
/***/ "91ae":
|
|
16325
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16326
|
+
|
|
16327
|
+
// extracted by mini-css-extract-plugin
|
|
16328
|
+
|
|
16336
16329
|
/***/ }),
|
|
16337
16330
|
|
|
16338
16331
|
/***/ "94ca":
|
|
@@ -16812,17 +16805,6 @@ module.exports = python;
|
|
|
16812
16805
|
|
|
16813
16806
|
// extracted by mini-css-extract-plugin
|
|
16814
16807
|
|
|
16815
|
-
/***/ }),
|
|
16816
|
-
|
|
16817
|
-
/***/ "985d":
|
|
16818
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16819
|
-
|
|
16820
|
-
"use strict";
|
|
16821
|
-
/* 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_0ec91519_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b429");
|
|
16822
|
-
/* 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_0ec91519_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_0ec91519_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
16823
|
-
/* unused harmony reexport * */
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
16808
|
/***/ }),
|
|
16827
16809
|
|
|
16828
16810
|
/***/ "9bf2":
|
|
@@ -16884,7 +16866,7 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
|
|
|
16884
16866
|
// ESM COMPAT FLAG
|
|
16885
16867
|
__webpack_require__.r(__webpack_exports__);
|
|
16886
16868
|
|
|
16887
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
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
|
|
16888
16870
|
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)])
|
|
16889
16871
|
}
|
|
16890
16872
|
var staticRenderFns = []
|
|
@@ -16892,7 +16874,7 @@ var staticRenderFns = []
|
|
|
16892
16874
|
|
|
16893
16875
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=ed1e4dde&scoped=true
|
|
16894
16876
|
|
|
16895
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16877
|
+
// 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
|
|
16896
16878
|
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)
|
|
16897
16879
|
}
|
|
16898
16880
|
var dialoguevue_type_template_id_1cbde01f_scoped_true_staticRenderFns = []
|
|
@@ -16900,7 +16882,7 @@ var dialoguevue_type_template_id_1cbde01f_scoped_true_staticRenderFns = []
|
|
|
16900
16882
|
|
|
16901
16883
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=1cbde01f&scoped=true
|
|
16902
16884
|
|
|
16903
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16885
|
+
// 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/readMd.vue?vue&type=template&id=3814360f&scoped=true
|
|
16904
16886
|
var readMdvue_type_template_id_3814360f_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{directives:[{name:"highlight",rawName:"v-highlight"}],staticClass:"markdown",domProps:{"innerHTML":_vm._s(_vm.resultHtml)}})])
|
|
16905
16887
|
}
|
|
16906
16888
|
var readMdvue_type_template_id_3814360f_scoped_true_staticRenderFns = []
|
|
@@ -17122,7 +17104,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
17122
17104
|
)
|
|
17123
17105
|
|
|
17124
17106
|
/* harmony default export */ var readMd = (component.exports);
|
|
17125
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17107
|
+
// 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/CopiContent/UserHead.vue?vue&type=template&id=011b9031&scoped=true
|
|
17126
17108
|
var UserHeadvue_type_template_id_011b9031_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"user"},[_c('div',{staticClass:"icon header-avatar rounded-full"},[_c('svg',{attrs:{"viewBox":"0 0 24 24","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M17.755 14a2.249 2.249 0 0 1 2.248 2.25v.918a2.75 2.75 0 0 1-.512 1.598c-1.546 2.164-4.07 3.235-7.49 3.235-3.422 0-5.945-1.072-7.487-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.253 14h11.502ZM12 2.005a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"}})])]),_c('div',{staticClass:"head-label"},[_vm._v("你")])])
|
|
17127
17109
|
}
|
|
17128
17110
|
var UserHeadvue_type_template_id_011b9031_scoped_true_staticRenderFns = []
|
|
@@ -17153,7 +17135,7 @@ var UserHead_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17153
17135
|
)
|
|
17154
17136
|
|
|
17155
17137
|
/* harmony default export */ var UserHead = (UserHead_component.exports);
|
|
17156
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17138
|
+
// 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/CopiContent/AnswerHead.vue?vue&type=template&id=c2abd5b4&scoped=true
|
|
17157
17139
|
var AnswerHeadvue_type_template_id_c2abd5b4_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"answer"},[_c('div',{staticClass:"icon"},[_vm._t("avatar",function(){return [_c('svg',{attrs:{"viewBox":"0 0 48 48","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('g',{attrs:{"clip-path":"url(#clip0_3984_10372)"}},[_c('path',{attrs:{"d":"M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z","fill":"url(#paint0_radial_3984_10372)"}}),_c('path',{attrs:{"d":"M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z","fill":"url(#paint1_radial_3984_10372)"}}),_c('path',{attrs:{"d":"M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z","fill":"url(#paint2_linear_3984_10372)"}}),_c('path',{attrs:{"d":"M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z","fill":"url(#paint3_linear_3984_10372)"}}),_c('path',{attrs:{"d":"M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z","fill":"url(#paint4_radial_3984_10372)"}}),_c('path',{attrs:{"d":"M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z","fill":"url(#paint5_linear_3984_10372)"}})]),_c('defs',[_c('radialGradient',{attrs:{"id":"paint0_radial_3984_10372","cx":"0","cy":"0","r":"1","gradientUnits":"userSpaceOnUse","gradientTransform":"translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)"}},[_c('stop',{attrs:{"offset":"0.0955758","stop-color":"#00AEFF"}}),_c('stop',{attrs:{"offset":"0.773185","stop-color":"#2253CE"}}),_c('stop',{attrs:{"offset":"1","stop-color":"#0736C4"}})],1),_c('radialGradient',{attrs:{"id":"paint1_radial_3984_10372","cx":"0","cy":"0","r":"1","gradientUnits":"userSpaceOnUse","gradientTransform":"translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)"}},[_c('stop',{attrs:{"stop-color":"#FFB657"}}),_c('stop',{attrs:{"offset":"0.633728","stop-color":"#FF5F3D"}}),_c('stop',{attrs:{"offset":"0.923392","stop-color":"#C02B3C"}})],1),_c('linearGradient',{attrs:{"id":"paint2_linear_3984_10372","x1":"11.4526","y1":"6.75624","x2":"13.8689","y2":"35.1765","gradientUnits":"userSpaceOnUse"}},[_c('stop',{attrs:{"offset":"0.156162","stop-color":"#0D91E1"}}),_c('stop',{attrs:{"offset":"0.487484","stop-color":"#52B471"}}),_c('stop',{attrs:{"offset":"0.652394","stop-color":"#98BD42"}}),_c('stop',{attrs:{"offset":"0.937361","stop-color":"#FFC800"}})],1),_c('linearGradient',{attrs:{"id":"paint3_linear_3984_10372","x1":"13.6347","y1":"3","x2":"14.954","y2":"34.0019","gradientUnits":"userSpaceOnUse"}},[_c('stop',{attrs:{"stop-color":"#3DCBFF"}}),_c('stop',{attrs:{"offset":"0.246674","stop-color":"#0588F7","stop-opacity":"0"}})],1),_c('radialGradient',{attrs:{"id":"paint4_radial_3984_10372","cx":"0","cy":"0","r":"1","gradientUnits":"userSpaceOnUse","gradientTransform":"translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)"}},[_c('stop',{attrs:{"offset":"0.0661714","stop-color":"#8C48FF"}}),_c('stop',{attrs:{"offset":"0.5","stop-color":"#F2598A"}}),_c('stop',{attrs:{"offset":"0.895833","stop-color":"#FFB152"}})],1),_c('linearGradient',{attrs:{"id":"paint5_linear_3984_10372","x1":"44.2778","y1":"12.1074","x2":"44.2606","y2":"20.5507","gradientUnits":"userSpaceOnUse"}},[_c('stop',{attrs:{"offset":"0.0581535","stop-color":"#F8ADFA"}}),_c('stop',{attrs:{"offset":"0.708063","stop-color":"#A86EDD","stop-opacity":"0"}})],1),_c('clipPath',{attrs:{"id":"clip0_3984_10372"}},[_c('rect',{attrs:{"width":"48","height":"48","fill":"white"}})])],1)])]})],2),_c('div',{staticClass:"head-label"},[_vm._v(_vm._s(_vm.aiName))])])
|
|
17158
17140
|
}
|
|
17159
17141
|
var AnswerHeadvue_type_template_id_c2abd5b4_scoped_true_staticRenderFns = []
|
|
@@ -17194,7 +17176,7 @@ var AnswerHead_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17194
17176
|
)
|
|
17195
17177
|
|
|
17196
17178
|
/* harmony default export */ var AnswerHead = (AnswerHead_component.exports);
|
|
17197
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17179
|
+
// 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/icons/copy.vue?vue&type=template&id=78ca311e
|
|
17198
17180
|
var copyvue_type_template_id_78ca311e_render = function render(){var _vm=this,_c=_vm._self._c;return _c('svg',{attrs:{"viewBox":"0 0 24 24","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M5.5028 4.62704L5.5 6.75V17.2542C5.5 19.0491 6.95507 20.5042 8.75 20.5042L17.3663 20.5045C17.0573 21.3782 16.224 22.0042 15.2444 22.0042H8.75C6.12665 22.0042 4 19.8776 4 17.2542V6.75C4 5.76929 4.62745 4.93512 5.5028 4.62704ZM17.75 2C18.9926 2 20 3.00736 20 4.25V17.25C20 18.4926 18.9926 19.5 17.75 19.5H8.75C7.50736 19.5 6.5 18.4926 6.5 17.25V4.25C6.5 3.00736 7.50736 2 8.75 2H17.75ZM17.75 3.5H8.75C8.33579 3.5 8 3.83579 8 4.25V17.25C8 17.6642 8.33579 18 8.75 18H17.75C18.1642 18 18.5 17.6642 18.5 17.25V4.25C18.5 3.83579 18.1642 3.5 17.75 3.5Z"}})])
|
|
17199
17181
|
}
|
|
17200
17182
|
var copyvue_type_template_id_78ca311e_staticRenderFns = []
|
|
@@ -17221,7 +17203,7 @@ var copy_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17221
17203
|
)
|
|
17222
17204
|
|
|
17223
17205
|
/* harmony default export */ var copy = (copy_component.exports);
|
|
17224
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17206
|
+
// 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/icons/download.vue?vue&type=template&id=32982189
|
|
17225
17207
|
var downloadvue_type_template_id_32982189_render = function render(){var _vm=this,_c=_vm._self._c;return _c('svg',{attrs:{"viewBox":"0 0 24 24","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M18.2498 20.5009C18.664 20.5008 19 20.8365 19 21.2507C19 21.6649 18.6644 22.0008 18.2502 22.0009L5.25022 22.0047C4.836 22.0048 4.5 21.6691 4.5 21.2549C4.5 20.8407 4.83557 20.5048 5.24978 20.5047L18.2498 20.5009ZM11.6482 2.01271L11.75 2.00586C12.1297 2.00586 12.4435 2.28801 12.4932 2.65409L12.5 2.75586L12.499 16.4409L16.2208 12.7205C16.4871 12.4543 16.9038 12.4301 17.1974 12.648L17.2815 12.7206C17.5477 12.9869 17.5719 13.4036 17.354 13.6972L17.2814 13.7813L12.2837 18.7779C12.0176 19.044 11.6012 19.0683 11.3076 18.8507L11.2235 18.7782L6.22003 13.7816C5.92694 13.4889 5.92661 13.014 6.21931 12.7209C6.48539 12.4545 6.90204 12.43 7.1958 12.6477L7.27997 12.7202L10.999 16.4339L11 2.75586C11 2.37616 11.2822 2.06237 11.6482 2.01271L11.75 2.00586L11.6482 2.01271Z"}})])
|
|
17226
17208
|
}
|
|
17227
17209
|
var downloadvue_type_template_id_32982189_staticRenderFns = []
|
|
@@ -17248,7 +17230,7 @@ var download_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17248
17230
|
)
|
|
17249
17231
|
|
|
17250
17232
|
/* harmony default export */ var download = (download_component.exports);
|
|
17251
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17233
|
+
// 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/icons/like.vue?vue&type=template&id=3bb849e2
|
|
17252
17234
|
var likevue_type_template_id_3bb849e2_render = function render(){var _vm=this,_c=_vm._self._c;return _c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M16.5 5.202c0-2.442-1.14-4.198-3.007-4.198-1.026 0-1.378.601-1.746 2-.075.288-.112.429-.151.567-.101.36-.277.97-.527 1.831a.25.25 0 0 1-.03.065L8.174 9.953a5.884 5.884 0 0 1-2.855 2.327l-.473.18a2.75 2.75 0 0 0-1.716 3.092l.404 2.087a3.25 3.25 0 0 0 2.417 2.537l7.628 1.87a4.75 4.75 0 0 0 5.733-3.44l1.415-5.549a3.25 3.25 0 0 0-3.15-4.053h-1.822c.496-1.633.746-2.893.746-3.802ZM4.6 15.267a1.25 1.25 0 0 1 .78-1.405l.474-.182a7.385 7.385 0 0 0 3.582-2.92l2.867-4.485c.09-.14.159-.294.205-.455.252-.865.428-1.479.53-1.842.044-.154.085-.31.159-.593.19-.722.283-.881.295-.881.868 0 1.507.984 1.507 2.698 0 .885-.326 2.336-.984 4.315a.75.75 0 0 0 .711.987h2.85a1.751 1.751 0 0 1 1.696 2.182l-1.415 5.55a3.25 3.25 0 0 1-3.923 2.353l-7.628-1.87a1.75 1.75 0 0 1-1.301-1.366L4.6 15.267Z"}})])
|
|
17253
17235
|
}
|
|
17254
17236
|
var likevue_type_template_id_3bb849e2_staticRenderFns = []
|
|
@@ -17275,7 +17257,7 @@ var like_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17275
17257
|
)
|
|
17276
17258
|
|
|
17277
17259
|
/* harmony default export */ var like = (like_component.exports);
|
|
17278
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17260
|
+
// 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/icons/notlike.vue?vue&type=template&id=646e792e
|
|
17279
17261
|
var notlikevue_type_template_id_646e792e_render = function render(){var _vm=this,_c=_vm._self._c;return _c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M16.5 17.985c0 2.442-1.14 4.199-3.007 4.199-.975 0-1.341-.543-1.69-1.796l-.207-.772c-.101-.359-.277-.97-.527-1.831a.25.25 0 0 0-.03-.065l-2.866-4.486a5.884 5.884 0 0 0-2.855-2.326l-.473-.181A2.75 2.75 0 0 1 3.13 7.634l.404-2.086A3.25 3.25 0 0 1 5.95 3.01l7.628-1.87a4.75 4.75 0 0 1 5.733 3.44l1.415 5.55a3.25 3.25 0 0 1-3.15 4.052h-1.822c.496 1.633.746 2.893.746 3.802ZM4.6 7.92a1.25 1.25 0 0 0 .78 1.406l.474.18a7.385 7.385 0 0 1 3.582 2.92l2.867 4.486c.09.141.159.294.205.455l.552 1.92.212.791c.14.488.21.606.22.606.868 0 1.507-.985 1.507-2.7 0-.884-.326-2.335-.984-4.314a.75.75 0 0 1 .711-.987h2.85a1.75 1.75 0 0 0 1.696-2.182l-1.415-5.55a3.25 3.25 0 0 0-3.923-2.353l-7.628 1.87a1.75 1.75 0 0 0-1.301 1.366L4.6 7.92Z"}})])
|
|
17280
17262
|
}
|
|
17281
17263
|
var notlikevue_type_template_id_646e792e_staticRenderFns = []
|
|
@@ -17374,7 +17356,7 @@ var dialogue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
17374
17356
|
)
|
|
17375
17357
|
|
|
17376
17358
|
/* harmony default export */ var dialogue = (dialogue_component.exports);
|
|
17377
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17359
|
+
// 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/index.vue?vue&type=template&id=699521c0&scoped=true
|
|
17378
17360
|
var CopiFootervue_type_template_id_699521c0_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"copilot-footer"},[_c('div',{staticClass:"root"},[_c('SearchInput')],1)])
|
|
17379
17361
|
}
|
|
17380
17362
|
var CopiFootervue_type_template_id_699521c0_scoped_true_staticRenderFns = []
|
|
@@ -17382,24 +17364,91 @@ var CopiFootervue_type_template_id_699521c0_scoped_true_staticRenderFns = []
|
|
|
17382
17364
|
|
|
17383
17365
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/index.vue?vue&type=template&id=699521c0&scoped=true
|
|
17384
17366
|
|
|
17385
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17386
|
-
var
|
|
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:({
|
|
17387
17369
|
color: _vm.textLength && !_vm.sendLonding ? '#1e56ea' : '#dbdbdb'
|
|
17388
17370
|
})})])])]),(_vm.stopDialogue)?_c('div',{staticClass:"disable",attrs:{"click.stop":""}}):_vm._e()])])
|
|
17389
17371
|
}
|
|
17390
|
-
var
|
|
17372
|
+
var SearchInputvue_type_template_id_0345e700_scoped_true_staticRenderFns = []
|
|
17391
17373
|
|
|
17392
17374
|
|
|
17393
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=
|
|
17375
|
+
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=template&id=0345e700&scoped=true
|
|
17394
17376
|
|
|
17395
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17396
|
-
var
|
|
17397
|
-
)?_c('i',{staticClass:"el-icon-check",class:['icon']}):_vm._e()])])}),0),_c('div',{staticClass:"plugin-number"},[_c('span',[_vm._v("已选用"+_vm._s(_vm.checkedPluginByBtn.length)+"/"+_vm._s(_vm.plugins.length < 3 ? _vm.plugins.length : 3)+"个插件")])])]):_vm._e()])],1)
|
|
17377
|
+
// 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
|
+
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("新主题")])])])])
|
|
17398
17379
|
}
|
|
17399
|
-
var
|
|
17380
|
+
var NewThemevue_type_template_id_2cd26986_scoped_true_staticRenderFns = []
|
|
17400
17381
|
|
|
17401
17382
|
|
|
17402
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/
|
|
17383
|
+
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue?vue&type=template&id=2cd26986&scoped=true
|
|
17384
|
+
|
|
17385
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js
|
|
17386
|
+
|
|
17387
|
+
/* harmony default export */ var NewThemevue_type_script_lang_js = ({
|
|
17388
|
+
name: 'NewTheme',
|
|
17389
|
+
// 确保提供组件名
|
|
17390
|
+
data() {
|
|
17391
|
+
return {
|
|
17392
|
+
newthemeWidth: 40
|
|
17393
|
+
};
|
|
17394
|
+
},
|
|
17395
|
+
computed: {
|
|
17396
|
+
...Object(vuex_esm["d" /* mapState */])('copilot', ['isShowNewTheme'])
|
|
17397
|
+
},
|
|
17398
|
+
watch: {
|
|
17399
|
+
isShowNewTheme(val) {
|
|
17400
|
+
if (val) {
|
|
17401
|
+
this.newthemeWidth = 100;
|
|
17402
|
+
} else {
|
|
17403
|
+
this.newthemeWidth = 40;
|
|
17404
|
+
}
|
|
17405
|
+
}
|
|
17406
|
+
},
|
|
17407
|
+
methods: {
|
|
17408
|
+
getNewTheme() {
|
|
17409
|
+
this.$store.commit('copilot/resetCopilot');
|
|
17410
|
+
},
|
|
17411
|
+
mouseEnterBtn() {
|
|
17412
|
+
this.newthemeWidth = 100;
|
|
17413
|
+
},
|
|
17414
|
+
mouseLeaveBtn() {
|
|
17415
|
+
this.newthemeWidth = 40;
|
|
17416
|
+
}
|
|
17417
|
+
}
|
|
17418
|
+
});
|
|
17419
|
+
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue?vue&type=script&lang=js
|
|
17420
|
+
/* harmony default export */ var SearchInput_NewThemevue_type_script_lang_js = (NewThemevue_type_script_lang_js);
|
|
17421
|
+
// EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue?vue&type=style&index=0&id=2cd26986&prod&scoped=true&lang=css
|
|
17422
|
+
var NewThemevue_type_style_index_0_id_2cd26986_prod_scoped_true_lang_css = __webpack_require__("a217");
|
|
17423
|
+
|
|
17424
|
+
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue
|
|
17425
|
+
|
|
17426
|
+
|
|
17427
|
+
|
|
17428
|
+
|
|
17429
|
+
|
|
17430
|
+
|
|
17431
|
+
/* normalize component */
|
|
17432
|
+
|
|
17433
|
+
var NewTheme_component = Object(componentNormalizer["a" /* default */])(
|
|
17434
|
+
SearchInput_NewThemevue_type_script_lang_js,
|
|
17435
|
+
NewThemevue_type_template_id_2cd26986_scoped_true_render,
|
|
17436
|
+
NewThemevue_type_template_id_2cd26986_scoped_true_staticRenderFns,
|
|
17437
|
+
false,
|
|
17438
|
+
null,
|
|
17439
|
+
"2cd26986",
|
|
17440
|
+
null
|
|
17441
|
+
|
|
17442
|
+
)
|
|
17443
|
+
|
|
17444
|
+
/* 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()])
|
|
17447
|
+
}
|
|
17448
|
+
var SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_staticRenderFns = []
|
|
17449
|
+
|
|
17450
|
+
|
|
17451
|
+
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=2cac976f&scoped=true
|
|
17403
17452
|
|
|
17404
17453
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
17405
17454
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
@@ -17712,198 +17761,57 @@ function createDocumentHandler(el, binding, vnode) {
|
|
|
17712
17761
|
}
|
|
17713
17762
|
});
|
|
17714
17763
|
|
|
17715
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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/
|
|
17716
|
-
|
|
17764
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js
|
|
17717
17765
|
|
|
17718
|
-
// import Check from '@iconify-icons/ep/check';
|
|
17719
|
-
// import CopilotStore from '../../../../store/modules/copilot';
|
|
17720
17766
|
|
|
17721
|
-
/* harmony default export */ var
|
|
17767
|
+
/* harmony default export */ var SelectPluginByKeyvue_type_script_lang_js = ({
|
|
17722
17768
|
directives: {
|
|
17723
17769
|
Clickoutside: clickoutside
|
|
17724
17770
|
},
|
|
17725
17771
|
props: {
|
|
17726
|
-
|
|
17772
|
+
isShowSelect: {
|
|
17727
17773
|
type: Boolean,
|
|
17728
17774
|
default: false
|
|
17729
|
-
}
|
|
17730
|
-
},
|
|
17731
|
-
data() {
|
|
17732
|
-
return {
|
|
17733
|
-
selectPluginList: [],
|
|
17734
|
-
hoverIndex: null
|
|
17735
|
-
};
|
|
17736
|
-
},
|
|
17737
|
-
created() {
|
|
17738
|
-
this.selectPluginList = this.plugins;
|
|
17739
|
-
},
|
|
17740
|
-
computed: {
|
|
17741
|
-
...Object(vuex_esm["d" /* mapState */])('copilot', ['checkedPluginByBtn', 'plugins'])
|
|
17742
|
-
},
|
|
17743
|
-
watch: {
|
|
17744
|
-
plugins: {
|
|
17745
|
-
handler(newVal) {
|
|
17746
|
-
this.selectPluginList = newVal;
|
|
17747
|
-
},
|
|
17748
|
-
immediate: true,
|
|
17749
|
-
deep: true
|
|
17750
|
-
}
|
|
17751
|
-
},
|
|
17752
|
-
methods: {
|
|
17753
|
-
onClickOutside() {
|
|
17754
|
-
this.$emit('closePluginByoutside');
|
|
17755
|
-
},
|
|
17756
|
-
choosePlugin(plugin) {
|
|
17757
|
-
this.$store.commit('copilot/setCheckedPluginList', plugin);
|
|
17758
17775
|
},
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
this.selectPluginList = filteredPlugins.length > 0 ? filteredPlugins : this.plugins;
|
|
17776
|
+
activePluInd: {
|
|
17777
|
+
type: Number | null,
|
|
17778
|
+
default: 0
|
|
17763
17779
|
},
|
|
17764
|
-
|
|
17765
|
-
|
|
17780
|
+
selectPluginList: {
|
|
17781
|
+
type: Array
|
|
17766
17782
|
},
|
|
17767
|
-
|
|
17768
|
-
|
|
17769
|
-
|
|
17783
|
+
modal: {
|
|
17784
|
+
type: String,
|
|
17785
|
+
default: 'key'
|
|
17770
17786
|
}
|
|
17771
17787
|
},
|
|
17772
|
-
mounted() {}
|
|
17773
|
-
});
|
|
17774
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPlugin.vue?vue&type=script&lang=js
|
|
17775
|
-
/* harmony default export */ var SearchInput_SelectPluginvue_type_script_lang_js = (SelectPluginvue_type_script_lang_js);
|
|
17776
|
-
// EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPlugin.vue?vue&type=style&index=0&id=5fb4218c&prod&scoped=true&lang=scss
|
|
17777
|
-
var SelectPluginvue_type_style_index_0_id_5fb4218c_prod_scoped_true_lang_scss = __webpack_require__("b2df");
|
|
17778
|
-
|
|
17779
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPlugin.vue
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
17786
|
-
/* normalize component */
|
|
17787
|
-
|
|
17788
|
-
var SelectPlugin_component = Object(componentNormalizer["a" /* default */])(
|
|
17789
|
-
SearchInput_SelectPluginvue_type_script_lang_js,
|
|
17790
|
-
SelectPluginvue_type_template_id_5fb4218c_scoped_true_render,
|
|
17791
|
-
SelectPluginvue_type_template_id_5fb4218c_scoped_true_staticRenderFns,
|
|
17792
|
-
false,
|
|
17793
|
-
null,
|
|
17794
|
-
"5fb4218c",
|
|
17795
|
-
null
|
|
17796
|
-
|
|
17797
|
-
)
|
|
17798
|
-
|
|
17799
|
-
/* harmony default export */ var SelectPlugin = (SelectPlugin_component.exports);
|
|
17800
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"befe98f2-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
|
|
17801
|
-
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("新主题")])])])])
|
|
17802
|
-
}
|
|
17803
|
-
var NewThemevue_type_template_id_2cd26986_scoped_true_staticRenderFns = []
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/NewTheme.vue?vue&type=template&id=2cd26986&scoped=true
|
|
17807
|
-
|
|
17808
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js
|
|
17809
|
-
|
|
17810
|
-
/* harmony default export */ var NewThemevue_type_script_lang_js = ({
|
|
17811
|
-
name: 'NewTheme',
|
|
17812
|
-
// 确保提供组件名
|
|
17813
17788
|
data() {
|
|
17814
|
-
return {
|
|
17815
|
-
newthemeWidth: 40
|
|
17816
|
-
};
|
|
17789
|
+
return {};
|
|
17817
17790
|
},
|
|
17818
17791
|
computed: {
|
|
17819
|
-
...Object(vuex_esm["d" /* mapState */])('copilot', ['
|
|
17792
|
+
...Object(vuex_esm["d" /* mapState */])('copilot', ['checkedPluginByBtn', 'plugins'])
|
|
17820
17793
|
},
|
|
17821
17794
|
watch: {
|
|
17822
|
-
|
|
17823
|
-
if (
|
|
17824
|
-
this.
|
|
17825
|
-
|
|
17826
|
-
|
|
17795
|
+
activePluInd() {
|
|
17796
|
+
if (this.activePluInd !== null) {
|
|
17797
|
+
this.$refs.pluginItem[this.activePluInd].scrollIntoView({
|
|
17798
|
+
block: 'nearest',
|
|
17799
|
+
behavior: 'smooth'
|
|
17800
|
+
});
|
|
17827
17801
|
}
|
|
17828
|
-
}
|
|
17829
|
-
},
|
|
17830
|
-
methods: {
|
|
17831
|
-
getNewTheme() {
|
|
17832
|
-
this.$store.commit('copilot/resetCopilot');
|
|
17833
|
-
},
|
|
17834
|
-
mouseEnterBtn() {
|
|
17835
|
-
this.newthemeWidth = 100;
|
|
17836
17802
|
},
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
/* normalize component */
|
|
17855
|
-
|
|
17856
|
-
var NewTheme_component = Object(componentNormalizer["a" /* default */])(
|
|
17857
|
-
SearchInput_NewThemevue_type_script_lang_js,
|
|
17858
|
-
NewThemevue_type_template_id_2cd26986_scoped_true_render,
|
|
17859
|
-
NewThemevue_type_template_id_2cd26986_scoped_true_staticRenderFns,
|
|
17860
|
-
false,
|
|
17861
|
-
null,
|
|
17862
|
-
"2cd26986",
|
|
17863
|
-
null
|
|
17864
|
-
|
|
17865
|
-
)
|
|
17866
|
-
|
|
17867
|
-
/* harmony default export */ var NewTheme = (NewTheme_component.exports);
|
|
17868
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"befe98f2-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=0ec91519&scoped=true
|
|
17869
|
-
var SelectPluginByKeyvue_type_template_id_0ec91519_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"},[_c('div',{staticClass:"input-container"},[_c('input',{staticClass:"select-input",attrs:{"type":"text","placeholder":"请输入插件名"},on:{"input":_vm.searchPlugin}})]),_c('div',{staticClass:"plugin-content"},_vm._l((_vm.selectPluginList),function(plugin,index){return _c('div',{key:index,staticClass:"plugin-item",class:{ isSel: _vm.checkedPluginByBtn.includes(plugin) },on:{"click":function($event){return _vm.choosePlugin(plugin)}}},[_c('span',[_vm._v(_vm._s(plugin.name))])])}),0)]):_vm._e()])
|
|
17870
|
-
}
|
|
17871
|
-
var SelectPluginByKeyvue_type_template_id_0ec91519_scoped_true_staticRenderFns = []
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=template&id=0ec91519&scoped=true
|
|
17875
|
-
|
|
17876
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
/* harmony default export */ var SelectPluginByKeyvue_type_script_lang_js = ({
|
|
17880
|
-
directives: {
|
|
17881
|
-
Clickoutside: clickoutside
|
|
17882
|
-
},
|
|
17883
|
-
props: {
|
|
17884
|
-
isShowSelect: {
|
|
17885
|
-
type: Boolean,
|
|
17886
|
-
default: false
|
|
17887
|
-
}
|
|
17888
|
-
},
|
|
17889
|
-
data() {
|
|
17890
|
-
return {
|
|
17891
|
-
selectPluginList: []
|
|
17892
|
-
};
|
|
17893
|
-
},
|
|
17894
|
-
computed: {
|
|
17895
|
-
...Object(vuex_esm["d" /* mapState */])('copilot', ['checkedPluginByBtn', 'plugins'])
|
|
17896
|
-
},
|
|
17897
|
-
created() {
|
|
17898
|
-
this.selectPluginList = this.pluginList;
|
|
17899
|
-
},
|
|
17900
|
-
watch: {
|
|
17901
|
-
plugins: {
|
|
17902
|
-
handler(newVal) {
|
|
17903
|
-
this.selectPluginList = newVal;
|
|
17904
|
-
},
|
|
17905
|
-
immediate: true,
|
|
17906
|
-
deep: true
|
|
17803
|
+
isShowSelect(val) {
|
|
17804
|
+
if (val) {
|
|
17805
|
+
if (this.activePluInd !== null) {
|
|
17806
|
+
console.log('this.activePluInd', this.activePluInd);
|
|
17807
|
+
this.$nextTick(() => {
|
|
17808
|
+
this.$refs.pluginItem[this.activePluInd].scrollIntoView({
|
|
17809
|
+
block: 'nearest',
|
|
17810
|
+
behavior: 'smooth'
|
|
17811
|
+
});
|
|
17812
|
+
});
|
|
17813
|
+
}
|
|
17814
|
+
}
|
|
17907
17815
|
}
|
|
17908
17816
|
},
|
|
17909
17817
|
methods: {
|
|
@@ -17913,11 +17821,10 @@ var SelectPluginByKeyvue_type_template_id_0ec91519_scoped_true_staticRenderFns =
|
|
|
17913
17821
|
choosePlugin(plugin) {
|
|
17914
17822
|
// this.$emit('delectText')
|
|
17915
17823
|
this.$store.commit('copilot/setCheckedPluginList', plugin);
|
|
17916
|
-
this
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
this.selectPluginList = filteredPlugins.length > 0 ? filteredPlugins : this.pluginList;
|
|
17824
|
+
if (this.modal === 'key') {
|
|
17825
|
+
this.$emit('deleteText');
|
|
17826
|
+
}
|
|
17827
|
+
this.$emit('close');
|
|
17921
17828
|
}
|
|
17922
17829
|
},
|
|
17923
17830
|
mounted() {
|
|
@@ -17926,8 +17833,8 @@ var SelectPluginByKeyvue_type_template_id_0ec91519_scoped_true_staticRenderFns =
|
|
|
17926
17833
|
});
|
|
17927
17834
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=script&lang=js
|
|
17928
17835
|
/* harmony default export */ var SearchInput_SelectPluginByKeyvue_type_script_lang_js = (SelectPluginByKeyvue_type_script_lang_js);
|
|
17929
|
-
// EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue?vue&type=style&index=0&id=
|
|
17930
|
-
var
|
|
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");
|
|
17931
17838
|
|
|
17932
17839
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue
|
|
17933
17840
|
|
|
@@ -17940,16 +17847,19 @@ var SelectPluginByKeyvue_type_style_index_0_id_0ec91519_prod_scoped_true_lang_sc
|
|
|
17940
17847
|
|
|
17941
17848
|
var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])(
|
|
17942
17849
|
SearchInput_SelectPluginByKeyvue_type_script_lang_js,
|
|
17943
|
-
|
|
17944
|
-
|
|
17850
|
+
SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_render,
|
|
17851
|
+
SelectPluginByKeyvue_type_template_id_2cac976f_scoped_true_staticRenderFns,
|
|
17945
17852
|
false,
|
|
17946
17853
|
null,
|
|
17947
|
-
"
|
|
17854
|
+
"2cac976f",
|
|
17948
17855
|
null
|
|
17949
17856
|
|
|
17950
17857
|
)
|
|
17951
17858
|
|
|
17952
17859
|
/* harmony default export */ var SelectPluginByKey = (SelectPluginByKey_component.exports);
|
|
17860
|
+
// EXTERNAL MODULE: ./packages/know_ui_v2/util.js + 1 modules
|
|
17861
|
+
var util = __webpack_require__("caad");
|
|
17862
|
+
|
|
17953
17863
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js
|
|
17954
17864
|
// import Upload from './Upload.vue';
|
|
17955
17865
|
// import Promotion from '@iconify-icons/ep/promotion';
|
|
@@ -17959,11 +17869,10 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
17959
17869
|
|
|
17960
17870
|
|
|
17961
17871
|
/* harmony default export */ var SearchInputvue_type_script_lang_js = ({
|
|
17962
|
-
name: '
|
|
17872
|
+
name: 'SearchInput',
|
|
17963
17873
|
components: {
|
|
17964
17874
|
// Upload,
|
|
17965
17875
|
// SpeechControl,
|
|
17966
|
-
SelectPlugin: SelectPlugin,
|
|
17967
17876
|
SelectPluginByKey: SelectPluginByKey,
|
|
17968
17877
|
NewTheme: NewTheme
|
|
17969
17878
|
},
|
|
@@ -17971,16 +17880,22 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
17971
17880
|
return {
|
|
17972
17881
|
isShowSelect: false,
|
|
17973
17882
|
cursorPos: 0,
|
|
17883
|
+
cursorCurrentPos: 0,
|
|
17974
17884
|
buttonText: '选择插件',
|
|
17975
17885
|
isShowSelection: false,
|
|
17976
17886
|
outsideClose: false,
|
|
17977
17887
|
isComposing: false,
|
|
17978
17888
|
getBottomtimer: 0,
|
|
17979
|
-
observer: () => {}
|
|
17889
|
+
observer: () => {},
|
|
17890
|
+
activePluInd: 0,
|
|
17891
|
+
timerCursor: null,
|
|
17892
|
+
searchPluText: '',
|
|
17893
|
+
selectPluginList: [],
|
|
17894
|
+
pluginModal: 'key'
|
|
17980
17895
|
};
|
|
17981
17896
|
},
|
|
17982
17897
|
computed: {
|
|
17983
|
-
...Object(vuex_esm["d" /* mapState */])('copilot', ['searchText', 'isInitCopilot', 'sendLonding', 'stopDialogue', 'checkedPluginBykey', 'checkedPluginByBtn']),
|
|
17898
|
+
...Object(vuex_esm["d" /* mapState */])('copilot', ['searchText', 'isInitCopilot', 'sendLonding', 'stopDialogue', 'checkedPluginBykey', 'checkedPluginByBtn', 'plugins']),
|
|
17984
17899
|
textLength() {
|
|
17985
17900
|
const num = this.searchText.length;
|
|
17986
17901
|
if (num === 0) {
|
|
@@ -17994,15 +17909,44 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
17994
17909
|
// 其他需要在组件中使用的 action
|
|
17995
17910
|
]),
|
|
17996
17911
|
|
|
17912
|
+
// 获取光标位置
|
|
17913
|
+
getCursorPosition() {
|
|
17914
|
+
// const editableDiv = this.$refs.coptInput
|
|
17915
|
+
const selection = window.getSelection();
|
|
17916
|
+
const range = selection.getRangeAt(0);
|
|
17917
|
+
return Number(range.startOffset.toString());
|
|
17918
|
+
},
|
|
17919
|
+
// 创建光标
|
|
17920
|
+
moveCursorPosition(position) {
|
|
17921
|
+
// 创建一个Range对象
|
|
17922
|
+
if (this.$refs.coptInput.firstChild) {
|
|
17923
|
+
const range = document.createRange();
|
|
17924
|
+
// 设置Range的起始和结束位置为目标位置
|
|
17925
|
+
range.setStart(this.$refs.coptInput.firstChild, position);
|
|
17926
|
+
range.setEnd(this.$refs.coptInput.firstChild, position);
|
|
17927
|
+
// 创建一个Selection对象
|
|
17928
|
+
const selection = window.getSelection();
|
|
17929
|
+
// 清空当前选择
|
|
17930
|
+
selection.removeAllRanges();
|
|
17931
|
+
// 添加光标
|
|
17932
|
+
selection.addRange(range);
|
|
17933
|
+
this.$refs.coptInput.focus();
|
|
17934
|
+
}
|
|
17935
|
+
},
|
|
17997
17936
|
inputChange(e) {
|
|
17937
|
+
// 弹窗打开时 获取@至光标位置的字符
|
|
17938
|
+
if (this.isShowSelect) {
|
|
17939
|
+
clearTimeout(this.timerCursor);
|
|
17940
|
+
this.timerCursor = setTimeout(() => {
|
|
17941
|
+
this.cursorCurrentPos = this.getCursorPosition();
|
|
17942
|
+
this.searchPluText = e.target.innerText.substring(this.cursorPos + 1, this.cursorCurrentPos);
|
|
17943
|
+
// 搜索插件
|
|
17944
|
+
this.searchPlugin(this.searchPluText);
|
|
17945
|
+
}, 500);
|
|
17946
|
+
}
|
|
17998
17947
|
if (e.target.innerText.length >= 2000) {
|
|
17999
17948
|
e.target.innerText = e.target.innerText.substring(0, 2000);
|
|
18000
|
-
|
|
18001
|
-
range.selectNodeContents(target);
|
|
18002
|
-
range.collapse(false);
|
|
18003
|
-
const sel = window.getSelection();
|
|
18004
|
-
sel.removeAllRanges();
|
|
18005
|
-
sel.addRange(range);
|
|
17949
|
+
this.moveCursorPosition(2000);
|
|
18006
17950
|
}
|
|
18007
17951
|
this.$store.commit('copilot/setSearchText', e.target.innerText);
|
|
18008
17952
|
clearTimeout(this.getBottomtimer);
|
|
@@ -18011,20 +17955,72 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18011
17955
|
root.style.setProperty('--input-bottom-height', `${this.$refs.bottomFooter.offsetHeight}px`);
|
|
18012
17956
|
}, 500);
|
|
18013
17957
|
},
|
|
18014
|
-
|
|
18015
|
-
if (
|
|
18016
|
-
this.
|
|
17958
|
+
searchPlugin(str) {
|
|
17959
|
+
if (str) {
|
|
17960
|
+
const filteredPlugins = this.plugins.filter(item => Object(util["f" /* filterPluginByPinyin */])(item.name, str));
|
|
17961
|
+
this.selectPluginList = filteredPlugins;
|
|
17962
|
+
this.activePluInd = 0;
|
|
17963
|
+
if (!this.selectPluginList.length) {
|
|
17964
|
+
this.isShowSelect = false;
|
|
17965
|
+
}
|
|
17966
|
+
} else {
|
|
17967
|
+
this.selectPluginList = this.plugins;
|
|
18017
17968
|
}
|
|
18018
17969
|
},
|
|
18019
|
-
|
|
18020
|
-
|
|
17970
|
+
handleKeyDown(event) {
|
|
17971
|
+
switch (event.key) {
|
|
17972
|
+
case '@':
|
|
17973
|
+
this.selectPluginByKey();
|
|
17974
|
+
break;
|
|
17975
|
+
case 'ArrowUp':
|
|
17976
|
+
event.preventDefault();
|
|
17977
|
+
if (this.isComposing) return;
|
|
17978
|
+
this.changePlugin('up');
|
|
17979
|
+
break;
|
|
17980
|
+
case 'ArrowDown':
|
|
17981
|
+
event.preventDefault();
|
|
17982
|
+
if (this.isComposing) return;
|
|
17983
|
+
this.changePlugin('down');
|
|
17984
|
+
break;
|
|
17985
|
+
case 'ArrowRight':
|
|
17986
|
+
if (this.isShowSelect) {
|
|
17987
|
+
event.preventDefault();
|
|
17988
|
+
}
|
|
17989
|
+
break;
|
|
17990
|
+
case 'ArrowLeft':
|
|
17991
|
+
if (this.isShowSelect) {
|
|
17992
|
+
event.preventDefault();
|
|
17993
|
+
}
|
|
17994
|
+
break;
|
|
17995
|
+
case 'Backspace':
|
|
17996
|
+
if (!this.isShowSelect) {
|
|
17997
|
+
// 删除到@前面时 打开筛选框
|
|
17998
|
+
const beforeBackspaceText = this.$refs.coptInput.innerText.substring(this.getCursorPosition() - 2, this.getCursorPosition() - 1);
|
|
17999
|
+
if (beforeBackspaceText === '@') {
|
|
18000
|
+
this.isShowSelect = true;
|
|
18001
|
+
this.cursorPos = this.getCursorPosition() - 2;
|
|
18002
|
+
}
|
|
18003
|
+
} else {
|
|
18004
|
+
const delectText = this.$refs.coptInput.innerText.substring(this.getCursorPosition() - 1, this.getCursorPosition());
|
|
18005
|
+
if (delectText === '@') {
|
|
18006
|
+
this.isShowSelect = false;
|
|
18007
|
+
}
|
|
18008
|
+
}
|
|
18009
|
+
default:
|
|
18010
|
+
break;
|
|
18011
|
+
}
|
|
18021
18012
|
},
|
|
18022
|
-
|
|
18023
|
-
this.
|
|
18013
|
+
changePlugin(direct) {
|
|
18014
|
+
if (direct === 'up' && this.activePluInd === 0) return;
|
|
18015
|
+
if (direct === 'down' && this.activePluInd === this.plugins.length - 1) return;
|
|
18016
|
+
this.activePluInd = direct === 'up' ? this.activePluInd - 1 : this.activePluInd + 1;
|
|
18024
18017
|
},
|
|
18025
18018
|
selectPluginByKey() {
|
|
18026
18019
|
this.isShowSelect = true;
|
|
18027
|
-
this.getCursorPosition();
|
|
18020
|
+
this.cursorPos = this.getCursorPosition();
|
|
18021
|
+
},
|
|
18022
|
+
deletePlugin() {
|
|
18023
|
+
this.$store.commit('copilot/setPluginByKey', '');
|
|
18028
18024
|
},
|
|
18029
18025
|
initInput() {
|
|
18030
18026
|
this.$refs.coptInput.innerText = '';
|
|
@@ -18033,16 +18029,10 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18033
18029
|
// 删除@符号
|
|
18034
18030
|
deleteText() {
|
|
18035
18031
|
let textArr = this.$refs.coptInput.innerText.split('');
|
|
18036
|
-
textArr.splice(this.cursorPos -
|
|
18032
|
+
textArr.splice(this.cursorPos, this.cursorCurrentPos - this.cursorPos);
|
|
18037
18033
|
this.$refs.coptInput.innerText = textArr.join('');
|
|
18038
18034
|
this.$store.commit('copilot/setSearchText', this.$refs.coptInput.innerText);
|
|
18039
|
-
|
|
18040
|
-
// 获取光标位置
|
|
18041
|
-
getCursorPosition() {
|
|
18042
|
-
// const editableDiv = this.$refs.coptInput
|
|
18043
|
-
const selection = window.getSelection();
|
|
18044
|
-
const range = selection.getRangeAt(0);
|
|
18045
|
-
this.cursorPos = range.startOffset.toString();
|
|
18035
|
+
this.moveCursorPosition(this.cursorPos);
|
|
18046
18036
|
},
|
|
18047
18037
|
// 监听输入法开始和结束
|
|
18048
18038
|
handleCompositionStart() {
|
|
@@ -18056,6 +18046,12 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18056
18046
|
event.preventDefault();
|
|
18057
18047
|
}
|
|
18058
18048
|
if (this.isComposing) return;
|
|
18049
|
+
if (this.isShowSelect) {
|
|
18050
|
+
this.$store.commit('copilot/setCheckedPluginList', this.selectPluginList[this.activePluInd]);
|
|
18051
|
+
this.deleteText();
|
|
18052
|
+
this.isShowSelect = false;
|
|
18053
|
+
return;
|
|
18054
|
+
}
|
|
18059
18055
|
const sendText = this.searchText;
|
|
18060
18056
|
if (!sendText) return;
|
|
18061
18057
|
if (this.sendLonding) return;
|
|
@@ -18067,13 +18063,18 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18067
18063
|
// 停止打字机效果等其他逻辑
|
|
18068
18064
|
},
|
|
18069
18065
|
|
|
18070
|
-
|
|
18071
|
-
this.
|
|
18072
|
-
this.
|
|
18066
|
+
openPluDialog() {
|
|
18067
|
+
this.pluginModal = 'btn';
|
|
18068
|
+
this.isShowSelect = !this.isShowSelect;
|
|
18069
|
+
if (!this.isShowSelect) {
|
|
18070
|
+
this.pluginModal = 'key';
|
|
18071
|
+
}
|
|
18073
18072
|
},
|
|
18074
18073
|
closePluginByoutside() {
|
|
18075
|
-
|
|
18076
|
-
|
|
18074
|
+
const timerId = setTimeout(() => {
|
|
18075
|
+
this.isShowSelect = false;
|
|
18076
|
+
clearTimeout(timerId);
|
|
18077
|
+
}, 100);
|
|
18077
18078
|
}
|
|
18078
18079
|
},
|
|
18079
18080
|
created() {},
|
|
@@ -18086,7 +18087,9 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18086
18087
|
this.observer = new MutationObserver(() => {
|
|
18087
18088
|
clearTimeout(timer);
|
|
18088
18089
|
timer = setTimeout(() => {
|
|
18089
|
-
|
|
18090
|
+
if (this.$refs.bottomFooter) {
|
|
18091
|
+
root.style.setProperty('--input-bottom-height', `${this.$refs.bottomFooter.offsetHeight}px`);
|
|
18092
|
+
}
|
|
18090
18093
|
}, 500);
|
|
18091
18094
|
});
|
|
18092
18095
|
this.observer.observe(this.$refs.bottomFooter, {
|
|
@@ -18105,20 +18108,48 @@ var SelectPluginByKey_component = Object(componentNormalizer["a" /* default */])
|
|
|
18105
18108
|
// 监听 checkedPluginByBtn 的变化,并立即执行一次
|
|
18106
18109
|
checkedPluginByBtn: {
|
|
18107
18110
|
handler(val) {
|
|
18108
|
-
if (val.length) {
|
|
18111
|
+
if (Object.keys(val).length) {
|
|
18109
18112
|
this.buttonText = '已选插件';
|
|
18110
18113
|
} else {
|
|
18111
18114
|
this.buttonText = '选择插件';
|
|
18112
18115
|
}
|
|
18113
18116
|
},
|
|
18114
18117
|
immediate: true // 立即执行一次 handler
|
|
18118
|
+
},
|
|
18119
|
+
|
|
18120
|
+
plugins: {
|
|
18121
|
+
handler(val) {
|
|
18122
|
+
this.selectPluginList = val;
|
|
18123
|
+
},
|
|
18124
|
+
immediate: true,
|
|
18125
|
+
// 立即执行一次 handler
|
|
18126
|
+
deep: true
|
|
18127
|
+
},
|
|
18128
|
+
isShowSelect: {
|
|
18129
|
+
handler(val) {
|
|
18130
|
+
if (!val) {
|
|
18131
|
+
this.pluginModal = 'key';
|
|
18132
|
+
this.selectPluginList = this.plugins;
|
|
18133
|
+
}
|
|
18134
|
+
}
|
|
18135
|
+
},
|
|
18136
|
+
pluginModal(newVal) {
|
|
18137
|
+
if (newVal === 'btn') {
|
|
18138
|
+
this.activePluInd = null;
|
|
18139
|
+
} else {
|
|
18140
|
+
if (!Object.keys(this.checkedPluginByBtn).length) {
|
|
18141
|
+
this.activePluInd = 0;
|
|
18142
|
+
} else {
|
|
18143
|
+
this.activePluInd = this.plugins.indexOf(this.checkedPluginByBtn);
|
|
18144
|
+
}
|
|
18145
|
+
}
|
|
18115
18146
|
}
|
|
18116
18147
|
}
|
|
18117
18148
|
});
|
|
18118
18149
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=script&lang=js
|
|
18119
18150
|
/* harmony default export */ var CopiFooter_SearchInputvue_type_script_lang_js = (SearchInputvue_type_script_lang_js);
|
|
18120
|
-
// EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue?vue&type=style&index=0&id=
|
|
18121
|
-
var
|
|
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");
|
|
18122
18153
|
|
|
18123
18154
|
// CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/CopiFooter/SearchInput/index.vue
|
|
18124
18155
|
|
|
@@ -18131,11 +18162,11 @@ var SearchInputvue_type_style_index_0_id_19c33e18_prod_lang_scss_scoped_true = _
|
|
|
18131
18162
|
|
|
18132
18163
|
var SearchInput_component = Object(componentNormalizer["a" /* default */])(
|
|
18133
18164
|
CopiFooter_SearchInputvue_type_script_lang_js,
|
|
18134
|
-
|
|
18135
|
-
|
|
18165
|
+
SearchInputvue_type_template_id_0345e700_scoped_true_render,
|
|
18166
|
+
SearchInputvue_type_template_id_0345e700_scoped_true_staticRenderFns,
|
|
18136
18167
|
false,
|
|
18137
18168
|
null,
|
|
18138
|
-
"
|
|
18169
|
+
"0345e700",
|
|
18139
18170
|
null
|
|
18140
18171
|
|
|
18141
18172
|
)
|
|
@@ -19929,17 +19960,6 @@ function typescript(hljs) {
|
|
|
19929
19960
|
module.exports = typescript;
|
|
19930
19961
|
|
|
19931
19962
|
|
|
19932
|
-
/***/ }),
|
|
19933
|
-
|
|
19934
|
-
/***/ "b2df":
|
|
19935
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19936
|
-
|
|
19937
|
-
"use strict";
|
|
19938
|
-
/* 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_SelectPlugin_vue_vue_type_style_index_0_id_5fb4218c_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3e66");
|
|
19939
|
-
/* 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_SelectPlugin_vue_vue_type_style_index_0_id_5fb4218c_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_SelectPlugin_vue_vue_type_style_index_0_id_5fb4218c_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
19940
|
-
/* unused harmony reexport * */
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
19963
|
/***/ }),
|
|
19944
19964
|
|
|
19945
19965
|
/***/ "b3c5":
|
|
@@ -20138,13 +20158,6 @@ function erlang(hljs) {
|
|
|
20138
20158
|
module.exports = erlang;
|
|
20139
20159
|
|
|
20140
20160
|
|
|
20141
|
-
/***/ }),
|
|
20142
|
-
|
|
20143
|
-
/***/ "b429":
|
|
20144
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
20145
|
-
|
|
20146
|
-
// extracted by mini-css-extract-plugin
|
|
20147
|
-
|
|
20148
20161
|
/***/ }),
|
|
20149
20162
|
|
|
20150
20163
|
/***/ "b42e":
|
|
@@ -20451,6 +20464,17 @@ module.exports = __webpack_require__("cee4");
|
|
|
20451
20464
|
|
|
20452
20465
|
// extracted by mini-css-extract-plugin
|
|
20453
20466
|
|
|
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
|
+
|
|
20454
20478
|
/***/ }),
|
|
20455
20479
|
|
|
20456
20480
|
/***/ "bd88":
|
|
@@ -23518,6 +23542,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding *
|
|
|
23518
23542
|
__webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ delay; });
|
|
23519
23543
|
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ deepClone; });
|
|
23520
23544
|
__webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ dependencyTransition; });
|
|
23545
|
+
__webpack_require__.d(__webpack_exports__, "f", function() { return /* binding */ filterPluginByPinyin; });
|
|
23521
23546
|
|
|
23522
23547
|
// UNUSED EXPORTS: checkNameValidity, isEmpty, isDef, get, isObj, deepAssign
|
|
23523
23548
|
|
|
@@ -23708,6 +23733,15 @@ function deepAssign(to, from) {
|
|
|
23708
23733
|
});
|
|
23709
23734
|
return to;
|
|
23710
23735
|
}
|
|
23736
|
+
function filterPluginByPinyin(filter, letter) {
|
|
23737
|
+
let isMatch;
|
|
23738
|
+
isMatch = t.match(filter, letter);
|
|
23739
|
+
if (typeof isMatch === 'object') {
|
|
23740
|
+
isMatch = true;
|
|
23741
|
+
}
|
|
23742
|
+
return isMatch;
|
|
23743
|
+
// console.log("isMatch", filter.name, letter, isMatch);
|
|
23744
|
+
}
|
|
23711
23745
|
|
|
23712
23746
|
/***/ }),
|
|
23713
23747
|
|