st-comp 0.0.280 → 0.0.281
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/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +512 -306
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +25 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +10 -10
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +39 -39
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +16 -16
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +9 -9
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +11 -11
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +17 -17
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +13 -13
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +22 -22
- package/es/User.cjs +1 -1
- package/es/User.js +18 -18
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +19 -19
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +426 -437
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +29 -29
- package/es/{VarietySelect-c402bade.js → VarietySelect-3fc0f0ce.js} +3 -3
- package/es/{VarietySelect-aa082a9c.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +10 -10
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +94 -94
- package/es/{_baseClone-10bdb989.cjs → _baseClone-f8e5d3ba.cjs} +1 -1
- package/es/{_baseClone-98af8b33.js → _baseClone-fb6a3947.js} +2 -2
- package/es/{config-provider-563023c9.js → config-provider-06d8207f.js} +3 -3
- package/es/{config-provider-33a127c4.cjs → config-provider-bb61bd3e.cjs} +1 -1
- package/es/{dropdown-ce7496c7.cjs → dropdown-8fa21bfd.cjs} +1 -1
- package/es/{dropdown-feea8702.js → dropdown-bcf8d198.js} +2 -2
- package/es/{el-autocomplete-d9253bba.cjs → el-autocomplete-13b9e372.cjs} +1 -1
- package/es/{el-autocomplete-eac54f9f.js → el-autocomplete-419bfbcf.js} +5 -5
- package/es/{el-button-8a9721f8.js → el-button-ee9fe159.js} +3 -3
- package/es/{el-button-8259594b.cjs → el-button-fac5e058.cjs} +1 -1
- package/es/{el-checkbox-6303fc92.cjs → el-checkbox-6cf1a71c.cjs} +1 -1
- package/es/{el-checkbox-c328b097.js → el-checkbox-b5ac7f04.js} +4 -4
- package/es/{el-dialog-67536fac.js → el-dialog-060b3735.js} +4 -4
- package/es/{el-dialog-8788bcc1.cjs → el-dialog-54aebacd.cjs} +1 -1
- package/es/{el-form-item-8efcf2c3.js → el-form-item-2be6b683.js} +3 -3
- package/es/{el-form-item-95e68669.cjs → el-form-item-758dfefa.cjs} +1 -1
- package/es/{el-input-c8a9bb71.cjs → el-input-7fe53030.cjs} +1 -1
- package/es/{el-input-e66500b7.js → el-input-d23f5442.js} +60 -60
- package/es/{el-input-number-68ee0d65.js → el-input-number-484fb184.js} +15 -15
- package/es/{el-input-number-d7a81922.cjs → el-input-number-f0f4eedb.cjs} +1 -1
- package/es/{el-loading-db4c6d13.js → el-loading-9d3e405c.js} +1 -1
- package/es/{el-loading-62132db2.cjs → el-loading-fafaaa7b.cjs} +1 -1
- package/es/{el-menu-item-c2523d82.js → el-menu-item-0ac22681.js} +4 -4
- package/es/{el-menu-item-4b8e7794.cjs → el-menu-item-c91ae430.cjs} +1 -1
- package/es/{el-message-box-7c13546c.js → el-message-box-568a0aa6.js} +9 -9
- package/es/{el-message-box-fed174f0.cjs → el-message-box-ceacb54e.cjs} +1 -1
- package/es/{el-overlay-17299785.cjs → el-overlay-9f36e73c.cjs} +1 -1
- package/es/{el-overlay-36f223e9.js → el-overlay-cb5c85aa.js} +3 -3
- package/es/{el-popconfirm-520b2928.cjs → el-popconfirm-4a8cd35c.cjs} +1 -1
- package/es/{el-popconfirm-a857c54a.js → el-popconfirm-6f8e65c8.js} +4 -4
- package/es/{el-popper-852446fd.js → el-popper-0454c8e8.js} +1 -1
- package/es/{el-popper-f824c63b.cjs → el-popper-acd0ff35.cjs} +1 -1
- package/es/{el-segmented-bf08279f.js → el-segmented-64dc7258.js} +2 -2
- package/es/{el-segmented-45dcc036.cjs → el-segmented-eb3c8e65.cjs} +1 -1
- package/es/{el-select-a34348e1.js → el-select-a573c78b.js} +8 -8
- package/es/{el-select-d2958ae8.cjs → el-select-c317294a.cjs} +1 -1
- package/es/{el-table-column-e2be313e.js → el-table-column-1c443963.js} +9 -9
- package/es/{el-table-column-ad70ee0e.cjs → el-table-column-f555115d.cjs} +1 -1
- package/es/{el-tag-9bcfae32.js → el-tag-2d8a3fe7.js} +2 -2
- package/es/{el-tag-527f06f0.cjs → el-tag-dca1292c.cjs} +1 -1
- package/es/{el-text-fc345ffd.cjs → el-text-649c986a.cjs} +1 -1
- package/es/{el-text-f9379288.js → el-text-761e6717.js} +1 -1
- package/es/{index-7711aa69.cjs → index-11181b5f.cjs} +1 -1
- package/es/{index-5e76a22d.cjs → index-21a3dc89.cjs} +1 -1
- package/es/{index-99bb359f.cjs → index-33e039e3.cjs} +1 -1
- package/es/{index-bb0bc131.cjs → index-4614e8e9.cjs} +2 -2
- package/es/{index-dfb34e00.js → index-53beef02.js} +1 -1
- package/es/index-5cada1ed.cjs +1 -0
- package/es/{index-3ed0c678.cjs → index-6a36e1fc.cjs} +1 -1
- package/es/{index-60900c6c.js → index-6a52dc7c.js} +112 -82
- package/es/{index-b9a26e7f.js → index-78dab605.js} +3 -3
- package/es/{index-99d4335d.cjs → index-798fec2d.cjs} +1 -1
- package/es/{index-47d30a52.js → index-9573f74b.js} +1 -1
- package/es/{index-69d2353a.js → index-ab0ad219.js} +9 -9
- package/es/{index-3a0a7c36.cjs → index-beb5cb7d.cjs} +1 -1
- package/es/{index-86678b72.js → index-c09fc6f5.js} +2 -2
- package/es/{index-5dec535a.cjs → index-ceae4c47.cjs} +1 -1
- package/es/{index-a0522466.js → index-d9379af4.js} +2 -2
- package/es/{index-7c4d8f5d.js → index-dddacf80.js} +1 -1
- package/es/{index-2419d69a.js → index-e2e58ea9.js} +5 -5
- package/es/{python-922eca89.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-6eafa04b.js → python-673bf8b8.js} +17 -17
- package/es/style.css +1 -1
- package/es/{use-form-item-0a831287.cjs → use-form-item-76516e50.cjs} +1 -1
- package/es/{use-form-item-187cd7db.js → use-form-item-784142b4.js} +16 -16
- package/es/{use-global-config-c90c91f7.cjs → use-global-config-7ff9a1c2.cjs} +1 -1
- package/es/{use-global-config-17dafd40.js → use-global-config-9a4ccf33.js} +2 -2
- package/es/{validator-ee5bc3eb.cjs → validator-1926345b.cjs} +1 -1
- package/es/{validator-800ed2ba.js → validator-a66ec4f8.js} +1 -1
- package/es/{zh-cn-26cc7233.js → zh-cn-51c2e528.js} +1 -1
- package/es/{zh-cn-a22a6792.cjs → zh-cn-ad12d9f5.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +197 -197
- package/lib/{index-74ed48c6.js → index-7282d3be.js} +22370 -22147
- package/lib/{python-7aaa84e4.js → python-418be57d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/index-3e7d5ffb.cjs +0 -1
package/es/VarietyAiHelper.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { e as
|
|
3
|
-
import { E as
|
|
4
|
-
import { b as
|
|
5
|
-
import { k as
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { f as
|
|
8
|
-
import { E as
|
|
9
|
-
import { E as
|
|
10
|
-
import { E as
|
|
11
|
-
import "./el-overlay-
|
|
1
|
+
import { E as ie, w as Ne, s as Ue, t as Ie, v as Fe, c as ze, u as Qe, x as Ye, y as Pe, z as Je, A as Le } from "./index-6a52dc7c.js";
|
|
2
|
+
import { e as Oe, b as me, E as ye } from "./el-popper-0454c8e8.js";
|
|
3
|
+
import { E as He } from "./el-input-d23f5442.js";
|
|
4
|
+
import { b as ke, s as ue, c as I, u as ce, a as ne, p as Ke, w as be, n as Re, B as $e, d as q } from "./base-dd156b8e.js";
|
|
5
|
+
import { k as we, i as je } from "./use-form-item-784142b4.js";
|
|
6
|
+
import { defineComponent as de, inject as Se, ref as D, computed as f, watch as oe, openBlock as r, createElementBlock as v, normalizeClass as E, normalizeStyle as L, createBlock as R, unref as c, withCtx as C, resolveDynamicComponent as Te, renderSlot as re, provide as Ge, reactive as De, toRef as ge, createVNode as k, createTextVNode as Z, isVNode as qe, cloneVNode as Xe, createElementVNode as d, toDisplayString as O, createCommentVNode as Q, nextTick as le, Fragment as ee, renderList as Ae } from "vue";
|
|
7
|
+
import { f as Ze } from "./vnode-8ee9bf4e.js";
|
|
8
|
+
import { E as We } from "./el-button-ee9fe159.js";
|
|
9
|
+
import { E as et } from "./el-dialog-060b3735.js";
|
|
10
|
+
import { E as X } from "./index-e2e58ea9.js";
|
|
11
|
+
import "./el-overlay-cb5c85aa.js";
|
|
12
12
|
import "./el-tooltip-4ed993c7.js";
|
|
13
|
-
import { U as
|
|
14
|
-
import { s as
|
|
15
|
-
import { _ as
|
|
13
|
+
import { U as tt, R as st } from "./index-53cc4e43.js";
|
|
14
|
+
import { s as at } from "./aiTools-ce2f9281.js";
|
|
15
|
+
import { _ as lt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
16
16
|
import "./index-a181f161.js";
|
|
17
17
|
import "./raf-b4fd1e12.js";
|
|
18
|
-
import "./index-
|
|
18
|
+
import "./index-dddacf80.js";
|
|
19
19
|
import "./typescript-7ae59c4c.js";
|
|
20
20
|
import "./index-de9ad85c.js";
|
|
21
|
-
import "./use-global-config-
|
|
22
|
-
import "./index-
|
|
21
|
+
import "./use-global-config-9a4ccf33.js";
|
|
22
|
+
import "./index-9573f74b.js";
|
|
23
23
|
import "./index-3806160e.js";
|
|
24
24
|
import "./clamp-c7512966.js";
|
|
25
25
|
import "./toNumber-f077c66a.js";
|
|
26
|
-
import "./config-provider-
|
|
26
|
+
import "./config-provider-06d8207f.js";
|
|
27
27
|
import "./scroll-70271cb1.js";
|
|
28
|
-
const
|
|
28
|
+
const nt = ke({
|
|
29
29
|
/**
|
|
30
30
|
* @description avatar size.
|
|
31
31
|
*/
|
|
32
32
|
size: {
|
|
33
33
|
type: [Number, String],
|
|
34
|
-
values:
|
|
35
|
-
validator: (
|
|
34
|
+
values: we,
|
|
35
|
+
validator: (t) => ue(t)
|
|
36
36
|
},
|
|
37
37
|
/**
|
|
38
38
|
* @description avatar shape.
|
|
@@ -44,7 +44,7 @@ const We = pe({
|
|
|
44
44
|
/**
|
|
45
45
|
* @description representation type to icon, more info on icon component.
|
|
46
46
|
*/
|
|
47
|
-
icon: { type:
|
|
47
|
+
icon: { type: je },
|
|
48
48
|
/**
|
|
49
49
|
* @description the source of the image for an image avatar.
|
|
50
50
|
*/
|
|
@@ -64,23 +64,23 @@ const We = pe({
|
|
|
64
64
|
* @description set how the image fit its container for an image avatar.
|
|
65
65
|
*/
|
|
66
66
|
fit: {
|
|
67
|
-
type:
|
|
67
|
+
type: I(String),
|
|
68
68
|
default: "cover"
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), ot = { error: (t) => t instanceof Event }, Ce = Symbol("avatarGroupContextKey"), rt = {
|
|
71
71
|
/**
|
|
72
72
|
* @description control the size of avatars in this avatar-group
|
|
73
73
|
*/
|
|
74
74
|
size: {
|
|
75
|
-
type:
|
|
76
|
-
values:
|
|
77
|
-
validator: (
|
|
75
|
+
type: I([Number, String]),
|
|
76
|
+
values: we,
|
|
77
|
+
validator: (t) => ue(t)
|
|
78
78
|
},
|
|
79
79
|
/**
|
|
80
80
|
* @description control the shape of avatars in this avatar-group
|
|
81
81
|
*/
|
|
82
82
|
shape: {
|
|
83
|
-
type:
|
|
83
|
+
type: I(String),
|
|
84
84
|
values: ["circle", "square"]
|
|
85
85
|
},
|
|
86
86
|
/**
|
|
@@ -102,30 +102,30 @@ const We = pe({
|
|
|
102
102
|
* @description tooltip theme, built-in theme: `dark` / `light`
|
|
103
103
|
*/
|
|
104
104
|
effect: {
|
|
105
|
-
type:
|
|
105
|
+
type: I(String),
|
|
106
106
|
default: "light"
|
|
107
107
|
},
|
|
108
108
|
/**
|
|
109
109
|
* @description placement of tooltip
|
|
110
110
|
*/
|
|
111
111
|
placement: {
|
|
112
|
-
type:
|
|
113
|
-
values:
|
|
112
|
+
type: I(String),
|
|
113
|
+
values: Oe,
|
|
114
114
|
default: "top"
|
|
115
115
|
},
|
|
116
116
|
/**
|
|
117
117
|
* @description custom class name for tooltip
|
|
118
118
|
*/
|
|
119
|
-
popperClass:
|
|
119
|
+
popperClass: me.popperClass,
|
|
120
120
|
/**
|
|
121
121
|
* @description custom style for tooltip
|
|
122
122
|
*/
|
|
123
|
-
popperStyle:
|
|
123
|
+
popperStyle: me.popperStyle,
|
|
124
124
|
/**
|
|
125
125
|
* @description custom class name for the collapse-avatar
|
|
126
126
|
*/
|
|
127
127
|
collapseClass: {
|
|
128
|
-
type:
|
|
128
|
+
type: I([
|
|
129
129
|
String,
|
|
130
130
|
Array,
|
|
131
131
|
Object,
|
|
@@ -137,7 +137,7 @@ const We = pe({
|
|
|
137
137
|
* @description custom style for the collapse-avatar
|
|
138
138
|
*/
|
|
139
139
|
collapseStyle: {
|
|
140
|
-
type:
|
|
140
|
+
type: I([
|
|
141
141
|
String,
|
|
142
142
|
Array,
|
|
143
143
|
Object,
|
|
@@ -145,78 +145,78 @@ const We = pe({
|
|
|
145
145
|
]),
|
|
146
146
|
default: void 0
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, it = [
|
|
149
149
|
"src",
|
|
150
150
|
"alt",
|
|
151
151
|
"srcset"
|
|
152
152
|
];
|
|
153
|
-
var
|
|
153
|
+
var ut = /* @__PURE__ */ de({
|
|
154
154
|
name: "ElAvatar",
|
|
155
155
|
__name: "avatar",
|
|
156
|
-
props:
|
|
157
|
-
emits:
|
|
158
|
-
setup(
|
|
159
|
-
const
|
|
160
|
-
const { icon:
|
|
161
|
-
return
|
|
162
|
-
}), N = f(() =>
|
|
163
|
-
|
|
164
|
-
function
|
|
165
|
-
|
|
156
|
+
props: nt,
|
|
157
|
+
emits: ot,
|
|
158
|
+
setup(t, { emit: V }) {
|
|
159
|
+
const l = t, i = V, w = Se(Ce, void 0), b = ce("avatar"), M = D(!1), T = f(() => l.size ?? (w == null ? void 0 : w.size)), y = f(() => l.shape ?? (w == null ? void 0 : w.shape) ?? "circle"), _ = f(() => {
|
|
160
|
+
const { icon: x } = l, S = [b.b()];
|
|
161
|
+
return ne(T.value) && S.push(b.m(T.value)), x && S.push(b.m("icon")), y.value && S.push(b.m(y.value)), S;
|
|
162
|
+
}), N = f(() => ue(T.value) ? b.cssVarBlock({ size: Ke(T.value) }) : void 0), Y = f(() => ({ objectFit: l.fit }));
|
|
163
|
+
oe(() => [l.src, l.srcSet], () => M.value = !1);
|
|
164
|
+
function n(x) {
|
|
165
|
+
M.value = !0, i("error", x);
|
|
166
166
|
}
|
|
167
|
-
return (
|
|
168
|
-
class:
|
|
167
|
+
return (x, S) => (r(), v("span", {
|
|
168
|
+
class: E(_.value),
|
|
169
169
|
style: L(N.value)
|
|
170
|
-
}, [(
|
|
170
|
+
}, [(t.src || t.srcSet) && !M.value ? (r(), v("img", {
|
|
171
171
|
key: 0,
|
|
172
|
-
src:
|
|
173
|
-
alt:
|
|
174
|
-
srcset:
|
|
175
|
-
style: L(
|
|
176
|
-
onError:
|
|
177
|
-
}, null, 44,
|
|
178
|
-
default:
|
|
172
|
+
src: t.src,
|
|
173
|
+
alt: t.alt,
|
|
174
|
+
srcset: t.srcSet,
|
|
175
|
+
style: L(Y.value),
|
|
176
|
+
onError: n
|
|
177
|
+
}, null, 44, it)) : t.icon ? (r(), R(c(ie), { key: 1 }, {
|
|
178
|
+
default: C(() => [(r(), R(Te(t.icon)))]),
|
|
179
179
|
_: 1
|
|
180
|
-
})) :
|
|
180
|
+
})) : re(x.$slots, "default", { key: 2 })], 6));
|
|
181
181
|
}
|
|
182
|
-
}),
|
|
182
|
+
}), Ee = ut, Be = /* @__PURE__ */ de({
|
|
183
183
|
name: "ElAvatarGroup",
|
|
184
|
-
props:
|
|
185
|
-
setup(
|
|
186
|
-
const
|
|
187
|
-
return
|
|
188
|
-
size:
|
|
189
|
-
shape:
|
|
184
|
+
props: rt,
|
|
185
|
+
setup(t, { slots: V }) {
|
|
186
|
+
const l = ce("avatar-group");
|
|
187
|
+
return Ge(Ce, De({
|
|
188
|
+
size: ge(t, "size"),
|
|
189
|
+
shape: ge(t, "shape")
|
|
190
190
|
})), () => {
|
|
191
|
-
var
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
popperClass:
|
|
199
|
-
popperStyle:
|
|
200
|
-
placement:
|
|
201
|
-
effect:
|
|
202
|
-
disabled: !
|
|
191
|
+
var b;
|
|
192
|
+
const i = Ze(((b = V.default) == null ? void 0 : b.call(V)) ?? []);
|
|
193
|
+
let w = i;
|
|
194
|
+
if (t.collapseAvatars && i.length > t.maxCollapseAvatars) {
|
|
195
|
+
w = i.slice(0, t.maxCollapseAvatars);
|
|
196
|
+
const M = i.slice(t.maxCollapseAvatars);
|
|
197
|
+
w.push(k(ye, {
|
|
198
|
+
popperClass: t.popperClass,
|
|
199
|
+
popperStyle: t.popperStyle,
|
|
200
|
+
placement: t.placement,
|
|
201
|
+
effect: t.effect,
|
|
202
|
+
disabled: !t.collapseAvatarsTooltip
|
|
203
203
|
}, {
|
|
204
|
-
default: () =>
|
|
205
|
-
size:
|
|
206
|
-
shape:
|
|
207
|
-
class:
|
|
208
|
-
style:
|
|
209
|
-
}, { default: () => [
|
|
210
|
-
content: () =>
|
|
204
|
+
default: () => k(Ee, {
|
|
205
|
+
size: t.size,
|
|
206
|
+
shape: t.shape,
|
|
207
|
+
class: t.collapseClass,
|
|
208
|
+
style: t.collapseStyle
|
|
209
|
+
}, { default: () => [Z("+ "), M.length] }),
|
|
210
|
+
content: () => k("div", { class: l.e("collapse-avatars") }, [M.map((T, y) => qe(T) ? Xe(T, { key: T.key ?? y }) : T)])
|
|
211
211
|
}));
|
|
212
212
|
}
|
|
213
|
-
return
|
|
213
|
+
return k("div", { class: l.b() }, [w]);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
const
|
|
217
|
+
const ct = be(Ee, { AvatarGroup: Be });
|
|
218
|
+
Re(Be);
|
|
219
|
+
const dt = ke({
|
|
220
220
|
/**
|
|
221
221
|
* @description type of progress bar
|
|
222
222
|
*/
|
|
@@ -235,7 +235,7 @@ const nt = pe({
|
|
|
235
235
|
percentage: {
|
|
236
236
|
type: Number,
|
|
237
237
|
default: 0,
|
|
238
|
-
validator: (
|
|
238
|
+
validator: (t) => t >= 0 && t <= 100
|
|
239
239
|
},
|
|
240
240
|
/**
|
|
241
241
|
* @description the current status of progress bar
|
|
@@ -272,7 +272,7 @@ const nt = pe({
|
|
|
272
272
|
* @description butt/circle/dashboard type shape at the end path
|
|
273
273
|
*/
|
|
274
274
|
strokeLinecap: {
|
|
275
|
-
type:
|
|
275
|
+
type: I(String),
|
|
276
276
|
default: "round"
|
|
277
277
|
},
|
|
278
278
|
/**
|
|
@@ -297,7 +297,7 @@ const nt = pe({
|
|
|
297
297
|
* @description background color of progress bar. Overrides `status` prop
|
|
298
298
|
*/
|
|
299
299
|
color: {
|
|
300
|
-
type:
|
|
300
|
+
type: I([
|
|
301
301
|
String,
|
|
302
302
|
Array,
|
|
303
303
|
Function
|
|
@@ -316,158 +316,158 @@ const nt = pe({
|
|
|
316
316
|
* @description custom text format
|
|
317
317
|
*/
|
|
318
318
|
format: {
|
|
319
|
-
type:
|
|
320
|
-
default: (
|
|
319
|
+
type: I(Function),
|
|
320
|
+
default: (t) => `${t}%`
|
|
321
321
|
}
|
|
322
|
-
}),
|
|
322
|
+
}), ft = ["aria-valuenow"], vt = { viewBox: "0 0 100 100" }, pt = [
|
|
323
323
|
"d",
|
|
324
324
|
"stroke",
|
|
325
325
|
"stroke-linecap",
|
|
326
326
|
"stroke-width"
|
|
327
|
-
],
|
|
327
|
+
], mt = [
|
|
328
328
|
"d",
|
|
329
329
|
"stroke",
|
|
330
330
|
"opacity",
|
|
331
331
|
"stroke-linecap",
|
|
332
332
|
"stroke-width"
|
|
333
|
-
],
|
|
334
|
-
var
|
|
333
|
+
], gt = { key: 0 };
|
|
334
|
+
var At = /* @__PURE__ */ de({
|
|
335
335
|
name: "ElProgress",
|
|
336
336
|
__name: "progress",
|
|
337
|
-
props:
|
|
338
|
-
setup(
|
|
339
|
-
const
|
|
337
|
+
props: dt,
|
|
338
|
+
setup(t) {
|
|
339
|
+
const V = {
|
|
340
340
|
success: "#13ce66",
|
|
341
341
|
exception: "#ff4949",
|
|
342
342
|
warning: "#e6a23c",
|
|
343
343
|
default: "#20a0ff"
|
|
344
|
-
},
|
|
345
|
-
const
|
|
346
|
-
width: `${
|
|
347
|
-
animationDuration: `${
|
|
348
|
-
},
|
|
349
|
-
return
|
|
350
|
-
}),
|
|
351
|
-
const
|
|
344
|
+
}, l = t, i = ce("progress"), w = f(() => {
|
|
345
|
+
const o = {
|
|
346
|
+
width: `${l.percentage}%`,
|
|
347
|
+
animationDuration: `${l.duration}s`
|
|
348
|
+
}, g = B(l.percentage);
|
|
349
|
+
return g.includes("gradient") ? o.background = g : o.backgroundColor = g, o;
|
|
350
|
+
}), b = f(() => (l.strokeWidth / l.width * 100).toFixed(1)), M = f(() => ["circle", "dashboard"].includes(l.type) ? Number.parseInt(`${50 - Number.parseFloat(b.value) / 2}`, 10) : 0), T = f(() => {
|
|
351
|
+
const o = M.value, g = l.type === "dashboard";
|
|
352
352
|
return `
|
|
353
353
|
M 50 50
|
|
354
|
-
m 0 ${
|
|
355
|
-
a ${
|
|
356
|
-
a ${
|
|
354
|
+
m 0 ${g ? "" : "-"}${o}
|
|
355
|
+
a ${o} ${o} 0 1 1 0 ${g ? "-" : ""}${o * 2}
|
|
356
|
+
a ${o} ${o} 0 1 1 0 ${g ? "" : "-"}${o * 2}
|
|
357
357
|
`;
|
|
358
|
-
}), y = f(() => 2 * Math.PI *
|
|
359
|
-
strokeDasharray: `${y.value *
|
|
358
|
+
}), y = f(() => 2 * Math.PI * M.value), _ = f(() => l.type === "dashboard" ? 0.75 : 1), N = f(() => `${-1 * y.value * (1 - _.value) / 2}px`), Y = f(() => ({
|
|
359
|
+
strokeDasharray: `${y.value * _.value}px, ${y.value}px`,
|
|
360
360
|
strokeDashoffset: N.value
|
|
361
|
-
})),
|
|
362
|
-
strokeDasharray: `${y.value *
|
|
361
|
+
})), n = f(() => ({
|
|
362
|
+
strokeDasharray: `${y.value * _.value * (l.percentage / 100)}px, ${y.value}px`,
|
|
363
363
|
strokeDashoffset: N.value,
|
|
364
364
|
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
365
|
-
})),
|
|
366
|
-
let
|
|
367
|
-
return
|
|
368
|
-
}),
|
|
369
|
-
function
|
|
370
|
-
const
|
|
371
|
-
return
|
|
372
|
-
color:
|
|
373
|
-
percentage: (
|
|
374
|
-
} :
|
|
365
|
+
})), x = f(() => {
|
|
366
|
+
let o;
|
|
367
|
+
return l.color ? o = B(l.percentage) : o = V[l.status] || V.default, o;
|
|
368
|
+
}), S = f(() => l.status === "warning" ? Ne : l.type === "line" ? l.status === "success" ? Ue : Ie : l.status === "success" ? Fe : ze), P = f(() => l.type === "line" ? 12 + l.strokeWidth * 0.4 : l.width * 0.111111 + 2), H = f(() => l.format(l.percentage));
|
|
369
|
+
function W(o) {
|
|
370
|
+
const g = 100 / o.length;
|
|
371
|
+
return o.map((U, F) => ne(U) ? {
|
|
372
|
+
color: U,
|
|
373
|
+
percentage: (F + 1) * g
|
|
374
|
+
} : U).sort((U, F) => U.percentage - F.percentage);
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
var
|
|
378
|
-
const { color:
|
|
379
|
-
if (
|
|
380
|
-
return
|
|
381
|
-
if (
|
|
382
|
-
return
|
|
376
|
+
const B = (o) => {
|
|
377
|
+
var U;
|
|
378
|
+
const { color: g } = l;
|
|
379
|
+
if ($e(g))
|
|
380
|
+
return g(o);
|
|
381
|
+
if (ne(g))
|
|
382
|
+
return g;
|
|
383
383
|
{
|
|
384
|
-
const
|
|
385
|
-
for (const
|
|
386
|
-
if (
|
|
387
|
-
return
|
|
388
|
-
return (
|
|
384
|
+
const F = W(g);
|
|
385
|
+
for (const G of F)
|
|
386
|
+
if (G.percentage > o)
|
|
387
|
+
return G.color;
|
|
388
|
+
return (U = F[F.length - 1]) == null ? void 0 : U.color;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
|
-
return (
|
|
392
|
-
class:
|
|
393
|
-
c(
|
|
394
|
-
c(
|
|
395
|
-
c(
|
|
391
|
+
return (o, g) => (r(), v("div", {
|
|
392
|
+
class: E([
|
|
393
|
+
c(i).b(),
|
|
394
|
+
c(i).m(t.type),
|
|
395
|
+
c(i).is(t.status),
|
|
396
396
|
{
|
|
397
|
-
[c(
|
|
398
|
-
[c(
|
|
397
|
+
[c(i).m("without-text")]: !t.showText,
|
|
398
|
+
[c(i).m("text-inside")]: t.textInside
|
|
399
399
|
}
|
|
400
400
|
]),
|
|
401
401
|
role: "progressbar",
|
|
402
|
-
"aria-valuenow":
|
|
402
|
+
"aria-valuenow": t.percentage,
|
|
403
403
|
"aria-valuemin": "0",
|
|
404
404
|
"aria-valuemax": "100"
|
|
405
|
-
}, [
|
|
405
|
+
}, [t.type === "line" ? (r(), v("div", {
|
|
406
406
|
key: 0,
|
|
407
|
-
class:
|
|
407
|
+
class: E(c(i).b("bar"))
|
|
408
408
|
}, [d("div", {
|
|
409
|
-
class:
|
|
410
|
-
style: L({ height: `${
|
|
409
|
+
class: E(c(i).be("bar", "outer")),
|
|
410
|
+
style: L({ height: `${t.strokeWidth}px` })
|
|
411
411
|
}, [d("div", {
|
|
412
|
-
class:
|
|
413
|
-
c(
|
|
414
|
-
{ [c(
|
|
415
|
-
{ [c(
|
|
416
|
-
{ [c(
|
|
412
|
+
class: E([
|
|
413
|
+
c(i).be("bar", "inner"),
|
|
414
|
+
{ [c(i).bem("bar", "inner", "indeterminate")]: t.indeterminate },
|
|
415
|
+
{ [c(i).bem("bar", "inner", "striped")]: t.striped },
|
|
416
|
+
{ [c(i).bem("bar", "inner", "striped-flow")]: t.stripedFlow }
|
|
417
417
|
]),
|
|
418
|
-
style: L(
|
|
419
|
-
}, [(
|
|
418
|
+
style: L(w.value)
|
|
419
|
+
}, [(t.showText || o.$slots.default) && t.textInside ? (r(), v("div", {
|
|
420
420
|
key: 0,
|
|
421
|
-
class:
|
|
422
|
-
}, [
|
|
421
|
+
class: E(c(i).be("bar", "innerText"))
|
|
422
|
+
}, [re(o.$slots, "default", { percentage: t.percentage }, () => [d("span", null, O(H.value), 1)])], 2)) : Q("v-if", !0)], 6)], 6)], 2)) : (r(), v("div", {
|
|
423
423
|
key: 1,
|
|
424
|
-
class:
|
|
424
|
+
class: E(c(i).b("circle")),
|
|
425
425
|
style: L({
|
|
426
|
-
height: `${
|
|
427
|
-
width: `${
|
|
426
|
+
height: `${t.width}px`,
|
|
427
|
+
width: `${t.width}px`
|
|
428
428
|
})
|
|
429
|
-
}, [(
|
|
430
|
-
class:
|
|
431
|
-
d:
|
|
432
|
-
stroke: `var(${c(
|
|
433
|
-
"stroke-linecap":
|
|
434
|
-
"stroke-width":
|
|
429
|
+
}, [(r(), v("svg", vt, [d("path", {
|
|
430
|
+
class: E(c(i).be("circle", "track")),
|
|
431
|
+
d: T.value,
|
|
432
|
+
stroke: `var(${c(i).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
433
|
+
"stroke-linecap": t.strokeLinecap,
|
|
434
|
+
"stroke-width": b.value,
|
|
435
435
|
fill: "none",
|
|
436
|
-
style: L(
|
|
437
|
-
}, null, 14,
|
|
438
|
-
class:
|
|
439
|
-
d:
|
|
440
|
-
stroke:
|
|
436
|
+
style: L(Y.value)
|
|
437
|
+
}, null, 14, pt), d("path", {
|
|
438
|
+
class: E(c(i).be("circle", "path")),
|
|
439
|
+
d: T.value,
|
|
440
|
+
stroke: x.value,
|
|
441
441
|
fill: "none",
|
|
442
|
-
opacity:
|
|
443
|
-
"stroke-linecap":
|
|
444
|
-
"stroke-width":
|
|
445
|
-
style: L(
|
|
446
|
-
}, null, 14,
|
|
442
|
+
opacity: t.percentage ? 1 : 0,
|
|
443
|
+
"stroke-linecap": t.strokeLinecap,
|
|
444
|
+
"stroke-width": b.value,
|
|
445
|
+
style: L(n.value)
|
|
446
|
+
}, null, 14, mt)]))], 6)), (t.showText || o.$slots.default) && !t.textInside ? (r(), v("div", {
|
|
447
447
|
key: 2,
|
|
448
|
-
class:
|
|
449
|
-
style: L({ fontSize: `${
|
|
450
|
-
}, [
|
|
451
|
-
default:
|
|
448
|
+
class: E(c(i).e("text")),
|
|
449
|
+
style: L({ fontSize: `${P.value}px` })
|
|
450
|
+
}, [re(o.$slots, "default", { percentage: t.percentage }, () => [t.status ? (r(), R(c(ie), { key: 1 }, {
|
|
451
|
+
default: C(() => [(r(), R(Te(S.value)))]),
|
|
452
452
|
_: 1
|
|
453
|
-
})) : (
|
|
453
|
+
})) : (r(), v("span", gt, O(H.value), 1))])], 6)) : Q("v-if", !0)], 10, ft));
|
|
454
454
|
}
|
|
455
|
-
}),
|
|
456
|
-
const
|
|
457
|
-
const
|
|
458
|
-
const
|
|
455
|
+
}), ht = At;
|
|
456
|
+
const yt = be(ht);
|
|
457
|
+
const kt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMaSURBVHgB7ZhdbhMxEMf/9lLRN3oDlhMQTkB6AnqDlqdSVYgaDkD6zIdTKGqLkJreoD1BywnIDdiegPBWKYmH8e4mdZbAeqlTrcT+pJX8MV57dsee8QANDQ0NDf8zAgtA608tRJEGIeYZEjOmk1dqq4cFEFwBrQ9iSHzjV68UuhIYWlVqK0FAJAJDEDtzFm9hxcS51scrCEhwBYQUj6cVQ7tk6MTpjg2udhCQoAqk5gNqOU29l2prw7Ai0wmlfIGABFXAAG2n2p/Yu8RV97qZVvb3v9xHIIIqIKV4PSnzVz+blJVSAyyIYAroj0d28bHz4h5ugSAKvNVHa7xhO9MGtnn3uNRaz5w8w2H0E4G4sQJ28ZE0x05TwovvuDIjLDsbWwyUehrMpO74CqYmQtTmg74920O49oc04J28Whwr05Pp2mfqD4fH82cRAzMeX0qIU1+H5+WJecLz3xdexC7esKfd7v/b+AJSdNTzzd1SsTKBd/pgw2NyDhPwaN7iLRwLfUVVeE+lc5dQakKZ46GsQjhlM1Lp+0Fr3Kfz9uRvv5wDuQ47ucQ4p9Q8BIcgQuIJcjkZiXWUnGYee8DxrDTm02U7sUX+OpU2ovKMRlnRLpvP92w+0SqTr3QKLS3d/YFbhUoDv+DB3E0ZzZpZv0y+dgpEEGuTMkeyl2XytVMg38RZGXxolFArBbT+bDdt7DRdlI2plQIGo7ZT7ft441opIGW0PikbI068xqAmFG9zEqMLn3G1UaBwm0v+FJYUqY0CediQQgZn3uNQA1LzcQJGgXHPd6yHAjSNeYbD4QMsADafDafa9zUfS3kwJ0R/+nU4+nyjD9JoVEbyIUemuQxulKziZMDUfDiM3kMFyhXgvCZHh+2sQq07nF3LiuRKtfTeIWV/SwxsPjRvT7JblrF34IQgBwSTPmMuW4HliDMZVM15uXjdyN7rwy67+KAJqblkyYBOlSHeyV1tb0ci/dVx4Q0xQkC4UDvPVqsOC5KdzhK2V3YfxHlTbGN5Y29Y9hG4N9MnbJyfJ4B54XxxOVNqs4uGhoaGhoaK/AINQhvhDFaFYAAAAABJRU5ErkJggg==", bt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMxSURBVHgB7ZhdbtNAEMdn1wmlTzUnIJyA9ASkNwgnaCMh0aKK1uIATV4R1bbQUlVCSrhBewLCCSg3CCfAPBFoM8PsxnHcVGHX7UZYwj/JytrecXb2a+a/ACUlJSUl/zMCPKBUNxzCMAwAQwEylAA1AAr586EM5Mq4zM9IhOPy+F3ShAtEPHwVbfXgFjg78Ea9bwaBXAeC+syrGvhAwFn0cvMp5MTJAfX2VAHRLiwYROrwSLTz2Fgd2FcnG1KKLjhBMU+TmD/LFw34QUwEP4if87QaJJX4F/m95AtDCII9HtVm0pwY8N6jKGrF4EjFVkEGQk+bBHEBOOroP0KABju2N2439KPdzTW4BUqpFsj7jfGaoBBhqEe67WovrTUIGmkZr1pR9OIsirb6MO3ROxFFUYwIh2mDAvEkh7mDAxmq1aXvsAC4Eb30hjtMqZNGDtt/D4/ogFdjf3Kvp6erbSEc0OAIzydlXlvrrnaFcUDCr17mtqbUcd3NriDoxXx9Gsmmi11hHNDgiD5Pyq67UaEcuLkbdUMHm+JgdqNMfEH4vWGzKZQDGkJIdyMB2LDVL5wDCNiflIUUj231C+dAoPOtKTVb/cI5wC5YF24WazZqMlAgE1Qu8ergtTrujDgVFhWxomO+KzotB0uPGvVG1Egf0DQuzMPqAMu9cw7t9eSDzaoMmlXzIlNJiDonYLVkF7nBvjrdlZIU2CCavf9oM7FOIaOQhK0nWONK+WVe+JcB5EqRDazOIged7KyJlZ4CQu6AoL/kKFpR4ersSPD0aafiR9chOpv7CcKvetommsPKnU8lFIt9MJJzcsrAgQiXVrOy0OT3UnxK/jKOdp4/AE/ceRfSCo2Hu5V5VEtkYYZhZmuk8Ojow0PwhJdtVDtBWVko5U42jzGZ5oLwFgcE/GybUwlDKs4XjjcHbojzjKrik4dcwSkPXiPxtXSY18JkrlNlOSsRB9vbz76BJ7w6MJsOX9JoQ7073RMIB2klh+iaB++5EB8PTqMnUttcUwYcAzrgEe8OSBgeTBfzNTg+0Nq8dOO2eDlen8WkFKLSTY7Vudf1kclyL8+ZZ0lJSUlJiQt/AOgzKhZAFyVoAAAAAElFTkSuQmCC";
|
|
458
|
+
const wt = { class: "ai-dialog-body" }, St = { class: "avatar" }, Tt = { class: "message-content" }, Dt = {
|
|
459
459
|
key: 0,
|
|
460
460
|
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
461
|
-
},
|
|
461
|
+
}, Ct = {
|
|
462
462
|
key: 1,
|
|
463
463
|
class: "node-progress"
|
|
464
|
-
},
|
|
464
|
+
}, Et = { class: "node-status-icon" }, Bt = { class: "node-name" }, Mt = { class: "progress-footer" }, xt = { class: "progress-text" }, Vt = ["innerHTML"], _t = {
|
|
465
465
|
key: 4,
|
|
466
466
|
class: "message-content-footer"
|
|
467
|
-
},
|
|
467
|
+
}, Nt = {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "feedback-box"
|
|
470
|
-
},
|
|
470
|
+
}, Ut = ["onClick"], It = ["onClick"], Ft = { class: "input-area" }, zt = { class: "input-actions" }, Qt = { class: "feedback-dialog-content" }, Yt = { class: "dialog-footer" }, he = 6e4, Pt = 4e4, Jt = {
|
|
471
471
|
__name: "index",
|
|
472
472
|
props: {
|
|
473
473
|
defaultMessage: {
|
|
@@ -479,236 +479,225 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
|
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
481
|
emits: ["callBack"],
|
|
482
|
-
setup(
|
|
483
|
-
const
|
|
482
|
+
setup(t, { expose: V, emit: l }) {
|
|
483
|
+
const i = Se("stConfig"), w = De(tt()), b = D(!1), M = l, T = t, y = D(!1), _ = D(!1), N = D(!1), Y = D(null), n = D([
|
|
484
484
|
{
|
|
485
485
|
role: "defaultMessage",
|
|
486
486
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
487
|
-
content:
|
|
487
|
+
content: T.defaultMessage,
|
|
488
488
|
fullQuery: "",
|
|
489
489
|
historyList: [],
|
|
490
490
|
userContent: null,
|
|
491
491
|
showFeedback: !1,
|
|
492
|
-
createTime:
|
|
492
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
493
493
|
resTime: 0,
|
|
494
494
|
firstPackageTime: 0
|
|
495
495
|
}
|
|
496
|
-
]),
|
|
497
|
-
const
|
|
498
|
-
return
|
|
499
|
-
}),
|
|
500
|
-
const
|
|
501
|
-
if (!
|
|
502
|
-
return
|
|
496
|
+
]), x = D(null), S = D(""), P = D(!1), H = D(""), W = D({}), B = D([]), o = f(() => B.value.length), g = f(() => B.value.filter((s) => s.status === "success").length), U = f(() => o.value ? g.value / o.value * 100 : 0), F = f(() => {
|
|
497
|
+
const s = B.value.find((e) => e.status === "executing");
|
|
498
|
+
return s ? s.name : "处理中";
|
|
499
|
+
}), G = async () => {
|
|
500
|
+
const s = S.value.trim();
|
|
501
|
+
if (!s)
|
|
502
|
+
return X.warning("请输入消息内容");
|
|
503
503
|
if (y.value)
|
|
504
504
|
return;
|
|
505
|
-
|
|
505
|
+
B.value = [], N.value = !1, n.value.push({
|
|
506
506
|
role: "user",
|
|
507
|
-
content:
|
|
508
|
-
createTime:
|
|
509
|
-
}),
|
|
507
|
+
content: s,
|
|
508
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss")
|
|
509
|
+
}), S.value = "", await J(), n.value.push({
|
|
510
510
|
role: "assistant",
|
|
511
511
|
content: "",
|
|
512
512
|
fullQuery: "",
|
|
513
513
|
historyList: [],
|
|
514
|
-
userContent:
|
|
514
|
+
userContent: s,
|
|
515
515
|
showFeedback: !1,
|
|
516
|
-
createTime:
|
|
516
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
517
517
|
resTime: 0,
|
|
518
518
|
firstPackageTime: 0
|
|
519
|
-
}), await J(), y.value = !0,
|
|
520
|
-
let
|
|
519
|
+
}), await J(), y.value = !0, _.value = !0;
|
|
520
|
+
let e = "", a = (/* @__PURE__ */ new Date()).getTime(), A = !1;
|
|
521
521
|
try {
|
|
522
|
-
await
|
|
523
|
-
baseUrl:
|
|
524
|
-
token:
|
|
525
|
-
value:
|
|
526
|
-
sessionId:
|
|
527
|
-
userId:
|
|
528
|
-
callback: (
|
|
529
|
-
if (
|
|
530
|
-
const m =
|
|
531
|
-
m.historyList =
|
|
522
|
+
await at({
|
|
523
|
+
baseUrl: i.env.VITE_BASE_URL,
|
|
524
|
+
token: st(),
|
|
525
|
+
value: s,
|
|
526
|
+
sessionId: x.value,
|
|
527
|
+
userId: w.id,
|
|
528
|
+
callback: (p, h) => {
|
|
529
|
+
if (p === "session" && (x.value = h), p === "historyList") {
|
|
530
|
+
const m = n.value[n.value.length - 1];
|
|
531
|
+
m.historyList = h;
|
|
532
532
|
}
|
|
533
|
-
if (
|
|
534
|
-
const m =
|
|
535
|
-
m.fullQuery =
|
|
533
|
+
if (p === "fullQuery") {
|
|
534
|
+
const m = n.value[n.value.length - 1];
|
|
535
|
+
m.fullQuery = h;
|
|
536
536
|
}
|
|
537
|
-
if (
|
|
538
|
-
if (!
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
|
|
537
|
+
if (p === "node") {
|
|
538
|
+
if (!A) {
|
|
539
|
+
A = !0, _.value = !1;
|
|
540
|
+
const z = n.value[n.value.length - 1];
|
|
541
|
+
z && z.role === "assistant" && z.firstPackageTime === 0 && (z.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - a);
|
|
542
542
|
}
|
|
543
|
-
const m =
|
|
544
|
-
m ? m.status =
|
|
543
|
+
const m = B.value.find((z) => z.name === h.name);
|
|
544
|
+
m ? m.status = h.status : B.value.push({ name: h.name, status: h.status }), J();
|
|
545
545
|
return;
|
|
546
546
|
}
|
|
547
|
-
if (
|
|
548
|
-
|
|
549
|
-
const m =
|
|
550
|
-
m && m.role === "assistant" && (m.content =
|
|
547
|
+
if (p === "message") {
|
|
548
|
+
e = h;
|
|
549
|
+
const m = n.value[n.value.length - 1];
|
|
550
|
+
m && m.role === "assistant" && (m.content = e, J());
|
|
551
551
|
}
|
|
552
|
-
if (
|
|
552
|
+
if (p === "finish") {
|
|
553
553
|
y.value = !1, N.value = !0;
|
|
554
|
-
const m =
|
|
555
|
-
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() -
|
|
554
|
+
const m = n.value[n.value.length - 1];
|
|
555
|
+
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - a, $("default", n.value.length - 1));
|
|
556
556
|
}
|
|
557
|
-
if (
|
|
558
|
-
|
|
557
|
+
if (p === "error") {
|
|
558
|
+
_.value = !1, y.value = !1, n.value.pop(), n.value.push({
|
|
559
559
|
role: "assistant",
|
|
560
|
-
userContent:
|
|
561
|
-
content: `❌ ${
|
|
560
|
+
userContent: s,
|
|
561
|
+
content: `❌ ${h}`,
|
|
562
562
|
showFeedback: !1,
|
|
563
|
-
createTime:
|
|
564
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
563
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
564
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - a,
|
|
565
565
|
firstPackageTime: 0
|
|
566
|
-
}), $("default",
|
|
566
|
+
}), $("default", n.value.length - 1), J();
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
});
|
|
571
|
-
} catch (
|
|
572
|
-
|
|
571
|
+
} catch (p) {
|
|
572
|
+
X.error(`AI响应异常: ${p}`), n.value.pop(), n.value.push({
|
|
573
573
|
role: "assistant",
|
|
574
|
-
userContent:
|
|
574
|
+
userContent: s,
|
|
575
575
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
576
576
|
showFeedback: !0,
|
|
577
|
-
createTime:
|
|
578
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
577
|
+
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
578
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - a,
|
|
579
579
|
firstPackageTime: 0
|
|
580
|
-
}), $("default",
|
|
580
|
+
}), $("default", n.value.length - 1), await J(), y.value = !1, _.value = !1;
|
|
581
|
+
}
|
|
582
|
+
}, Me = (s) => {
|
|
583
|
+
const { parsedConditions: e, ...a } = JSON.parse(s);
|
|
584
|
+
console.log({ parsedConditions: e, webParams: a }), M("callBack", a);
|
|
585
|
+
}, te = (s) => new TextEncoder().encode(s).length, fe = (s, e) => {
|
|
586
|
+
const a = String(s ?? "");
|
|
587
|
+
if (te(a) <= e)
|
|
588
|
+
return a;
|
|
589
|
+
let A = 0, p = a.length;
|
|
590
|
+
for (; A < p; ) {
|
|
591
|
+
const h = A + p + 1 >> 1;
|
|
592
|
+
te(a.slice(0, h)) <= e - 20 ? A = h : p = h - 1;
|
|
593
|
+
}
|
|
594
|
+
return `${a.slice(0, A)}…[超出长度已截断]`;
|
|
595
|
+
}, xe = (s) => {
|
|
596
|
+
const e = Array.isArray(s) ? s : [], a = [];
|
|
597
|
+
for (let p = e.length - 1; p >= 0; p -= 1) {
|
|
598
|
+
const h = [e[p], ...a];
|
|
599
|
+
if (te(JSON.stringify(h)) > Pt)
|
|
600
|
+
break;
|
|
601
|
+
a.unshift(e[p]);
|
|
602
|
+
}
|
|
603
|
+
const A = e.length - a.length;
|
|
604
|
+
return JSON.stringify(A > 0 ? [{ role: "system", content: `[已省略较早的 ${A} 条会话记录]` }, ...a] : a);
|
|
605
|
+
}, se = (s, e = {}) => ({
|
|
606
|
+
userName: w.username,
|
|
607
|
+
userContent: s.userContent,
|
|
608
|
+
sessionId: x.value,
|
|
609
|
+
fullQuery: fe(s.fullQuery, he),
|
|
610
|
+
historyList: xe(s.historyList),
|
|
611
|
+
aiContent: fe(s.content, he),
|
|
612
|
+
createTime: s.createTime,
|
|
613
|
+
resTime: s.resTime,
|
|
614
|
+
firstPackageTime: s.firstPackageTime,
|
|
615
|
+
logOrigin: 1,
|
|
616
|
+
...e
|
|
617
|
+
}), ae = async (s) => {
|
|
618
|
+
try {
|
|
619
|
+
return await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", s), !0;
|
|
620
|
+
} catch (e) {
|
|
621
|
+
return X.error(`反馈提交失败: ${(e == null ? void 0 : e.message) || e}`), !1;
|
|
581
622
|
}
|
|
582
|
-
},
|
|
583
|
-
|
|
584
|
-
console.log({ parsedConditions: t, webParams: s }), E("callBack", s);
|
|
585
|
-
}, $ = async (r, t) => {
|
|
586
|
-
switch (r) {
|
|
623
|
+
}, $ = async (s, e) => {
|
|
624
|
+
switch (s) {
|
|
587
625
|
case "satisfied": {
|
|
588
|
-
const
|
|
589
|
-
await
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
sessionId: w.value,
|
|
593
|
-
fullQuery: s.fullQuery,
|
|
594
|
-
historyList: JSON.stringify(s.historyList ?? []),
|
|
595
|
-
aiContent: s.content,
|
|
596
|
-
type: 1,
|
|
597
|
-
createTime: s.createTime,
|
|
598
|
-
resTime: s.resTime,
|
|
599
|
-
firstPackageTime: s.firstPackageTime,
|
|
600
|
-
isSolved: 1,
|
|
601
|
-
logOrigin: 1
|
|
602
|
-
}), ee.success("感谢您的评价!"), l.value[t].showFeedback = !1;
|
|
626
|
+
const a = n.value[e];
|
|
627
|
+
if (!await ae(se(a, { type: 1, isSolved: 1 })))
|
|
628
|
+
break;
|
|
629
|
+
X.success("感谢您的评价!"), n.value[e].showFeedback = !1;
|
|
603
630
|
break;
|
|
604
631
|
}
|
|
605
632
|
case "open": {
|
|
606
|
-
|
|
633
|
+
W.value = e, P.value = !0;
|
|
607
634
|
break;
|
|
608
635
|
}
|
|
609
636
|
case "unsatisfied": {
|
|
610
|
-
const
|
|
611
|
-
await
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
sessionId: w.value,
|
|
615
|
-
fullQuery: s.fullQuery,
|
|
616
|
-
historyList: JSON.stringify(s.historyList ?? []),
|
|
617
|
-
userSuggestion: K.value,
|
|
618
|
-
aiContent: s.content,
|
|
619
|
-
type: 2,
|
|
620
|
-
resTime: s.resTime,
|
|
621
|
-
createTime: s.createTime,
|
|
622
|
-
firstPackageTime: s.firstPackageTime,
|
|
623
|
-
isSolved: 0,
|
|
624
|
-
logOrigin: 1
|
|
625
|
-
}), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, l.value[t].showFeedback = !1;
|
|
637
|
+
const a = n.value[e];
|
|
638
|
+
if (!await ae(se(a, { type: 2, userSuggestion: H.value, isSolved: 0 })))
|
|
639
|
+
break;
|
|
640
|
+
X.success("感谢您的反馈!我们将持续跟踪并进行优化"), P.value = !1, n.value[e].showFeedback = !1;
|
|
626
641
|
break;
|
|
627
642
|
}
|
|
628
643
|
case "default": {
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
userName: g.username,
|
|
632
|
-
userContent: s.userContent,
|
|
633
|
-
sessionId: w.value,
|
|
634
|
-
fullQuery: s.fullQuery,
|
|
635
|
-
historyList: JSON.stringify(s.historyList ?? []),
|
|
636
|
-
aiContent: s.content,
|
|
637
|
-
type: null,
|
|
638
|
-
resTime: s.resTime,
|
|
639
|
-
createTime: s.createTime,
|
|
640
|
-
firstPackageTime: s.firstPackageTime,
|
|
641
|
-
isSolved: 1,
|
|
642
|
-
logOrigin: 1
|
|
643
|
-
}), await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
644
|
-
userName: g.username,
|
|
645
|
-
userContent: s.userContent,
|
|
646
|
-
sessionId: w.value,
|
|
647
|
-
fullQuery: s.fullQuery,
|
|
648
|
-
historyList: JSON.stringify(s.historyList ?? []),
|
|
649
|
-
aiContent: s.content,
|
|
650
|
-
type: null,
|
|
651
|
-
resTime: s.resTime,
|
|
652
|
-
createTime: s.createTime,
|
|
653
|
-
firstPackageTime: s.firstPackageTime,
|
|
654
|
-
isSolved: 1,
|
|
655
|
-
logOrigin: 1
|
|
656
|
-
});
|
|
644
|
+
const a = n.value[e];
|
|
645
|
+
await ae(se(a, { type: null, isSolved: 1 }));
|
|
657
646
|
}
|
|
658
647
|
}
|
|
659
|
-
},
|
|
660
|
-
if (
|
|
661
|
-
if (
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
` +
|
|
666
|
-
|
|
648
|
+
}, Ve = (s) => {
|
|
649
|
+
if (s.key === "Enter")
|
|
650
|
+
if (s.ctrlKey) {
|
|
651
|
+
s.preventDefault();
|
|
652
|
+
const e = s.target, a = e.selectionStart, A = e.selectionEnd;
|
|
653
|
+
S.value = S.value.substring(0, a) + `
|
|
654
|
+
` + S.value.substring(A), le(() => {
|
|
655
|
+
e.selectionStart = e.selectionEnd = a + 1;
|
|
667
656
|
});
|
|
668
657
|
} else
|
|
669
|
-
|
|
658
|
+
s.preventDefault(), G();
|
|
670
659
|
}, J = async () => {
|
|
671
|
-
await
|
|
672
|
-
},
|
|
673
|
-
if (typeof
|
|
660
|
+
await le(), Y.value && (Y.value.scrollTop = Y.value.scrollHeight);
|
|
661
|
+
}, ve = (s) => {
|
|
662
|
+
if (typeof s != "string")
|
|
674
663
|
return !1;
|
|
675
664
|
try {
|
|
676
|
-
const
|
|
677
|
-
return
|
|
665
|
+
const e = JSON.parse(s);
|
|
666
|
+
return e !== null && typeof e == "object";
|
|
678
667
|
} catch {
|
|
679
668
|
return !1;
|
|
680
669
|
}
|
|
681
|
-
},
|
|
682
|
-
const { parsedConditions:
|
|
683
|
-
let
|
|
684
|
-
return
|
|
685
|
-
|
|
686
|
-
}),
|
|
670
|
+
}, _e = (s) => {
|
|
671
|
+
const { parsedConditions: e } = JSON.parse(s);
|
|
672
|
+
let a = "";
|
|
673
|
+
return e != null && e.length && (a += '<div class="parsed-conditions">', e.forEach((A) => {
|
|
674
|
+
a += `<div class="parsed-conditions-item">${A}</div>`;
|
|
675
|
+
}), a += "</div>"), a;
|
|
687
676
|
};
|
|
688
|
-
return
|
|
689
|
-
() =>
|
|
677
|
+
return oe(
|
|
678
|
+
() => n.value,
|
|
690
679
|
() => {
|
|
691
680
|
J();
|
|
692
681
|
},
|
|
693
682
|
{ deep: !0 }
|
|
694
|
-
),
|
|
695
|
-
() =>
|
|
696
|
-
(
|
|
697
|
-
|
|
683
|
+
), oe(
|
|
684
|
+
() => P.value,
|
|
685
|
+
(s) => {
|
|
686
|
+
s || (H.value = "");
|
|
698
687
|
}
|
|
699
|
-
),
|
|
688
|
+
), V({
|
|
700
689
|
open: () => {
|
|
701
|
-
|
|
690
|
+
b.value = !0, le(() => {
|
|
702
691
|
J();
|
|
703
692
|
});
|
|
704
693
|
}
|
|
705
|
-
}), (
|
|
706
|
-
const
|
|
707
|
-
return
|
|
708
|
-
|
|
694
|
+
}), (s, e) => {
|
|
695
|
+
const a = ct, A = ie, p = yt, h = ye, m = We, z = He, pe = et;
|
|
696
|
+
return r(), v(ee, null, [
|
|
697
|
+
k(pe, {
|
|
709
698
|
class: "ai-dialog",
|
|
710
|
-
modelValue:
|
|
711
|
-
"onUpdate:modelValue":
|
|
699
|
+
modelValue: b.value,
|
|
700
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => b.value = u),
|
|
712
701
|
title: "✨ 品种池参数解析AI助手",
|
|
713
702
|
width: "500px",
|
|
714
703
|
center: "",
|
|
@@ -717,139 +706,139 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
|
|
|
717
706
|
modal: !1,
|
|
718
707
|
"modal-penetrable": !0
|
|
719
708
|
}, {
|
|
720
|
-
default:
|
|
721
|
-
d("div",
|
|
709
|
+
default: C(() => [
|
|
710
|
+
d("div", wt, [
|
|
722
711
|
d("div", {
|
|
723
712
|
ref_key: "messageListRef",
|
|
724
|
-
ref:
|
|
713
|
+
ref: Y,
|
|
725
714
|
class: "message-list"
|
|
726
715
|
}, [
|
|
727
|
-
(
|
|
728
|
-
key:
|
|
729
|
-
class:
|
|
716
|
+
(r(!0), v(ee, null, Ae(n.value, (u, K) => (r(), v("div", {
|
|
717
|
+
key: K,
|
|
718
|
+
class: E([u.role, "message-item"])
|
|
730
719
|
}, [
|
|
731
|
-
u.content ||
|
|
732
|
-
d("div",
|
|
733
|
-
|
|
720
|
+
u.content || K === n.value.length - 1 && u.role === "assistant" && B.value.length > 0 ? (r(), v(ee, { key: 0 }, [
|
|
721
|
+
d("div", St, [
|
|
722
|
+
k(a, {
|
|
734
723
|
size: 32,
|
|
735
|
-
icon: u.role === "user" ? c(
|
|
724
|
+
icon: u.role === "user" ? c(Qe) : c(Ye)
|
|
736
725
|
}, null, 8, ["icon"])
|
|
737
726
|
]),
|
|
738
|
-
d("div",
|
|
739
|
-
u.fullQuery ? (
|
|
740
|
-
|
|
741
|
-
(
|
|
727
|
+
d("div", Tt, [
|
|
728
|
+
u.fullQuery ? (r(), v("div", Dt, " 筛选结果: " + O(u.fullQuery), 1)) : Q("", !0),
|
|
729
|
+
K === n.value.length - 1 && u.role === "assistant" && B.value.length > 0 && !N.value ? (r(), v("div", Ct, [
|
|
730
|
+
(r(!0), v(ee, null, Ae(B.value, (j) => (r(), v("div", {
|
|
742
731
|
key: j.name,
|
|
743
732
|
class: "node-progress-item"
|
|
744
733
|
}, [
|
|
745
|
-
d("span",
|
|
746
|
-
j.status === "success" ? (
|
|
734
|
+
d("span", Et, [
|
|
735
|
+
j.status === "success" ? (r(), R(A, {
|
|
747
736
|
key: 0,
|
|
748
737
|
class: "node-icon done"
|
|
749
738
|
}, {
|
|
750
|
-
default:
|
|
751
|
-
|
|
739
|
+
default: C(() => [
|
|
740
|
+
k(c(Pe))
|
|
752
741
|
]),
|
|
753
742
|
_: 1
|
|
754
|
-
})) : (
|
|
743
|
+
})) : (r(), R(A, {
|
|
755
744
|
key: 1,
|
|
756
745
|
class: "node-icon running"
|
|
757
746
|
}, {
|
|
758
|
-
default:
|
|
759
|
-
|
|
747
|
+
default: C(() => [
|
|
748
|
+
k(c(Je))
|
|
760
749
|
]),
|
|
761
750
|
_: 1
|
|
762
751
|
}))
|
|
763
752
|
]),
|
|
764
|
-
d("span",
|
|
753
|
+
d("span", Bt, O(j.name), 1)
|
|
765
754
|
]))), 128)),
|
|
766
|
-
d("div",
|
|
767
|
-
|
|
768
|
-
percentage:
|
|
755
|
+
d("div", Mt, [
|
|
756
|
+
k(p, {
|
|
757
|
+
percentage: U.value,
|
|
769
758
|
"show-text": !1,
|
|
770
759
|
"stroke-width": 4,
|
|
771
760
|
color: "#667eea"
|
|
772
761
|
}, null, 8, ["percentage"]),
|
|
773
|
-
d("span",
|
|
762
|
+
d("span", xt, "第 " + O(g.value) + "/" + O(o.value) + " 步 · " + O(F.value), 1)
|
|
774
763
|
])
|
|
775
|
-
])) :
|
|
776
|
-
|
|
764
|
+
])) : Q("", !0),
|
|
765
|
+
ve(u.content) ? (r(), v("div", {
|
|
777
766
|
key: 2,
|
|
778
|
-
class:
|
|
779
|
-
innerHTML:
|
|
780
|
-
}, null, 10,
|
|
767
|
+
class: E(["message-content-json", { "result-animation": K === n.value.length - 1 && N.value }]),
|
|
768
|
+
innerHTML: _e(u.content)
|
|
769
|
+
}, null, 10, Vt)) : u.content ? (r(), v("div", {
|
|
781
770
|
key: 3,
|
|
782
|
-
class:
|
|
783
|
-
}, O(u.content), 3)) :
|
|
784
|
-
u.role === "assistant" ? (
|
|
785
|
-
u.showFeedback ? (
|
|
786
|
-
|
|
771
|
+
class: E(["message-content-text", { "result-animation": K === n.value.length - 1 && N.value }])
|
|
772
|
+
}, O(u.content), 3)) : Q("", !0),
|
|
773
|
+
u.role === "assistant" ? (r(), v("div", _t, [
|
|
774
|
+
u.showFeedback ? (r(), v("div", Nt, [
|
|
775
|
+
k(h, {
|
|
787
776
|
content: "满意",
|
|
788
777
|
placement: "bottom"
|
|
789
778
|
}, {
|
|
790
|
-
default:
|
|
779
|
+
default: C(() => [
|
|
791
780
|
d("img", {
|
|
792
|
-
src:
|
|
781
|
+
src: kt,
|
|
793
782
|
alt: "满意",
|
|
794
|
-
onClick: (j) => $("satisfied",
|
|
795
|
-
}, null, 8,
|
|
783
|
+
onClick: (j) => $("satisfied", K)
|
|
784
|
+
}, null, 8, Ut)
|
|
796
785
|
]),
|
|
797
786
|
_: 2
|
|
798
787
|
}, 1024),
|
|
799
|
-
|
|
788
|
+
k(h, {
|
|
800
789
|
content: "满意",
|
|
801
790
|
placement: "bottom"
|
|
802
791
|
}, {
|
|
803
|
-
default:
|
|
792
|
+
default: C(() => [
|
|
804
793
|
d("img", {
|
|
805
|
-
src:
|
|
794
|
+
src: bt,
|
|
806
795
|
alt: "不满意",
|
|
807
|
-
onClick: (j) => $("open",
|
|
808
|
-
}, null, 8,
|
|
796
|
+
onClick: (j) => $("open", K)
|
|
797
|
+
}, null, 8, It)
|
|
809
798
|
]),
|
|
810
799
|
_: 2
|
|
811
800
|
}, 1024)
|
|
812
|
-
])) :
|
|
813
|
-
|
|
801
|
+
])) : Q("", !0),
|
|
802
|
+
ve(u.content) ? (r(), R(m, {
|
|
814
803
|
key: 1,
|
|
815
804
|
class: "confirm-btn",
|
|
816
|
-
onClick: (j) =>
|
|
805
|
+
onClick: (j) => Me(u.content)
|
|
817
806
|
}, {
|
|
818
|
-
default:
|
|
819
|
-
|
|
807
|
+
default: C(() => [...e[6] || (e[6] = [
|
|
808
|
+
Z(" 确认查询 ", -1)
|
|
820
809
|
])]),
|
|
821
810
|
_: 1
|
|
822
|
-
}, 8, ["onClick"])) :
|
|
823
|
-
])) :
|
|
811
|
+
}, 8, ["onClick"])) : Q("", !0)
|
|
812
|
+
])) : Q("", !0)
|
|
824
813
|
])
|
|
825
|
-
], 64)) :
|
|
814
|
+
], 64)) : Q("", !0)
|
|
826
815
|
], 2))), 128))
|
|
827
816
|
], 512),
|
|
828
|
-
d("div",
|
|
829
|
-
|
|
817
|
+
d("div", Ft, [
|
|
818
|
+
k(z, {
|
|
830
819
|
class: "message-input",
|
|
831
|
-
modelValue:
|
|
832
|
-
"onUpdate:modelValue":
|
|
820
|
+
modelValue: S.value,
|
|
821
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => S.value = u),
|
|
833
822
|
type: "textarea",
|
|
834
823
|
rows: 4,
|
|
835
824
|
autosize: { minRows: 2, maxRows: 4 },
|
|
836
825
|
placeholder: "输入您想查询的品种条件...",
|
|
837
|
-
onKeydown:
|
|
826
|
+
onKeydown: Ve
|
|
838
827
|
}, null, 8, ["modelValue"]),
|
|
839
|
-
d("div",
|
|
840
|
-
|
|
828
|
+
d("div", zt, [
|
|
829
|
+
e[8] || (e[8] = d("div", { class: "input-hint" }, [
|
|
841
830
|
d("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
842
831
|
], -1)),
|
|
843
|
-
|
|
832
|
+
k(m, {
|
|
844
833
|
class: "send-btn",
|
|
845
834
|
type: "primary",
|
|
846
|
-
icon: c(
|
|
835
|
+
icon: c(Le),
|
|
847
836
|
loading: y.value,
|
|
848
|
-
onClick:
|
|
837
|
+
onClick: G,
|
|
849
838
|
round: ""
|
|
850
839
|
}, {
|
|
851
|
-
default:
|
|
852
|
-
|
|
840
|
+
default: C(() => [...e[7] || (e[7] = [
|
|
841
|
+
Z(" 发送 ", -1)
|
|
853
842
|
])]),
|
|
854
843
|
_: 1
|
|
855
844
|
}, 8, ["icon", "loading"])
|
|
@@ -859,40 +848,40 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
|
|
|
859
848
|
]),
|
|
860
849
|
_: 1
|
|
861
850
|
}, 8, ["modelValue"]),
|
|
862
|
-
|
|
863
|
-
modelValue:
|
|
864
|
-
"onUpdate:modelValue":
|
|
851
|
+
k(pe, {
|
|
852
|
+
modelValue: P.value,
|
|
853
|
+
"onUpdate:modelValue": e[5] || (e[5] = (u) => P.value = u),
|
|
865
854
|
title: "📝 反馈意见",
|
|
866
855
|
width: "400px"
|
|
867
856
|
}, {
|
|
868
|
-
footer:
|
|
869
|
-
d("span",
|
|
870
|
-
|
|
871
|
-
onClick:
|
|
857
|
+
footer: C(() => [
|
|
858
|
+
d("span", Yt, [
|
|
859
|
+
k(m, {
|
|
860
|
+
onClick: e[3] || (e[3] = (u) => P.value = !1)
|
|
872
861
|
}, {
|
|
873
|
-
default:
|
|
874
|
-
|
|
862
|
+
default: C(() => [...e[11] || (e[11] = [
|
|
863
|
+
Z("取消", -1)
|
|
875
864
|
])]),
|
|
876
865
|
_: 1
|
|
877
866
|
}),
|
|
878
|
-
|
|
867
|
+
k(m, {
|
|
879
868
|
type: "primary",
|
|
880
|
-
onClick:
|
|
869
|
+
onClick: e[4] || (e[4] = (u) => $("unsatisfied", W.value))
|
|
881
870
|
}, {
|
|
882
|
-
default:
|
|
883
|
-
|
|
871
|
+
default: C(() => [...e[12] || (e[12] = [
|
|
872
|
+
Z("提交反馈", -1)
|
|
884
873
|
])]),
|
|
885
874
|
_: 1
|
|
886
875
|
})
|
|
887
876
|
])
|
|
888
877
|
]),
|
|
889
|
-
default:
|
|
890
|
-
d("div",
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
modelValue:
|
|
895
|
-
"onUpdate:modelValue":
|
|
878
|
+
default: C(() => [
|
|
879
|
+
d("div", Qt, [
|
|
880
|
+
e[9] || (e[9] = d("div", { class: "feedback-emoji" }, "😟", -1)),
|
|
881
|
+
e[10] || (e[10] = d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)),
|
|
882
|
+
k(z, {
|
|
883
|
+
modelValue: H.value,
|
|
884
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => H.value = u),
|
|
896
885
|
type: "textarea",
|
|
897
886
|
rows: 4,
|
|
898
887
|
placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
|
|
@@ -904,11 +893,11 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
|
|
|
904
893
|
], 64);
|
|
905
894
|
};
|
|
906
895
|
}
|
|
907
|
-
},
|
|
908
|
-
install(
|
|
909
|
-
|
|
896
|
+
}, Lt = /* @__PURE__ */ lt(Jt, [["__scopeId", "data-v-4edbe8e8"]]), gs = {
|
|
897
|
+
install(t) {
|
|
898
|
+
t.component("st-varietyAiHelper", Lt);
|
|
910
899
|
}
|
|
911
900
|
};
|
|
912
901
|
export {
|
|
913
|
-
|
|
902
|
+
gs as default
|
|
914
903
|
};
|