agilebuilder-ui 1.1.65-tmp26 → 1.1.65-tmp28
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/dist/index.full.min.js +1381 -1349
- package/dist/style.css +42 -22
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +2 -2
- package/es/src/views/super-icon/index.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue.mjs +7 -0
- package/es/src/views/super-icon/src/index.vue2.mjs +13 -0
- package/es/src/views/super-icon/src/index.vue3.mjs +4 -0
- package/es/src/views/svg-icon/src/svg-icon.vue2.mjs +14 -0
- package/es/style.css +907 -887
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +1 -1
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +2 -2
- package/lib/src/views/super-icon/index.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue.cjs +5 -0
- package/lib/src/views/super-icon/src/index.vue2.cjs +10 -0
- package/lib/src/views/super-icon/src/index.vue3.cjs +2 -0
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +12 -0
- package/lib/style.css +920 -900
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
- package/src/views/layout/components/Menubar/Item.vue +1 -1
- package/src/views/super-icon/index.js +6 -0
- package/src/views/super-icon/src/index.vue +52 -0
- package/src/views/svg-icon/src/svg-icon.vue +5 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const e = require("vue"), t = require("vue-i18n"), a = require("vue-element-plus-x"), n = require("@vueuse/core"), o = require("../../src/utils/auth.cjs"), l = require("./chat-embed-message.cjs"), r = require("./type.cjs"), i = require("./recommendation-message.vue.cjs"), u = require("./chat-addition-data.vue.cjs"), s = require("./chat-bubble-footer.vue.cjs"), c = require("./chat-ai-answer-tip.vue.cjs"), d = require("./header.vue.cjs"), v = require("./chat-sender.vue.cjs");
|
|
3
3
|
require("codemirror"), require("@codemirror/lang-json"), require("@codemirror/state");
|
|
4
|
-
const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./components/answer-home-chart.vue.cjs"), f = require("./components/answer-interaction-data.vue.cjs"),
|
|
4
|
+
const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./components/answer-home-chart.vue.cjs"), f = require("./components/answer-interaction-data.vue.cjs"), g = require("./components/answer-auto-chart.vue.cjs"), p = require("../../src/assets/chat-embed/robot.gif.cjs"), y = require("./sidebar-item.vue.cjs"), k = require("uuid"), w = require("./util/text-file-util.cjs"), S = require("./util/chat-embed-util.cjs"), b = require("./util/mcp-utils.cjs"), E = require("vue-router"), A = { key: 0 }, C = ["src"], N = { class: "chat-content" }, T = { style: { display: "flex", "flex-direction": "row" } }, x = { class: "chat-embed__main_content" }, M = ["href", "title"], q = ["href", "target"], _ = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, V = { key: 1, style: { "margin-top": "5px", width: "100%" } }, D = ["onClick"], B = { style: { display: "none" } }, P = e.defineComponent({ __name: "index", setup(P2) {
|
|
5
5
|
var _a, _b, _c;
|
|
6
|
-
const
|
|
6
|
+
const I = function() {
|
|
7
7
|
try {
|
|
8
8
|
const e2 = E.useRoute();
|
|
9
9
|
return e2.query.customSystem ? String(e2.query.customSystem) : null;
|
|
@@ -11,142 +11,142 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
|
|
|
11
11
|
return console.error("获取customSystem参数失败"), null;
|
|
12
12
|
}
|
|
13
13
|
}();
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
const ge = e.ref(null),
|
|
17
|
-
|
|
14
|
+
const j = e.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: O, cancel: U, data: L, error: F, isLoading: R } = a.useXStream(), { t: $ } = t.useI18n(), H = e.ref(), z = e.ref(true), J = e.ref([]), G = e.ref({}), W = e.ref(false), K = e.ref(r.AI_MODELS.RAGFLOW), X = e.ref({}), Q = {}, Y = e.ref(true), Z = e.ref(null), ee = e.ref(false), te = e.ref(false), ae = e.ref(0), ne = e.ref(""), oe = e.ref("500px"), le = e.ref(250), re = e.ref("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), ie = e.ref(false), ue = e.ref({}), se = e.ref(), ce = e.ref(), de = e.ref(), ve = e.ref(), me = e.ref(), he = e.ref(false);
|
|
15
|
+
let fe = null;
|
|
16
|
+
const ge = e.ref(null), pe = document.documentElement.clientWidth - 100, ye = document.documentElement.clientHeight - 100, { x: ke, y: we, style: Se } = n.useDraggable(H, { initialValue: { x: pe, y: ye }, preventDefault: true, onStart() {
|
|
17
|
+
z.value = true;
|
|
18
18
|
}, onMove(e2) {
|
|
19
|
-
|
|
19
|
+
z.value = false, function(e3) {
|
|
20
20
|
var _a2, _b2;
|
|
21
|
-
const t2 = window.innerWidth - (((_a2 =
|
|
21
|
+
const t2 = window.innerWidth - (((_a2 = H.value) == null ? void 0 : _a2.offsetWidth) || 0), a2 = window.innerHeight - (((_b2 = H.value) == null ? void 0 : _b2.offsetHeight) || 0);
|
|
22
22
|
e3.x = Math.max(0, Math.min(e3.x, t2)), e3.y = Math.max(0, Math.min(e3.y, a2));
|
|
23
23
|
}(e2);
|
|
24
24
|
}, onEnd() {
|
|
25
|
-
|
|
25
|
+
be(), setTimeout(() => z.value = true, 50);
|
|
26
26
|
} });
|
|
27
|
-
function
|
|
28
|
-
if (!
|
|
27
|
+
function be() {
|
|
28
|
+
if (!H.value)
|
|
29
29
|
return;
|
|
30
|
-
const e2 = window.innerWidth -
|
|
31
|
-
|
|
30
|
+
const e2 = window.innerWidth - H.value.offsetWidth, t2 = window.innerHeight - H.value.offsetHeight;
|
|
31
|
+
ke.value > e2 && (ke.value = e2), we.value > t2 && (we.value = t2);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ee(e2) {
|
|
34
34
|
var _a2;
|
|
35
|
-
|
|
35
|
+
Y.value = true, K.value = e2, J.value = [], Q[e2] && 0 !== Q[e2].length ? (J.value = Q[e2], (_a2 = se.value) == null ? void 0 : _a2.scrollToBottom()) : J.value.push(l.defaultMessage);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function Ae(e2 = $("chatEmbed.requestFailed")) {
|
|
38
|
+
J.value.push(l.getMessageTemplate("ai", e2, false, false)), W.value = false;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
function Ce() {
|
|
41
|
+
z.value && (ee.value = !ee.value, _e(), me.value.getHistory());
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function Ne(e2) {
|
|
44
|
+
return X.value[e2] || (X.value[e2] = k.v4().replace(/-/g, "")), X.value[e2];
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
Ee(K.value), e.watch(oe, (e2) => {
|
|
47
47
|
document.documentElement.style.setProperty("--el-bubble-list-max-height", e2);
|
|
48
48
|
}), e.onMounted(() => {
|
|
49
|
-
if (window.addEventListener("resize",
|
|
49
|
+
if (window.addEventListener("resize", be), ce.value) {
|
|
50
50
|
const e2 = new ResizeObserver(() => {
|
|
51
|
-
|
|
51
|
+
_e();
|
|
52
52
|
});
|
|
53
|
-
e2.observe(
|
|
53
|
+
e2.observe(ce.value.$el || ce.value), ce.value._resizeObserver = e2;
|
|
54
54
|
}
|
|
55
55
|
}), e.onBeforeUnmount(() => {
|
|
56
56
|
var _a2;
|
|
57
|
-
((_a2 =
|
|
57
|
+
((_a2 = ce.value) == null ? void 0 : _a2._resizeObserver) && ce.value._resizeObserver.disconnect();
|
|
58
58
|
}), e.onUnmounted(() => {
|
|
59
|
-
window.removeEventListener("resize",
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
window.removeEventListener("resize", be), function() {
|
|
60
|
+
fe && (fe.abort(), fe = null);
|
|
61
|
+
U(), he.value = false, W.value = false;
|
|
62
62
|
}();
|
|
63
63
|
});
|
|
64
|
-
const
|
|
64
|
+
const Te = e.computed(() => {
|
|
65
65
|
var _a2, _b2, _c2;
|
|
66
|
-
if (!
|
|
66
|
+
if (!he.value || !L.value.length)
|
|
67
67
|
return "";
|
|
68
|
-
const e2 =
|
|
68
|
+
const e2 = L.value[L.value.length - 1];
|
|
69
69
|
try {
|
|
70
70
|
const t2 = JSON.parse(e2.data);
|
|
71
71
|
if (t2.isChunk)
|
|
72
|
-
true === t2.data &&
|
|
72
|
+
true === t2.data && G.value.content ? (G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value.showThinkingContent = true, G.value = {}, W.value = false) : xe(t2);
|
|
73
73
|
else {
|
|
74
74
|
if (!((_a2 = t2.data) == null ? void 0 : _a2.id) && true !== t2.data)
|
|
75
|
-
return
|
|
76
|
-
if (t2.data.reference && (((_b2 = t2.data.reference.doc_aggs) == null ? void 0 : _b2.length) && (
|
|
75
|
+
return W.value = false, G.value && (G.value.thinkingStatus = r.MESSAGE_STATUS.END), "";
|
|
76
|
+
if (t2.data.reference && (((_b2 = t2.data.reference.doc_aggs) == null ? void 0 : _b2.length) && (G.value.docAggs = t2.data.reference.doc_aggs), ((_c2 = t2.data.reference.chunks) == null ? void 0 : _c2.length) && (G.value.referenceChunks = t2.data.reference.chunks)), true === t2.data)
|
|
77
77
|
return function() {
|
|
78
|
-
if (
|
|
78
|
+
if (W.value = false, !G.value)
|
|
79
79
|
return;
|
|
80
|
-
|
|
80
|
+
G.value.content = S.replaceAiTipTags(G.value.content), $e();
|
|
81
81
|
}(t2.data.answer), "";
|
|
82
|
-
|
|
82
|
+
xe(t2);
|
|
83
83
|
}
|
|
84
84
|
} catch (e3) {
|
|
85
|
-
console.error("解析数据时出错:", e3),
|
|
85
|
+
console.error("解析数据时出错:", e3), W.value = false;
|
|
86
86
|
}
|
|
87
87
|
return "";
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function xe(e2) {
|
|
90
90
|
const t2 = e2.data.answer;
|
|
91
|
-
if (!t2 || !
|
|
91
|
+
if (!t2 || !G.value)
|
|
92
92
|
return;
|
|
93
93
|
const { thinkingContent: a2, mainContent: n2 } = S.parseAnswerContent(t2);
|
|
94
|
-
a2 && (
|
|
94
|
+
a2 && (G.value.thinkingContent = a2), n2 && (e2.isChunk ? G.value.content += n2 : G.value.content = n2);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
98
|
-
const e2 =
|
|
96
|
+
function Me() {
|
|
97
|
+
if (W.value = false, fe && (fe.abort(), fe = null), he.value && (U(), he.value = false, J.value.length > 0)) {
|
|
98
|
+
const e2 = J.value[J.value.length - 1];
|
|
99
99
|
e2 && "ai" === e2.role && (e2.thinkingStatus = r.MESSAGE_STATUS.END, e2.content || (e2.content = "回答已取消"));
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
G.value && Object.keys(G.value).length > 0 && (G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value = {});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
103
|
+
function qe() {
|
|
104
|
+
te.value = !te.value, _e();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function _e() {
|
|
107
107
|
let t2 = 100;
|
|
108
|
-
|
|
108
|
+
te.value && (t2 = 100), e.nextTick(() => {
|
|
109
109
|
var _a2;
|
|
110
|
-
|
|
111
|
-
const e2 = ((_a2 =
|
|
112
|
-
|
|
110
|
+
te.value ? (de.value.style.height = `calc(${t2}vh)`, de.value.style.width = "calc(100vw)", ne.value = "calc(100vw - var(--chat-padding) * 2) * 0.8") : (de.value.style.height = `calc(${t2}vh - var(--chat-padding) * 2)`, de.value.style.width = 460 + le.value + "px", ne.value = 0.8 * (460 + le.value) + "px");
|
|
111
|
+
const e2 = ((_a2 = ce.value) == null ? void 0 : _a2.offsetHeight) || 80, a2 = window.innerHeight * t2 / 100 - 56 - e2 - 72;
|
|
112
|
+
oe.value = a2 + "px";
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
switch (
|
|
115
|
+
function Ve(e2) {
|
|
116
|
+
switch (W.value && Me(), e2.systemCode = I, he.value = false, e2.aiModel) {
|
|
117
117
|
case r.AI_MODELS.RAGFLOW:
|
|
118
118
|
!function(e3) {
|
|
119
119
|
if (!e3)
|
|
120
120
|
return;
|
|
121
|
-
|
|
121
|
+
L.value = [], J.value.push(l.getMessageTemplate("user", e3, true, false)), W.value = true, X.value[K.value] ? Le(e3) : async function(e4) {
|
|
122
122
|
try {
|
|
123
123
|
const t2 = await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat", { question: e4 });
|
|
124
|
-
|
|
124
|
+
X.value[K.value] = t2.session_id, Le(e4);
|
|
125
125
|
} catch (e5) {
|
|
126
|
-
console.error("Failed to create session:", e5),
|
|
126
|
+
console.error("Failed to create session:", e5), Ae();
|
|
127
127
|
}
|
|
128
128
|
}(e3);
|
|
129
129
|
}(e2.question);
|
|
130
130
|
break;
|
|
131
131
|
case r.AI_MODELS.DATABASE:
|
|
132
132
|
!function(e3) {
|
|
133
|
-
if (
|
|
133
|
+
if (W.value = true, !e3.question)
|
|
134
134
|
return;
|
|
135
135
|
const t2 = l.createUserMessage(e3);
|
|
136
|
-
|
|
136
|
+
J.value.push(t2), G.value = l.createAiMessage(e3, true), J.value.push(G.value);
|
|
137
137
|
try {
|
|
138
|
-
b.default.sendMessageToMcp(e3,
|
|
139
|
-
|
|
138
|
+
b.default.sendMessageToMcp(e3, Ne(K.value)).then(({ answerMessage: e4, errorMessage: t3 }) => {
|
|
139
|
+
W.value = false, t3 ? He(t3, true) : e4 && He(e4);
|
|
140
140
|
}).catch((e4) => {
|
|
141
|
-
|
|
141
|
+
W.value = false, console.error("MCP error:", e4), He("未能返回有效信息", true);
|
|
142
142
|
});
|
|
143
143
|
} catch (e4) {
|
|
144
|
-
|
|
144
|
+
W.value = false, console.error("MCP error:", e4), He("未能返回有效信息", true);
|
|
145
145
|
}
|
|
146
146
|
}(e2);
|
|
147
147
|
break;
|
|
148
148
|
case r.AI_MODELS.DEEPSEEK:
|
|
149
|
-
|
|
149
|
+
Ue(e2);
|
|
150
150
|
break;
|
|
151
151
|
case r.AI_MODELS.INTERACTION:
|
|
152
152
|
!function(e3) {
|
|
@@ -154,9 +154,9 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
|
|
|
154
154
|
return;
|
|
155
155
|
try {
|
|
156
156
|
const t2 = l.createUserMessage(e3);
|
|
157
|
-
|
|
157
|
+
J.value.push(t2), ge.value.parseCommand();
|
|
158
158
|
} catch (e4) {
|
|
159
|
-
console.error("systemInteraction error:", e4),
|
|
159
|
+
console.error("systemInteraction error:", e4), Ae();
|
|
160
160
|
}
|
|
161
161
|
}(e2);
|
|
162
162
|
break;
|
|
@@ -165,17 +165,17 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
|
|
|
165
165
|
if (!e3.question)
|
|
166
166
|
return;
|
|
167
167
|
const t2 = l.createUserMessage(e3);
|
|
168
|
-
|
|
169
|
-
const a2 =
|
|
170
|
-
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/aippt/createPpt", { menuName: e3.menuName, menuCode: e3.menuCode, question: e3.question, additionalDataLabel: e3.additionalDataLabel, additionalData: JSON.stringify(e3.additionalData), fileId: e3.fileId, fileInfos: e3.fileInfos, systemCode:
|
|
168
|
+
J.value.push(t2), he.value = true, W.value = true, G.value = l.createAiMessage(e3, true), J.value.push(G.value);
|
|
169
|
+
const a2 = Ne(K.value);
|
|
170
|
+
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/aippt/createPpt", { menuName: e3.menuName, menuCode: e3.menuCode, question: e3.question, additionalDataLabel: e3.additionalDataLabel, additionalData: JSON.stringify(e3.additionalData), fileId: e3.fileId, fileInfos: e3.fileInfos, systemCode: I, messageId: a2 }).then((e4) => {
|
|
171
171
|
if (e4.fileUrl) {
|
|
172
172
|
const t3 = S.extractFilenameFromUrl(e4.fileUrl) || "点击下载";
|
|
173
|
-
|
|
173
|
+
G.value.content = `PPT已生成:[${t3}](${e4.fileUrl})`;
|
|
174
174
|
} else
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
G.value.content = "PPT生成失败,请稍后重试";
|
|
176
|
+
$e(), W.value = false, window.open(e4.fileUrl, "_blank");
|
|
177
177
|
}).finally(() => {
|
|
178
|
-
|
|
178
|
+
W.value = false;
|
|
179
179
|
});
|
|
180
180
|
}(e2);
|
|
181
181
|
break;
|
|
@@ -183,99 +183,99 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
|
|
|
183
183
|
e2.aiModel;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
186
|
+
function De(e2) {
|
|
187
|
+
Ue({ question: e2.question, additionalData: e2.additionalData, additionalDataLabel: e2.additionalDataLabel, menuName: e2.menuName, menuCode: e2.menuCode, aiModel: K.value });
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Be(e2) {
|
|
190
190
|
if (e2.content) {
|
|
191
|
-
|
|
191
|
+
Ue({ question: e2.content, aiModel: K.value });
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Pe() {
|
|
195
195
|
var _a2;
|
|
196
|
-
(_a2 = ge.value) == null ? void 0 : _a2.newChatSession(),
|
|
197
|
-
if (
|
|
196
|
+
(_a2 = ge.value) == null ? void 0 : _a2.newChatSession(), J.value = [], K.value === r.AI_MODELS.DEEPSEEK && async function() {
|
|
197
|
+
if (X.value[K.value])
|
|
198
198
|
try {
|
|
199
|
-
await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck/clear/" +
|
|
199
|
+
await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck/clear/" + X.value[K.value]);
|
|
200
200
|
} catch (e2) {
|
|
201
|
-
console.error("Failed to clear session:", e2),
|
|
201
|
+
console.error("Failed to clear session:", e2), Ae();
|
|
202
202
|
}
|
|
203
|
-
}(),
|
|
203
|
+
}(), Z.value = null, X.value[K.value] = null, W.value = false, Q[K.value] = [], Ee(K.value);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
205
|
+
function Ie(e2) {
|
|
206
|
+
Q[K.value] = JSON.parse(JSON.stringify(J.value)), Ee(e2);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function je(e2) {
|
|
209
|
+
ue.value = e2, ie.value = true;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Oe(e2, t2) {
|
|
212
212
|
try {
|
|
213
213
|
w.downloadJsonFile(e2, w.generateFileName(t2 || "data"));
|
|
214
214
|
} catch (e3) {
|
|
215
215
|
console.error("下载失败:", e3);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
async function
|
|
218
|
+
async function Ue(e2) {
|
|
219
219
|
if (e2.question)
|
|
220
220
|
try {
|
|
221
221
|
const t2 = l.createUserMessage(e2);
|
|
222
|
-
|
|
223
|
-
const a2 =
|
|
224
|
-
|
|
225
|
-
const n2 = o.getToken(), r2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck", { method: "POST", headers: { "Content-Type": "application/json", authorization: n2 || "" }, body: JSON.stringify({ question: e2.question, messageId: a2, data: JSON.stringify(e2.additionalData), fileId: e2.fileId, systemCode:
|
|
222
|
+
J.value.push(t2), he.value = true, W.value = true;
|
|
223
|
+
const a2 = Ne(K.value);
|
|
224
|
+
G.value = l.createAiMessage(e2, true), J.value.push(G.value), fe = new AbortController();
|
|
225
|
+
const n2 = o.getToken(), r2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck", { method: "POST", headers: { "Content-Type": "application/json", authorization: n2 || "" }, body: JSON.stringify({ question: e2.question, messageId: a2, data: JSON.stringify(e2.additionalData), fileId: e2.fileId, systemCode: I }), signal: fe.signal });
|
|
226
226
|
if (!r2.body)
|
|
227
227
|
throw new Error("No response body");
|
|
228
|
-
await
|
|
228
|
+
await O({ readableStream: r2.body });
|
|
229
229
|
} catch (e3) {
|
|
230
|
-
console.error("DeepSeek error:", e3),
|
|
230
|
+
console.error("DeepSeek error:", e3), Ae();
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
async function
|
|
233
|
+
async function Le(e2) {
|
|
234
234
|
try {
|
|
235
|
-
|
|
236
|
-
const t2 = o.getToken(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e2, stream: true, systemCode:
|
|
235
|
+
he.value = true, G.value = l.createAiMessage({ question: e2 }, true), G.value.messageType = "realtime", J.value.push(G.value), fe = new AbortController();
|
|
236
|
+
const t2 = o.getToken(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e2, stream: true, systemCode: I, session_id: X.value[K.value] }), signal: fe.signal });
|
|
237
237
|
if (!a2.body)
|
|
238
238
|
throw new Error("No response body");
|
|
239
|
-
await
|
|
239
|
+
await O({ readableStream: a2.body });
|
|
240
240
|
} catch (e3) {
|
|
241
241
|
if ("AbortError" === (e3 == null ? void 0 : e3.name))
|
|
242
242
|
return;
|
|
243
|
-
console.error("SSE error:", e3),
|
|
243
|
+
console.error("SSE error:", e3), W.value = false;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Fe(e2) {
|
|
247
247
|
const t2 = e2.doc_name.split(".").pop();
|
|
248
248
|
window.open(`http://101.43.172.105/document/${e2.doc_id}?ext=${t2}&prefix=document`);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
252
|
-
const t2 = { question: e2.content, aiModel:
|
|
253
|
-
if (
|
|
250
|
+
function Re(e2) {
|
|
251
|
+
W.value = true, Ne(K.value);
|
|
252
|
+
const t2 = { question: e2.content, aiModel: K.value };
|
|
253
|
+
if (G.value = l.createAiMessage(t2, false), J.value.push(G.value), G.value.thinkingStatus = r.MESSAGE_STATUS.NONE, e2.url) {
|
|
254
254
|
const t3 = e2.command ? e2.command : e2.content;
|
|
255
|
-
|
|
255
|
+
G.value.link = e2.url, G.value.linkTitle = t3, G.value.content = e2.content;
|
|
256
256
|
} else
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
G.value.content = e2.content;
|
|
258
|
+
G.value = {}, W.value = false;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
260
|
+
function $e(e2 = false) {
|
|
261
|
+
G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value.showThinkingContent = true, G.value.messageType = "history", G.value = {}, Y.value && me.value.addCurrentToSessionHistory(X.value[K.value], J.value), e2 || (Y.value = false);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
263
|
+
function He(e2, t2 = false) {
|
|
264
|
+
G.value.content = e2, t2 && (G.value.thinkingStatus = r.MESSAGE_STATUS.ERROR), $e(t2);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
function ze(t2, a2) {
|
|
267
|
+
Y.value = false, Z.value = t2, X.value[K.value] = t2.sessionId, a2.length > 0 && (J.value = []), e.nextTick(() => {
|
|
268
|
+
J.value = a2, e.nextTick(() => {
|
|
269
269
|
var _a2;
|
|
270
|
-
(_a2 =
|
|
270
|
+
(_a2 = se.value) == null ? void 0 : _a2.scrollToBottom();
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
return (t2, n2) =>
|
|
275
|
-
|
|
276
|
-
}), dialogFullScreen:
|
|
274
|
+
return (t2, n2) => j.value ? (e.openBlock(), e.createElementBlock("div", A, [e.createElementVNode("div", { ref_key: "chatIcon", ref: H, style: e.normalizeStyle([e.unref(Se), { position: "fixed", cursor: "pointer", "z-index": "100" }]) }, [e.createElementVNode("img", { src: e.unref(p), alt: "AI Avatar", onClick: Ce, style: { width: "50px", height: "50px" } }, null, 8, C)], 4), e.createVNode(e.Transition, { name: "slide-up" }, { default: e.withCtx(() => [e.withDirectives(e.createElementVNode("div", { ref_key: "chatContainerRef", ref: de, class: e.normalizeClass(["chat-container", te.value ? "full-screen" : "small-window"]), style: { display: "flex", flexDirection: "row" } }, [e.createVNode(y, { ref_key: "sidebarItemRef", ref: me, style: e.normalizeStyle({ width: le.value + "px" }), onSelectHistoryItem: ze, onNewChatSession: Pe, onUpdateAiHistory: n2[0] || (n2[0] = (e2) => {
|
|
275
|
+
Z.value.value = e2;
|
|
276
|
+
}), dialogFullScreen: te.value, aiModel: K.value }, null, 8, ["style", "dialogFullScreen", "aiModel"]), e.createElementVNode("div", N, [e.createVNode(d, { aiAvatar: re.value, aiModel: K.value, chatSessionId: X.value, dialogFullScreen: te.value, aiHistory: Z.value, onExpandDialog: qe, onShowChatDialog: Ce, onNewChatSession: Pe }, null, 8, ["aiAvatar", "aiModel", "chatSessionId", "dialogFullScreen", "aiHistory"]), e.createElementVNode("div", T, [(e.openBlock(), e.createElementBlock("div", { ref_key: "talkMainRef", ref: ve, class: "chat-embed__main", key: ae.value }, [e.createElementVNode("div", x, [e.createVNode(e.unref(a.BubbleList), { ref_key: "bubbleListRef", ref: se, list: J.value, "max-height": oe.value, "is-fog": true }, { avatar: e.withCtx(({ item: e2 }) => [...n2[2] || (n2[2] = [])]), content: e.withCtx(({ item: t3 }) => {
|
|
277
277
|
var _a2;
|
|
278
|
-
return [t3.isRecommend || null === t3.thinkingContent ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, ["failed" !== t3.messageStatus ? (e.openBlock(), e.createBlock(e.unref(a.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: t3.showThinkingContent, "onUpdate:modelValue": (e2) => t3.showThinkingContent = e2, status: t3.thinkingStatus, "auto-collapse": "", content: t3.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : e.createCommentVNode("", true)], 64)), t3.link ? (e.openBlock(), e.createElementBlock("a", { key: 1, href: t3.link, title: t3.linkTitle, target: "blank" }, e.toDisplayString(t3.content), 9, M)) : t3.content ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createElementVNode("div", { class: e.normalizeClass(["ai" === t3.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== t3.role || t3.isRecommend ? "user" === t3.role ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(t3.content) + " ", 1), ((_a2 = t3.additionalData) == null ? void 0 : _a2.length) > 0 && t3.additionalDataLabel ? (e.openBlock(), e.createBlock(u, { key: 0, item: t3, onViewJson:
|
|
279
|
-
}), footer: e.withCtx(({ item: t3 }) => [e.createVNode(s, { item: t3, onRegenerate:
|
|
278
|
+
return [t3.isRecommend || null === t3.thinkingContent ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, ["failed" !== t3.messageStatus ? (e.openBlock(), e.createBlock(e.unref(a.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: t3.showThinkingContent, "onUpdate:modelValue": (e2) => t3.showThinkingContent = e2, status: t3.thinkingStatus, "auto-collapse": "", content: t3.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : e.createCommentVNode("", true)], 64)), t3.link ? (e.openBlock(), e.createElementBlock("a", { key: 1, href: t3.link, title: t3.linkTitle, target: "blank" }, e.toDisplayString(t3.content), 9, M)) : t3.content ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createElementVNode("div", { class: e.normalizeClass(["ai" === t3.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== t3.role || t3.isRecommend ? "user" === t3.role ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(t3.content) + " ", 1), ((_a2 = t3.additionalData) == null ? void 0 : _a2.length) > 0 && t3.additionalDataLabel ? (e.openBlock(), e.createBlock(u, { key: 0, item: t3, onViewJson: je, onDownloadJson: Oe }, null, 8, ["item"])) : e.createCommentVNode("", true)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createTextVNode(e.toDisplayString(t3.content), 1)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [t3.messageType && "history" !== t3.messageType ? (e.openBlock(), e.createBlock(e.unref(a.Typewriter), { key: 1, allowHtml: "", content: t3.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (e.openBlock(), e.createBlock(e.unref(a.XMarkdown), { key: 0, markdown: t3.content, allowHtml: true, content: t3.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": e.withCtx(({ ...a2 }) => [e.createVNode(c, { item: t3, itemProps: a2, onClickDocAgg: Fe }, null, 8, ["item", "itemProps"])]), "amb-alink": e.withCtx(({ ...t4 }) => [e.createElementVNode("a", { href: t4.href, target: t4.target }, e.toDisplayString(t4.text), 9, q)]), "amb-home-chart": e.withCtx(({ ...t4 }) => [e.createVNode(h, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": e.withCtx(({ ...t4 }) => [e.createVNode(f, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": e.withCtx(({ ...t4 }) => [e.createVNode(g, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), e.createElementVNode("div", _, [e.createElementVNode("span", null, e.toDisplayString(t3.sendTime), 1)])], 2), t3.recommendations && t3.recommendations.length > 0 ? (e.openBlock(), e.createBlock(i, { key: 0, item: t3, onClickRecommendation: Be }, null, 8, ["item"])) : e.createCommentVNode("", true), t3.docAggs && t3.docAggs.length > 0 ? (e.openBlock(), e.createElementBlock("div", V, [n2[3] || (n2[3] = e.createElementVNode("div", { class: "content-container-header" }, "引用文件", -1)), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.docAggs, (t4, a2) => (e.openBlock(), e.createElementBlock("div", { onClick: (e2) => Fe(t4), class: "doc-agg-item" }, e.toDisplayString(t4.doc_name), 9, D))), 256))])) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true)];
|
|
279
|
+
}), footer: e.withCtx(({ item: t3 }) => [e.createVNode(s, { item: t3, onRegenerate: De }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), e.createElementVNode("div", B, e.toDisplayString(Te.value), 1)]), e.createElementVNode("div", { ref_key: "talkInputRef", ref: ce, class: "chat-embed__input_container" }, [e.createVNode(v, { loading: W.value, ref_key: "chatSenderRef", ref: ge, onSubmitQuestion: Ve, onCommandAnswer: Re, onHandleCancel: Me, onViewJson: je, onChangeAiModel: Ie }, null, 8, ["loading"])], 512)]))])])], 2), [[e.vShow, ee.value]])]), _: 1 }), e.createVNode(e.unref(m), { modelValue: ie.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => ie.value = e2), "json-object": ue.value, "append-to-body": true, title: "预览数据" }, null, 8, ["modelValue", "json-object"])])) : e.createCommentVNode("", true);
|
|
280
280
|
} });
|
|
281
|
-
module.exports =
|
|
281
|
+
module.exports = P;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("vue-element-plus-x"), n =
|
|
3
|
-
r
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
const e = require("vue"), t = require("vue-element-plus-x"), n = ["onClick"], o = e.defineComponent({ __name: "recommendation-message", props: { item: { type: Object, required: true } }, emits: ["clickRecommendation"], setup(o2, { emit: c }) {
|
|
3
|
+
const r = c;
|
|
4
|
+
return (c2, i) => (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(o2.item.recommendations, (o3, c3) => (e.openBlock(), e.createBlock(e.unref(t.Bubble), { class: "chat-embed__recommendation", "no-style": true, variant: "borderless" }, e.createSlots({ content: e.withCtx(() => [e.createElementVNode("div", { class: "content-borderless-container", onClick: (e2) => ((e3) => {
|
|
5
|
+
r("clickRecommendation", e3);
|
|
6
|
+
})(o3) }, e.toDisplayString(o3.content), 9, n)]), _: 2 }, [0 === c3 ? { name: "header", fn: e.withCtx(() => [i[0] || (i[0] = e.createElementVNode("div", { class: "content-container-header" }, "推荐内容", -1))]), key: "0" } : void 0]), 1024))), 256));
|
|
7
|
+
} });
|
|
8
|
+
module.exports = o;
|