st-comp 0.0.279 → 0.0.280
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/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +342 -547
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +253 -253
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +46 -46
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +605 -443
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-aa082a9c.cjs} +1 -1
- package/es/{VarietySelect-41daac7b.js → VarietySelect-c402bade.js} +5 -5
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1929 -2261
- package/es/_baseClone-10bdb989.cjs +1 -0
- package/es/_baseClone-98af8b33.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-33a127c4.cjs +1 -0
- package/es/config-provider-563023c9.js +86 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-ce7496c7.cjs +1 -0
- package/es/dropdown-feea8702.js +178 -0
- package/es/el-autocomplete-d9253bba.cjs +1 -0
- package/es/el-autocomplete-eac54f9f.js +434 -0
- package/es/el-button-8259594b.cjs +1 -0
- package/es/el-button-8a9721f8.js +343 -0
- package/es/el-checkbox-6303fc92.cjs +1 -0
- package/es/el-checkbox-c328b097.js +566 -0
- package/es/el-dialog-67536fac.js +252 -0
- package/es/el-dialog-8788bcc1.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-8efcf2c3.js +1265 -0
- package/es/el-form-item-95e68669.cjs +12 -0
- package/es/el-input-c8a9bb71.cjs +1 -0
- package/es/el-input-e66500b7.js +761 -0
- package/es/el-input-number-68ee0d65.js +390 -0
- package/es/el-input-number-d7a81922.cjs +1 -0
- package/es/el-loading-62132db2.cjs +1 -0
- package/es/el-loading-db4c6d13.js +190 -0
- package/es/el-menu-item-4b8e7794.cjs +1 -0
- package/es/el-menu-item-c2523d82.js +824 -0
- package/es/el-message-box-7c13546c.js +481 -0
- package/es/el-message-box-fed174f0.cjs +1 -0
- package/es/el-overlay-17299785.cjs +1 -0
- package/es/el-overlay-36f223e9.js +444 -0
- package/es/el-popconfirm-520b2928.cjs +1 -0
- package/es/el-popconfirm-a857c54a.js +190 -0
- package/es/el-popper-852446fd.js +2235 -0
- package/es/el-popper-f824c63b.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-45dcc036.cjs +1 -0
- package/es/el-segmented-bf08279f.js +168 -0
- package/es/el-select-a34348e1.js +1535 -0
- package/es/el-select-d2958ae8.cjs +1 -0
- package/es/el-table-column-ad70ee0e.cjs +14 -0
- package/es/el-table-column-e2be313e.js +3651 -0
- package/es/el-tag-527f06f0.cjs +1 -0
- package/es/el-tag-9bcfae32.js +77 -0
- package/es/el-text-f9379288.js +84 -0
- package/es/el-text-fc345ffd.cjs +1 -0
- package/es/index-2419d69a.js +468 -0
- package/es/index-3806160e.js +710 -0
- package/es/index-3a0a7c36.cjs +1 -0
- package/es/index-3e7d5ffb.cjs +1 -0
- package/es/index-3ed0c678.cjs +1 -0
- package/es/index-47d30a52.js +372 -0
- package/es/index-5dec535a.cjs +1 -0
- package/es/index-5e76a22d.cjs +1 -0
- package/es/{index-eb96e074.js → index-60900c6c.js} +223 -254
- package/es/{index-a33b2fb8.js → index-69d2353a.js} +5090 -5090
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-7711aa69.cjs +1 -0
- package/es/index-7c4d8f5d.js +47 -0
- package/es/index-86678b72.js +131 -0
- package/es/index-99bb359f.cjs +1 -0
- package/es/index-99d4335d.cjs +1 -0
- package/es/index-a0522466.js +413 -0
- package/es/index-a181f161.js +429 -0
- package/es/index-b9a26e7f.js +141 -0
- package/es/{index-a9246d17.cjs → index-bb0bc131.cjs} +109 -109
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/{index-44a382a5.js → index-dfb34e00.js} +12 -12
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-8a1664e6.js → python-6eafa04b.js} +32 -31
- package/es/{python-a3db9620.cjs → python-922eca89.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-0a831287.cjs +2 -0
- package/es/use-form-item-187cd7db.js +422 -0
- package/es/use-global-config-17dafd40.js +71 -0
- package/es/use-global-config-c90c91f7.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-800ed2ba.js} +1 -1
- package/es/validator-ee5bc3eb.cjs +1 -0
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-26cc7233.js} +36 -33
- package/es/zh-cn-a22a6792.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +271 -252
- package/lib/{index-62fa175a.js → index-74ed48c6.js} +54107 -52151
- package/lib/{python-4a48fa39.js → python-7aaa84e4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
package/es/VarietyAiHelper.js
CHANGED
|
@@ -1,313 +1,473 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { E as ne, w as Me, o as Ee, p as Ve, s as Be, c as xe, u as Ne, t as Ie, v as Ue, x as Qe, y as _e } from "./index-60900c6c.js";
|
|
2
|
+
import { e as Fe, b as de, E as me } from "./el-popper-852446fd.js";
|
|
3
|
+
import { E as Pe } from "./el-input-e66500b7.js";
|
|
4
|
+
import { b as pe, s as oe, c as U, u as re, a as se, p as ze, w as ge, n as Ye, B as Je, d as G } from "./base-dd156b8e.js";
|
|
5
|
+
import { k as ye, i as Le } from "./use-form-item-187cd7db.js";
|
|
6
|
+
import { defineComponent as ie, inject as Ae, ref as T, computed as f, watch as ae, openBlock as i, createElementBlock as v, normalizeClass as C, normalizeStyle as L, createBlock as R, unref as c, withCtx as S, resolveDynamicComponent as he, renderSlot as le, provide as Oe, reactive as ke, toRef as fe, createVNode as A, createTextVNode as X, isVNode as Ke, cloneVNode as He, createElementVNode as d, toDisplayString as O, createCommentVNode as P, nextTick as te, Fragment as W, renderList as ve } from "vue";
|
|
7
|
+
import { f as Re } from "./vnode-8ee9bf4e.js";
|
|
8
|
+
import { E as $e } from "./el-button-8a9721f8.js";
|
|
9
|
+
import { E as je } from "./el-dialog-67536fac.js";
|
|
10
|
+
import { E as ee } from "./index-2419d69a.js";
|
|
11
|
+
import "./el-overlay-36f223e9.js";
|
|
6
12
|
import "./el-tooltip-4ed993c7.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as He } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
-
import { E as W } from "./index-5216d5f5.js";
|
|
15
|
-
import { k as Ke, i as Re } from "./use-form-common-props-ed72e914.js";
|
|
16
|
-
import "./index-d77a7336.js";
|
|
17
|
-
import "./index-960806da.js";
|
|
18
|
-
import "./index-2e331d74.js";
|
|
19
|
-
import "./vnode-5ddb7ed1.js";
|
|
20
|
-
import "./scroll-679bd6bf.js";
|
|
21
|
-
import "./use-global-config-ee406d58.js";
|
|
22
|
-
import "./index-8c2d7e05.js";
|
|
13
|
+
import { U as qe, R as Ge } from "./index-53cc4e43.js";
|
|
14
|
+
import { s as Xe } from "./aiTools-ce2f9281.js";
|
|
15
|
+
import { _ as Ze } from "./_plugin-vue_export-helper-dad06003.js";
|
|
16
|
+
import "./index-a181f161.js";
|
|
17
|
+
import "./raf-b4fd1e12.js";
|
|
18
|
+
import "./index-7c4d8f5d.js";
|
|
23
19
|
import "./typescript-7ae59c4c.js";
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
|
|
20
|
+
import "./index-de9ad85c.js";
|
|
21
|
+
import "./use-global-config-17dafd40.js";
|
|
22
|
+
import "./index-47d30a52.js";
|
|
23
|
+
import "./index-3806160e.js";
|
|
24
|
+
import "./clamp-c7512966.js";
|
|
25
|
+
import "./toNumber-f077c66a.js";
|
|
26
|
+
import "./config-provider-563023c9.js";
|
|
27
|
+
import "./scroll-70271cb1.js";
|
|
28
|
+
const We = pe({
|
|
29
|
+
/**
|
|
30
|
+
* @description avatar size.
|
|
31
|
+
*/
|
|
28
32
|
size: {
|
|
29
33
|
type: [Number, String],
|
|
30
|
-
values:
|
|
31
|
-
|
|
32
|
-
validator: (p) => fe(p)
|
|
34
|
+
values: ye,
|
|
35
|
+
validator: (e) => oe(e)
|
|
33
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @description avatar shape.
|
|
39
|
+
*/
|
|
34
40
|
shape: {
|
|
35
41
|
type: String,
|
|
36
|
-
values: ["circle", "square"]
|
|
37
|
-
default: "circle"
|
|
38
|
-
},
|
|
39
|
-
icon: {
|
|
40
|
-
type: Re
|
|
42
|
+
values: ["circle", "square"]
|
|
41
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* @description representation type to icon, more info on icon component.
|
|
46
|
+
*/
|
|
47
|
+
icon: { type: Le },
|
|
48
|
+
/**
|
|
49
|
+
* @description the source of the image for an image avatar.
|
|
50
|
+
*/
|
|
42
51
|
src: {
|
|
43
52
|
type: String,
|
|
44
53
|
default: ""
|
|
45
54
|
},
|
|
55
|
+
/**
|
|
56
|
+
* @description native attribute `alt` of image avatar.
|
|
57
|
+
*/
|
|
46
58
|
alt: String,
|
|
59
|
+
/**
|
|
60
|
+
* @description native attribute srcset of image avatar.
|
|
61
|
+
*/
|
|
47
62
|
srcSet: String,
|
|
63
|
+
/**
|
|
64
|
+
* @description set how the image fit its container for an image avatar.
|
|
65
|
+
*/
|
|
48
66
|
fit: {
|
|
49
|
-
type:
|
|
67
|
+
type: U(String),
|
|
50
68
|
default: "cover"
|
|
51
69
|
}
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
}), et = { error: (e) => e instanceof Event }, be = Symbol("avatarGroupContextKey"), tt = {
|
|
71
|
+
/**
|
|
72
|
+
* @description control the size of avatars in this avatar-group
|
|
73
|
+
*/
|
|
74
|
+
size: {
|
|
75
|
+
type: U([Number, String]),
|
|
76
|
+
values: ye,
|
|
77
|
+
validator: (e) => oe(e)
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @description control the shape of avatars in this avatar-group
|
|
81
|
+
*/
|
|
82
|
+
shape: {
|
|
83
|
+
type: U(String),
|
|
84
|
+
values: ["circle", "square"]
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* @description whether to collapse avatars
|
|
88
|
+
*/
|
|
89
|
+
collapseAvatars: Boolean,
|
|
90
|
+
/**
|
|
91
|
+
* @description whether show all collapsed avatars when mouse hover text of the collapse-avatar. To use this, `collapse-avatars` must be true
|
|
92
|
+
*/
|
|
93
|
+
collapseAvatarsTooltip: Boolean,
|
|
94
|
+
/**
|
|
95
|
+
* @description the max avatars number to be shown. To use this, `collapse-avatars` must be true
|
|
96
|
+
*/
|
|
97
|
+
maxCollapseAvatars: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 1
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* @description tooltip theme, built-in theme: `dark` / `light`
|
|
103
|
+
*/
|
|
104
|
+
effect: {
|
|
105
|
+
type: U(String),
|
|
106
|
+
default: "light"
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* @description placement of tooltip
|
|
110
|
+
*/
|
|
111
|
+
placement: {
|
|
112
|
+
type: U(String),
|
|
113
|
+
values: Fe,
|
|
114
|
+
default: "top"
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* @description custom class name for tooltip
|
|
118
|
+
*/
|
|
119
|
+
popperClass: de.popperClass,
|
|
120
|
+
/**
|
|
121
|
+
* @description custom style for tooltip
|
|
122
|
+
*/
|
|
123
|
+
popperStyle: de.popperStyle,
|
|
124
|
+
/**
|
|
125
|
+
* @description custom class name for the collapse-avatar
|
|
126
|
+
*/
|
|
127
|
+
collapseClass: {
|
|
128
|
+
type: U([
|
|
129
|
+
String,
|
|
130
|
+
Array,
|
|
131
|
+
Object,
|
|
132
|
+
Boolean
|
|
133
|
+
]),
|
|
134
|
+
default: void 0
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* @description custom style for the collapse-avatar
|
|
138
|
+
*/
|
|
139
|
+
collapseStyle: {
|
|
140
|
+
type: U([
|
|
141
|
+
String,
|
|
142
|
+
Array,
|
|
143
|
+
Object,
|
|
144
|
+
Boolean
|
|
145
|
+
]),
|
|
146
|
+
default: void 0
|
|
147
|
+
}
|
|
148
|
+
}, st = [
|
|
149
|
+
"src",
|
|
150
|
+
"alt",
|
|
151
|
+
"srcset"
|
|
152
|
+
];
|
|
153
|
+
var at = /* @__PURE__ */ ie({
|
|
154
|
+
name: "ElAvatar",
|
|
155
|
+
__name: "avatar",
|
|
156
|
+
props: We,
|
|
157
|
+
emits: et,
|
|
158
|
+
setup(e, { emit: B }) {
|
|
159
|
+
const a = e, o = B, g = Ae(be, void 0), h = re("avatar"), E = T(!1), b = f(() => a.size ?? (g == null ? void 0 : g.size)), y = f(() => a.shape ?? (g == null ? void 0 : g.shape) ?? "circle"), x = f(() => {
|
|
160
|
+
const { icon: w } = a, k = [h.b()];
|
|
161
|
+
return se(b.value) && k.push(h.m(b.value)), w && k.push(h.m("icon")), y.value && k.push(h.m(y.value)), k;
|
|
162
|
+
}), N = f(() => oe(b.value) ? h.cssVarBlock({ size: ze(b.value) }) : void 0), z = f(() => ({ objectFit: a.fit }));
|
|
163
|
+
ae(() => [a.src, a.srcSet], () => E.value = !1);
|
|
164
|
+
function l(w) {
|
|
165
|
+
E.value = !0, o("error", w);
|
|
75
166
|
}
|
|
76
|
-
return (
|
|
77
|
-
class:
|
|
78
|
-
style:
|
|
79
|
-
}, [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
167
|
+
return (w, k) => (i(), v("span", {
|
|
168
|
+
class: C(x.value),
|
|
169
|
+
style: L(N.value)
|
|
170
|
+
}, [(e.src || e.srcSet) && !E.value ? (i(), v("img", {
|
|
171
|
+
key: 0,
|
|
172
|
+
src: e.src,
|
|
173
|
+
alt: e.alt,
|
|
174
|
+
srcset: e.srcSet,
|
|
175
|
+
style: L(z.value),
|
|
176
|
+
onError: l
|
|
177
|
+
}, null, 44, st)) : e.icon ? (i(), R(c(ne), { key: 1 }, {
|
|
178
|
+
default: S(() => [(i(), R(he(e.icon)))]),
|
|
179
|
+
_: 1
|
|
180
|
+
})) : le(w.$slots, "default", { key: 2 })], 6));
|
|
181
|
+
}
|
|
182
|
+
}), we = at, Te = /* @__PURE__ */ ie({
|
|
183
|
+
name: "ElAvatarGroup",
|
|
184
|
+
props: tt,
|
|
185
|
+
setup(e, { slots: B }) {
|
|
186
|
+
const a = re("avatar-group");
|
|
187
|
+
return Oe(be, ke({
|
|
188
|
+
size: fe(e, "size"),
|
|
189
|
+
shape: fe(e, "shape")
|
|
190
|
+
})), () => {
|
|
191
|
+
var h;
|
|
192
|
+
const o = Re(((h = B.default) == null ? void 0 : h.call(B)) ?? []);
|
|
193
|
+
let g = o;
|
|
194
|
+
if (e.collapseAvatars && o.length > e.maxCollapseAvatars) {
|
|
195
|
+
g = o.slice(0, e.maxCollapseAvatars);
|
|
196
|
+
const E = o.slice(e.maxCollapseAvatars);
|
|
197
|
+
g.push(A(me, {
|
|
198
|
+
popperClass: e.popperClass,
|
|
199
|
+
popperStyle: e.popperStyle,
|
|
200
|
+
placement: e.placement,
|
|
201
|
+
effect: e.effect,
|
|
202
|
+
disabled: !e.collapseAvatarsTooltip
|
|
203
|
+
}, {
|
|
204
|
+
default: () => A(we, {
|
|
205
|
+
size: e.size,
|
|
206
|
+
shape: e.shape,
|
|
207
|
+
class: e.collapseClass,
|
|
208
|
+
style: e.collapseStyle
|
|
209
|
+
}, { default: () => [X("+ "), E.length] }),
|
|
210
|
+
content: () => A("div", { class: a.e("collapse-avatars") }, [E.map((b, y) => Ke(b) ? He(b, { key: b.key ?? y }) : b)])
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
return A("div", { class: a.b() }, [g]);
|
|
214
|
+
};
|
|
94
215
|
}
|
|
95
216
|
});
|
|
96
|
-
|
|
97
|
-
|
|
217
|
+
const lt = ge(we, { AvatarGroup: Te });
|
|
218
|
+
Ye(Te);
|
|
219
|
+
const nt = pe({
|
|
220
|
+
/**
|
|
221
|
+
* @description type of progress bar
|
|
222
|
+
*/
|
|
98
223
|
type: {
|
|
99
224
|
type: String,
|
|
100
225
|
default: "line",
|
|
101
|
-
values: [
|
|
226
|
+
values: [
|
|
227
|
+
"line",
|
|
228
|
+
"circle",
|
|
229
|
+
"dashboard"
|
|
230
|
+
]
|
|
102
231
|
},
|
|
232
|
+
/**
|
|
233
|
+
* @description percentage, required
|
|
234
|
+
*/
|
|
103
235
|
percentage: {
|
|
104
236
|
type: Number,
|
|
105
237
|
default: 0,
|
|
106
|
-
validator: (
|
|
238
|
+
validator: (e) => e >= 0 && e <= 100
|
|
107
239
|
},
|
|
240
|
+
/**
|
|
241
|
+
* @description the current status of progress bar
|
|
242
|
+
*/
|
|
108
243
|
status: {
|
|
109
244
|
type: String,
|
|
110
245
|
default: "",
|
|
111
|
-
values: [
|
|
246
|
+
values: [
|
|
247
|
+
"",
|
|
248
|
+
"success",
|
|
249
|
+
"exception",
|
|
250
|
+
"warning"
|
|
251
|
+
]
|
|
112
252
|
},
|
|
253
|
+
/**
|
|
254
|
+
* @description set indeterminate progress
|
|
255
|
+
*/
|
|
113
256
|
indeterminate: Boolean,
|
|
257
|
+
/**
|
|
258
|
+
* @description control the animation duration of indeterminate progress or striped flow progress
|
|
259
|
+
*/
|
|
114
260
|
duration: {
|
|
115
261
|
type: Number,
|
|
116
262
|
default: 3
|
|
117
263
|
},
|
|
264
|
+
/**
|
|
265
|
+
* @description the width of progress bar
|
|
266
|
+
*/
|
|
118
267
|
strokeWidth: {
|
|
119
268
|
type: Number,
|
|
120
269
|
default: 6
|
|
121
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* @description butt/circle/dashboard type shape at the end path
|
|
273
|
+
*/
|
|
122
274
|
strokeLinecap: {
|
|
123
|
-
type:
|
|
275
|
+
type: U(String),
|
|
124
276
|
default: "round"
|
|
125
277
|
},
|
|
278
|
+
/**
|
|
279
|
+
* @description whether to place the percentage inside progress bar, only works when `type` is 'line'
|
|
280
|
+
*/
|
|
126
281
|
textInside: Boolean,
|
|
282
|
+
/**
|
|
283
|
+
* @description the canvas width of circle progress bar
|
|
284
|
+
*/
|
|
127
285
|
width: {
|
|
128
286
|
type: Number,
|
|
129
287
|
default: 126
|
|
130
288
|
},
|
|
289
|
+
/**
|
|
290
|
+
* @description whether to show percentage
|
|
291
|
+
*/
|
|
131
292
|
showText: {
|
|
132
293
|
type: Boolean,
|
|
133
294
|
default: !0
|
|
134
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* @description background color of progress bar. Overrides `status` prop
|
|
298
|
+
*/
|
|
135
299
|
color: {
|
|
136
|
-
type:
|
|
300
|
+
type: U([
|
|
137
301
|
String,
|
|
138
302
|
Array,
|
|
139
303
|
Function
|
|
140
304
|
]),
|
|
141
305
|
default: ""
|
|
142
306
|
},
|
|
307
|
+
/**
|
|
308
|
+
* @description stripe over the progress bar's color
|
|
309
|
+
*/
|
|
143
310
|
striped: Boolean,
|
|
311
|
+
/**
|
|
312
|
+
* @description get the stripes to flow
|
|
313
|
+
*/
|
|
144
314
|
stripedFlow: Boolean,
|
|
315
|
+
/**
|
|
316
|
+
* @description custom text format
|
|
317
|
+
*/
|
|
145
318
|
format: {
|
|
146
|
-
type:
|
|
147
|
-
default: (
|
|
319
|
+
type: U(Function),
|
|
320
|
+
default: (e) => `${e}%`
|
|
148
321
|
}
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
322
|
+
}), ot = ["aria-valuenow"], rt = { viewBox: "0 0 100 100" }, it = [
|
|
323
|
+
"d",
|
|
324
|
+
"stroke",
|
|
325
|
+
"stroke-linecap",
|
|
326
|
+
"stroke-width"
|
|
327
|
+
], ut = [
|
|
328
|
+
"d",
|
|
329
|
+
"stroke",
|
|
330
|
+
"opacity",
|
|
331
|
+
"stroke-linecap",
|
|
332
|
+
"stroke-width"
|
|
333
|
+
], ct = { key: 0 };
|
|
334
|
+
var dt = /* @__PURE__ */ ie({
|
|
335
|
+
name: "ElProgress",
|
|
336
|
+
__name: "progress",
|
|
337
|
+
props: nt,
|
|
338
|
+
setup(e) {
|
|
339
|
+
const B = {
|
|
156
340
|
success: "#13ce66",
|
|
157
341
|
exception: "#ff4949",
|
|
158
342
|
warning: "#e6a23c",
|
|
159
343
|
default: "#20a0ff"
|
|
160
|
-
},
|
|
161
|
-
const
|
|
162
|
-
width: `${
|
|
163
|
-
animationDuration: `${
|
|
164
|
-
},
|
|
165
|
-
return
|
|
166
|
-
}),
|
|
167
|
-
const
|
|
344
|
+
}, a = e, o = re("progress"), g = f(() => {
|
|
345
|
+
const n = {
|
|
346
|
+
width: `${a.percentage}%`,
|
|
347
|
+
animationDuration: `${a.duration}s`
|
|
348
|
+
}, p = D(a.percentage);
|
|
349
|
+
return p.includes("gradient") ? n.background = p : n.backgroundColor = p, n;
|
|
350
|
+
}), h = f(() => (a.strokeWidth / a.width * 100).toFixed(1)), E = f(() => ["circle", "dashboard"].includes(a.type) ? Number.parseInt(`${50 - Number.parseFloat(h.value) / 2}`, 10) : 0), b = f(() => {
|
|
351
|
+
const n = E.value, p = a.type === "dashboard";
|
|
168
352
|
return `
|
|
169
353
|
M 50 50
|
|
170
|
-
m 0 ${
|
|
171
|
-
a ${
|
|
172
|
-
a ${
|
|
354
|
+
m 0 ${p ? "" : "-"}${n}
|
|
355
|
+
a ${n} ${n} 0 1 1 0 ${p ? "-" : ""}${n * 2}
|
|
356
|
+
a ${n} ${n} 0 1 1 0 ${p ? "" : "-"}${n * 2}
|
|
173
357
|
`;
|
|
174
|
-
}),
|
|
175
|
-
strokeDasharray: `${
|
|
176
|
-
strokeDashoffset:
|
|
177
|
-
})),
|
|
178
|
-
strokeDasharray: `${
|
|
179
|
-
strokeDashoffset:
|
|
358
|
+
}), y = f(() => 2 * Math.PI * E.value), x = f(() => a.type === "dashboard" ? 0.75 : 1), N = f(() => `${-1 * y.value * (1 - x.value) / 2}px`), z = f(() => ({
|
|
359
|
+
strokeDasharray: `${y.value * x.value}px, ${y.value}px`,
|
|
360
|
+
strokeDashoffset: N.value
|
|
361
|
+
})), l = f(() => ({
|
|
362
|
+
strokeDasharray: `${y.value * x.value * (a.percentage / 100)}px, ${y.value}px`,
|
|
363
|
+
strokeDashoffset: N.value,
|
|
180
364
|
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
181
|
-
})),
|
|
182
|
-
let
|
|
183
|
-
return
|
|
184
|
-
}),
|
|
185
|
-
function
|
|
186
|
-
const
|
|
187
|
-
return
|
|
188
|
-
color:
|
|
189
|
-
percentage: (
|
|
190
|
-
} :
|
|
365
|
+
})), w = f(() => {
|
|
366
|
+
let n;
|
|
367
|
+
return a.color ? n = D(a.percentage) : n = B[a.status] || B.default, n;
|
|
368
|
+
}), k = f(() => a.status === "warning" ? Me : a.type === "line" ? a.status === "success" ? Ee : Ve : a.status === "success" ? Be : xe), Y = f(() => a.type === "line" ? 12 + a.strokeWidth * 0.4 : a.width * 0.111111 + 2), K = f(() => a.format(a.percentage));
|
|
369
|
+
function Z(n) {
|
|
370
|
+
const p = 100 / n.length;
|
|
371
|
+
return n.map((I, Q) => se(I) ? {
|
|
372
|
+
color: I,
|
|
373
|
+
percentage: (Q + 1) * p
|
|
374
|
+
} : I).sort((I, Q) => I.percentage - Q.percentage);
|
|
191
375
|
}
|
|
192
|
-
const
|
|
193
|
-
var
|
|
194
|
-
const { color:
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
376
|
+
const D = (n) => {
|
|
377
|
+
var I;
|
|
378
|
+
const { color: p } = a;
|
|
379
|
+
if (Je(p))
|
|
380
|
+
return p(n);
|
|
381
|
+
if (se(p))
|
|
382
|
+
return p;
|
|
199
383
|
{
|
|
200
|
-
const
|
|
201
|
-
for (const
|
|
202
|
-
if (
|
|
203
|
-
return
|
|
204
|
-
return (
|
|
384
|
+
const Q = Z(p);
|
|
385
|
+
for (const q of Q)
|
|
386
|
+
if (q.percentage > n)
|
|
387
|
+
return q.color;
|
|
388
|
+
return (I = Q[Q.length - 1]) == null ? void 0 : I.color;
|
|
205
389
|
}
|
|
206
390
|
};
|
|
207
|
-
return (
|
|
208
|
-
class:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
391
|
+
return (n, p) => (i(), v("div", {
|
|
392
|
+
class: C([
|
|
393
|
+
c(o).b(),
|
|
394
|
+
c(o).m(e.type),
|
|
395
|
+
c(o).is(e.status),
|
|
212
396
|
{
|
|
213
|
-
[
|
|
214
|
-
[
|
|
397
|
+
[c(o).m("without-text")]: !e.showText,
|
|
398
|
+
[c(o).m("text-inside")]: e.textInside
|
|
215
399
|
}
|
|
216
400
|
]),
|
|
217
401
|
role: "progressbar",
|
|
218
402
|
"aria-valuenow": e.percentage,
|
|
219
403
|
"aria-valuemin": "0",
|
|
220
404
|
"aria-valuemax": "100"
|
|
221
|
-
}, [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"stroke-linecap": e.strokeLinecap,
|
|
271
|
-
"stroke-width": a(E),
|
|
272
|
-
style: J(a(o))
|
|
273
|
-
}, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
|
|
274
|
-
]))
|
|
275
|
-
], 6)),
|
|
276
|
-
(e.showText || e.$slots.default) && !e.textInside ? (l(), f("div", {
|
|
277
|
-
key: 2,
|
|
278
|
-
class: w(a(n).e("text")),
|
|
279
|
-
style: J({ fontSize: `${a(P)}px` })
|
|
280
|
-
}, [
|
|
281
|
-
re(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
282
|
-
e.status ? (l(), K(a(ne), { key: 1 }, {
|
|
283
|
-
default: k(() => [
|
|
284
|
-
(l(), K(ge(a(B))))
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
})) : (l(), f("span", { key: 0 }, L(a(O)), 1))
|
|
288
|
-
])
|
|
289
|
-
], 6)) : Q("v-if", !0)
|
|
290
|
-
], 10, ["aria-valuenow"]));
|
|
405
|
+
}, [e.type === "line" ? (i(), v("div", {
|
|
406
|
+
key: 0,
|
|
407
|
+
class: C(c(o).b("bar"))
|
|
408
|
+
}, [d("div", {
|
|
409
|
+
class: C(c(o).be("bar", "outer")),
|
|
410
|
+
style: L({ height: `${e.strokeWidth}px` })
|
|
411
|
+
}, [d("div", {
|
|
412
|
+
class: C([
|
|
413
|
+
c(o).be("bar", "inner"),
|
|
414
|
+
{ [c(o).bem("bar", "inner", "indeterminate")]: e.indeterminate },
|
|
415
|
+
{ [c(o).bem("bar", "inner", "striped")]: e.striped },
|
|
416
|
+
{ [c(o).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
|
|
417
|
+
]),
|
|
418
|
+
style: L(g.value)
|
|
419
|
+
}, [(e.showText || n.$slots.default) && e.textInside ? (i(), v("div", {
|
|
420
|
+
key: 0,
|
|
421
|
+
class: C(c(o).be("bar", "innerText"))
|
|
422
|
+
}, [le(n.$slots, "default", { percentage: e.percentage }, () => [d("span", null, O(K.value), 1)])], 2)) : P("v-if", !0)], 6)], 6)], 2)) : (i(), v("div", {
|
|
423
|
+
key: 1,
|
|
424
|
+
class: C(c(o).b("circle")),
|
|
425
|
+
style: L({
|
|
426
|
+
height: `${e.width}px`,
|
|
427
|
+
width: `${e.width}px`
|
|
428
|
+
})
|
|
429
|
+
}, [(i(), v("svg", rt, [d("path", {
|
|
430
|
+
class: C(c(o).be("circle", "track")),
|
|
431
|
+
d: b.value,
|
|
432
|
+
stroke: `var(${c(o).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
433
|
+
"stroke-linecap": e.strokeLinecap,
|
|
434
|
+
"stroke-width": h.value,
|
|
435
|
+
fill: "none",
|
|
436
|
+
style: L(z.value)
|
|
437
|
+
}, null, 14, it), d("path", {
|
|
438
|
+
class: C(c(o).be("circle", "path")),
|
|
439
|
+
d: b.value,
|
|
440
|
+
stroke: w.value,
|
|
441
|
+
fill: "none",
|
|
442
|
+
opacity: e.percentage ? 1 : 0,
|
|
443
|
+
"stroke-linecap": e.strokeLinecap,
|
|
444
|
+
"stroke-width": h.value,
|
|
445
|
+
style: L(l.value)
|
|
446
|
+
}, null, 14, ut)]))], 6)), (e.showText || n.$slots.default) && !e.textInside ? (i(), v("div", {
|
|
447
|
+
key: 2,
|
|
448
|
+
class: C(c(o).e("text")),
|
|
449
|
+
style: L({ fontSize: `${Y.value}px` })
|
|
450
|
+
}, [le(n.$slots, "default", { percentage: e.percentage }, () => [e.status ? (i(), R(c(ne), { key: 1 }, {
|
|
451
|
+
default: S(() => [(i(), R(he(k.value)))]),
|
|
452
|
+
_: 1
|
|
453
|
+
})) : (i(), v("span", ct, O(K.value), 1))])], 6)) : P("v-if", !0)], 10, ot));
|
|
291
454
|
}
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-dialog-body" }, nt = { class: "avatar" }, lt = { class: "message-content" }, it = {
|
|
455
|
+
}), ft = dt;
|
|
456
|
+
const vt = ge(ft);
|
|
457
|
+
const mt = "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==", pt = "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 gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class: "message-content" }, ht = {
|
|
297
459
|
key: 0,
|
|
298
460
|
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
299
|
-
},
|
|
461
|
+
}, kt = {
|
|
300
462
|
key: 1,
|
|
301
463
|
class: "node-progress"
|
|
302
|
-
},
|
|
464
|
+
}, bt = { class: "node-status-icon" }, wt = { class: "node-name" }, Tt = { class: "progress-footer" }, St = { class: "progress-text" }, Ct = ["innerHTML"], Dt = {
|
|
303
465
|
key: 4,
|
|
304
466
|
class: "message-content-footer"
|
|
305
|
-
},
|
|
467
|
+
}, Mt = {
|
|
306
468
|
key: 0,
|
|
307
469
|
class: "feedback-box"
|
|
308
|
-
},
|
|
309
|
-
/* @__PURE__ */ d("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
310
|
-
], -1)), bt = { class: "feedback-dialog-content" }, Tt = /* @__PURE__ */ le(() => /* @__PURE__ */ d("div", { class: "feedback-emoji" }, "😟", -1)), _t = /* @__PURE__ */ le(() => /* @__PURE__ */ d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), St = { class: "dialog-footer" }, Dt = {
|
|
470
|
+
}, Et = ["onClick"], Vt = ["onClick"], Bt = { class: "input-area" }, xt = { class: "input-actions" }, Nt = { class: "feedback-dialog-content" }, It = { class: "dialog-footer" }, Ut = {
|
|
311
471
|
__name: "index",
|
|
312
472
|
props: {
|
|
313
473
|
defaultMessage: {
|
|
@@ -319,236 +479,236 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
319
479
|
}
|
|
320
480
|
},
|
|
321
481
|
emits: ["callBack"],
|
|
322
|
-
setup(
|
|
323
|
-
const
|
|
482
|
+
setup(e, { expose: B, emit: a }) {
|
|
483
|
+
const o = Ae("stConfig"), g = ke(qe()), h = T(!1), E = a, b = e, y = T(!1), x = T(!1), N = T(!1), z = T(null), l = T([
|
|
324
484
|
{
|
|
325
485
|
role: "defaultMessage",
|
|
326
486
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
327
|
-
content:
|
|
487
|
+
content: b.defaultMessage,
|
|
328
488
|
fullQuery: "",
|
|
329
489
|
historyList: [],
|
|
330
490
|
userContent: null,
|
|
331
491
|
showFeedback: !1,
|
|
332
|
-
createTime:
|
|
492
|
+
createTime: G().format("YYYY-MM-DD HH:mm:ss"),
|
|
333
493
|
resTime: 0,
|
|
334
494
|
firstPackageTime: 0
|
|
335
495
|
}
|
|
336
|
-
]),
|
|
337
|
-
const r =
|
|
496
|
+
]), w = T(null), k = T(""), Y = T(!1), K = T(""), Z = T({}), D = T([]), n = f(() => D.value.length), p = f(() => D.value.filter((r) => r.status === "success").length), I = f(() => n.value ? p.value / n.value * 100 : 0), Q = f(() => {
|
|
497
|
+
const r = D.value.find((t) => t.status === "executing");
|
|
338
498
|
return r ? r.name : "处理中";
|
|
339
|
-
}),
|
|
340
|
-
const r =
|
|
499
|
+
}), q = async () => {
|
|
500
|
+
const r = k.value.trim();
|
|
341
501
|
if (!r)
|
|
342
|
-
return
|
|
343
|
-
if (
|
|
502
|
+
return ee.warning("请输入消息内容");
|
|
503
|
+
if (y.value)
|
|
344
504
|
return;
|
|
345
|
-
|
|
505
|
+
D.value = [], N.value = !1, l.value.push({
|
|
346
506
|
role: "user",
|
|
347
507
|
content: r,
|
|
348
|
-
createTime:
|
|
349
|
-
}),
|
|
508
|
+
createTime: G().format("YYYY-MM-DD HH:mm:ss")
|
|
509
|
+
}), k.value = "", await J(), l.value.push({
|
|
350
510
|
role: "assistant",
|
|
351
511
|
content: "",
|
|
352
512
|
fullQuery: "",
|
|
353
513
|
historyList: [],
|
|
354
514
|
userContent: r,
|
|
355
515
|
showFeedback: !1,
|
|
356
|
-
createTime:
|
|
516
|
+
createTime: G().format("YYYY-MM-DD HH:mm:ss"),
|
|
357
517
|
resTime: 0,
|
|
358
518
|
firstPackageTime: 0
|
|
359
|
-
}), await
|
|
360
|
-
let
|
|
519
|
+
}), await J(), y.value = !0, x.value = !0;
|
|
520
|
+
let t = "", s = (/* @__PURE__ */ new Date()).getTime(), _ = !1;
|
|
361
521
|
try {
|
|
362
|
-
await
|
|
363
|
-
baseUrl:
|
|
364
|
-
token:
|
|
522
|
+
await Xe({
|
|
523
|
+
baseUrl: o.env.VITE_BASE_URL,
|
|
524
|
+
token: Ge(),
|
|
365
525
|
value: r,
|
|
366
|
-
sessionId:
|
|
367
|
-
userId:
|
|
368
|
-
callback: (
|
|
369
|
-
if (
|
|
370
|
-
const m =
|
|
371
|
-
m.historyList =
|
|
526
|
+
sessionId: w.value,
|
|
527
|
+
userId: g.id,
|
|
528
|
+
callback: (V, M) => {
|
|
529
|
+
if (V === "session" && (w.value = M), V === "historyList") {
|
|
530
|
+
const m = l.value[l.value.length - 1];
|
|
531
|
+
m.historyList = M;
|
|
372
532
|
}
|
|
373
|
-
if (
|
|
374
|
-
const m =
|
|
375
|
-
m.fullQuery =
|
|
533
|
+
if (V === "fullQuery") {
|
|
534
|
+
const m = l.value[l.value.length - 1];
|
|
535
|
+
m.fullQuery = M;
|
|
376
536
|
}
|
|
377
|
-
if (
|
|
378
|
-
if (!
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
|
|
537
|
+
if (V === "node") {
|
|
538
|
+
if (!_) {
|
|
539
|
+
_ = !0, x.value = !1;
|
|
540
|
+
const F = l.value[l.value.length - 1];
|
|
541
|
+
F && F.role === "assistant" && F.firstPackageTime === 0 && (F.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - s);
|
|
382
542
|
}
|
|
383
|
-
const m =
|
|
384
|
-
m ? m.status =
|
|
543
|
+
const m = D.value.find((F) => F.name === M.name);
|
|
544
|
+
m ? m.status = M.status : D.value.push({ name: M.name, status: M.status }), J();
|
|
385
545
|
return;
|
|
386
546
|
}
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
const m =
|
|
390
|
-
m && m.role === "assistant" && (m.content =
|
|
547
|
+
if (V === "message") {
|
|
548
|
+
t = M;
|
|
549
|
+
const m = l.value[l.value.length - 1];
|
|
550
|
+
m && m.role === "assistant" && (m.content = t, J());
|
|
391
551
|
}
|
|
392
|
-
if (
|
|
393
|
-
|
|
394
|
-
const m =
|
|
395
|
-
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() -
|
|
552
|
+
if (V === "finish") {
|
|
553
|
+
y.value = !1, N.value = !0;
|
|
554
|
+
const m = l.value[l.value.length - 1];
|
|
555
|
+
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - s, $("default", l.value.length - 1));
|
|
396
556
|
}
|
|
397
|
-
if (
|
|
398
|
-
|
|
557
|
+
if (V === "error") {
|
|
558
|
+
x.value = !1, y.value = !1, l.value.pop(), l.value.push({
|
|
399
559
|
role: "assistant",
|
|
400
560
|
userContent: r,
|
|
401
|
-
content: `❌ ${
|
|
561
|
+
content: `❌ ${M}`,
|
|
402
562
|
showFeedback: !1,
|
|
403
|
-
createTime:
|
|
404
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
563
|
+
createTime: G().format("YYYY-MM-DD HH:mm:ss"),
|
|
564
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - s,
|
|
405
565
|
firstPackageTime: 0
|
|
406
|
-
}), $("default",
|
|
566
|
+
}), $("default", l.value.length - 1), J();
|
|
407
567
|
return;
|
|
408
568
|
}
|
|
409
569
|
}
|
|
410
570
|
});
|
|
411
|
-
} catch (
|
|
412
|
-
|
|
571
|
+
} catch (V) {
|
|
572
|
+
ee.error(`AI响应异常: ${V}`), l.value.pop(), l.value.push({
|
|
413
573
|
role: "assistant",
|
|
414
574
|
userContent: r,
|
|
415
575
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
416
576
|
showFeedback: !0,
|
|
417
|
-
createTime:
|
|
418
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
577
|
+
createTime: G().format("YYYY-MM-DD HH:mm:ss"),
|
|
578
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - s,
|
|
419
579
|
firstPackageTime: 0
|
|
420
|
-
}), $("default",
|
|
580
|
+
}), $("default", l.value.length - 1), await J(), y.value = !1, x.value = !1;
|
|
421
581
|
}
|
|
422
|
-
},
|
|
423
|
-
const { parsedConditions:
|
|
424
|
-
console.log({ parsedConditions:
|
|
425
|
-
}, $ = async (r,
|
|
582
|
+
}, Se = (r) => {
|
|
583
|
+
const { parsedConditions: t, ...s } = JSON.parse(r);
|
|
584
|
+
console.log({ parsedConditions: t, webParams: s }), E("callBack", s);
|
|
585
|
+
}, $ = async (r, t) => {
|
|
426
586
|
switch (r) {
|
|
427
587
|
case "satisfied": {
|
|
428
|
-
const
|
|
429
|
-
await
|
|
430
|
-
userName:
|
|
431
|
-
userContent:
|
|
432
|
-
sessionId:
|
|
433
|
-
fullQuery:
|
|
434
|
-
historyList: JSON.stringify(
|
|
435
|
-
aiContent:
|
|
588
|
+
const s = l.value[t];
|
|
589
|
+
await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
590
|
+
userName: g.username,
|
|
591
|
+
userContent: s.userContent,
|
|
592
|
+
sessionId: w.value,
|
|
593
|
+
fullQuery: s.fullQuery,
|
|
594
|
+
historyList: JSON.stringify(s.historyList ?? []),
|
|
595
|
+
aiContent: s.content,
|
|
436
596
|
type: 1,
|
|
437
|
-
createTime:
|
|
438
|
-
resTime:
|
|
439
|
-
firstPackageTime:
|
|
597
|
+
createTime: s.createTime,
|
|
598
|
+
resTime: s.resTime,
|
|
599
|
+
firstPackageTime: s.firstPackageTime,
|
|
440
600
|
isSolved: 1,
|
|
441
601
|
logOrigin: 1
|
|
442
|
-
}),
|
|
602
|
+
}), ee.success("感谢您的评价!"), l.value[t].showFeedback = !1;
|
|
443
603
|
break;
|
|
444
604
|
}
|
|
445
605
|
case "open": {
|
|
446
|
-
|
|
606
|
+
Z.value = t, Y.value = !0;
|
|
447
607
|
break;
|
|
448
608
|
}
|
|
449
609
|
case "unsatisfied": {
|
|
450
|
-
const
|
|
451
|
-
await
|
|
452
|
-
userName:
|
|
453
|
-
userContent:
|
|
454
|
-
sessionId:
|
|
455
|
-
fullQuery:
|
|
456
|
-
historyList: JSON.stringify(
|
|
457
|
-
userSuggestion:
|
|
458
|
-
aiContent:
|
|
610
|
+
const s = l.value[t];
|
|
611
|
+
await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
612
|
+
userName: g.username,
|
|
613
|
+
userContent: s.userContent,
|
|
614
|
+
sessionId: w.value,
|
|
615
|
+
fullQuery: s.fullQuery,
|
|
616
|
+
historyList: JSON.stringify(s.historyList ?? []),
|
|
617
|
+
userSuggestion: K.value,
|
|
618
|
+
aiContent: s.content,
|
|
459
619
|
type: 2,
|
|
460
|
-
resTime:
|
|
461
|
-
createTime:
|
|
462
|
-
firstPackageTime:
|
|
620
|
+
resTime: s.resTime,
|
|
621
|
+
createTime: s.createTime,
|
|
622
|
+
firstPackageTime: s.firstPackageTime,
|
|
463
623
|
isSolved: 0,
|
|
464
624
|
logOrigin: 1
|
|
465
|
-
}),
|
|
625
|
+
}), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, l.value[t].showFeedback = !1;
|
|
466
626
|
break;
|
|
467
627
|
}
|
|
468
628
|
case "default": {
|
|
469
|
-
const
|
|
629
|
+
const s = l.value[t];
|
|
470
630
|
console.log({
|
|
471
|
-
userName:
|
|
472
|
-
userContent:
|
|
473
|
-
sessionId:
|
|
474
|
-
fullQuery:
|
|
475
|
-
historyList: JSON.stringify(
|
|
476
|
-
aiContent:
|
|
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,
|
|
477
637
|
type: null,
|
|
478
|
-
resTime:
|
|
479
|
-
createTime:
|
|
480
|
-
firstPackageTime:
|
|
638
|
+
resTime: s.resTime,
|
|
639
|
+
createTime: s.createTime,
|
|
640
|
+
firstPackageTime: s.firstPackageTime,
|
|
481
641
|
isSolved: 1,
|
|
482
642
|
logOrigin: 1
|
|
483
|
-
}), await
|
|
484
|
-
userName:
|
|
485
|
-
userContent:
|
|
486
|
-
sessionId:
|
|
487
|
-
fullQuery:
|
|
488
|
-
historyList: JSON.stringify(
|
|
489
|
-
aiContent:
|
|
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,
|
|
490
650
|
type: null,
|
|
491
|
-
resTime:
|
|
492
|
-
createTime:
|
|
493
|
-
firstPackageTime:
|
|
651
|
+
resTime: s.resTime,
|
|
652
|
+
createTime: s.createTime,
|
|
653
|
+
firstPackageTime: s.firstPackageTime,
|
|
494
654
|
isSolved: 1,
|
|
495
655
|
logOrigin: 1
|
|
496
656
|
});
|
|
497
657
|
}
|
|
498
658
|
}
|
|
499
|
-
},
|
|
659
|
+
}, Ce = (r) => {
|
|
500
660
|
if (r.key === "Enter")
|
|
501
661
|
if (r.ctrlKey) {
|
|
502
662
|
r.preventDefault();
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
` +
|
|
506
|
-
|
|
663
|
+
const t = r.target, s = t.selectionStart, _ = t.selectionEnd;
|
|
664
|
+
k.value = k.value.substring(0, s) + `
|
|
665
|
+
` + k.value.substring(_), te(() => {
|
|
666
|
+
t.selectionStart = t.selectionEnd = s + 1;
|
|
507
667
|
});
|
|
508
668
|
} else
|
|
509
|
-
r.preventDefault(),
|
|
510
|
-
},
|
|
511
|
-
await
|
|
512
|
-
},
|
|
669
|
+
r.preventDefault(), q();
|
|
670
|
+
}, J = async () => {
|
|
671
|
+
await te(), z.value && (z.value.scrollTop = z.value.scrollHeight);
|
|
672
|
+
}, ue = (r) => {
|
|
513
673
|
if (typeof r != "string")
|
|
514
674
|
return !1;
|
|
515
675
|
try {
|
|
516
|
-
const
|
|
517
|
-
return
|
|
676
|
+
const t = JSON.parse(r);
|
|
677
|
+
return t !== null && typeof t == "object";
|
|
518
678
|
} catch {
|
|
519
679
|
return !1;
|
|
520
680
|
}
|
|
521
|
-
},
|
|
522
|
-
const { parsedConditions:
|
|
523
|
-
let
|
|
524
|
-
return
|
|
525
|
-
|
|
526
|
-
}),
|
|
681
|
+
}, De = (r) => {
|
|
682
|
+
const { parsedConditions: t } = JSON.parse(r);
|
|
683
|
+
let s = "";
|
|
684
|
+
return t != null && t.length && (s += '<div class="parsed-conditions">', t.forEach((_) => {
|
|
685
|
+
s += `<div class="parsed-conditions-item">${_}</div>`;
|
|
686
|
+
}), s += "</div>"), s;
|
|
527
687
|
};
|
|
528
|
-
return
|
|
529
|
-
() =>
|
|
688
|
+
return ae(
|
|
689
|
+
() => l.value,
|
|
530
690
|
() => {
|
|
531
|
-
|
|
691
|
+
J();
|
|
532
692
|
},
|
|
533
693
|
{ deep: !0 }
|
|
534
|
-
),
|
|
535
|
-
() =>
|
|
694
|
+
), ae(
|
|
695
|
+
() => Y.value,
|
|
536
696
|
(r) => {
|
|
537
|
-
r || (
|
|
697
|
+
r || (K.value = "");
|
|
538
698
|
}
|
|
539
|
-
),
|
|
699
|
+
), B({
|
|
540
700
|
open: () => {
|
|
541
|
-
|
|
542
|
-
|
|
701
|
+
h.value = !0, te(() => {
|
|
702
|
+
J();
|
|
543
703
|
});
|
|
544
704
|
}
|
|
545
|
-
}), (r,
|
|
546
|
-
const
|
|
547
|
-
return
|
|
548
|
-
A(
|
|
705
|
+
}), (r, t) => {
|
|
706
|
+
const s = lt, _ = ne, V = vt, M = me, m = $e, F = Pe, ce = je;
|
|
707
|
+
return i(), v(W, null, [
|
|
708
|
+
A(ce, {
|
|
549
709
|
class: "ai-dialog",
|
|
550
|
-
modelValue:
|
|
551
|
-
"onUpdate:modelValue":
|
|
710
|
+
modelValue: h.value,
|
|
711
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => h.value = u),
|
|
552
712
|
title: "✨ 品种池参数解析AI助手",
|
|
553
713
|
width: "500px",
|
|
554
714
|
center: "",
|
|
@@ -557,138 +717,140 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
557
717
|
modal: !1,
|
|
558
718
|
"modal-penetrable": !0
|
|
559
719
|
}, {
|
|
560
|
-
default:
|
|
561
|
-
d("div",
|
|
720
|
+
default: S(() => [
|
|
721
|
+
d("div", gt, [
|
|
562
722
|
d("div", {
|
|
563
723
|
ref_key: "messageListRef",
|
|
564
|
-
ref:
|
|
724
|
+
ref: z,
|
|
565
725
|
class: "message-list"
|
|
566
726
|
}, [
|
|
567
|
-
(
|
|
727
|
+
(i(!0), v(W, null, ve(l.value, (u, H) => (i(), v("div", {
|
|
568
728
|
key: H,
|
|
569
|
-
class:
|
|
729
|
+
class: C([u.role, "message-item"])
|
|
570
730
|
}, [
|
|
571
|
-
|
|
572
|
-
d("div",
|
|
573
|
-
A(
|
|
731
|
+
u.content || H === l.value.length - 1 && u.role === "assistant" && D.value.length > 0 ? (i(), v(W, { key: 0 }, [
|
|
732
|
+
d("div", yt, [
|
|
733
|
+
A(s, {
|
|
574
734
|
size: 32,
|
|
575
|
-
icon:
|
|
735
|
+
icon: u.role === "user" ? c(Ne) : c(Ie)
|
|
576
736
|
}, null, 8, ["icon"])
|
|
577
737
|
]),
|
|
578
|
-
d("div",
|
|
579
|
-
|
|
580
|
-
H ===
|
|
581
|
-
(
|
|
738
|
+
d("div", At, [
|
|
739
|
+
u.fullQuery ? (i(), v("div", ht, " 筛选结果: " + O(u.fullQuery), 1)) : P("", !0),
|
|
740
|
+
H === l.value.length - 1 && u.role === "assistant" && D.value.length > 0 && !N.value ? (i(), v("div", kt, [
|
|
741
|
+
(i(!0), v(W, null, ve(D.value, (j) => (i(), v("div", {
|
|
582
742
|
key: j.name,
|
|
583
743
|
class: "node-progress-item"
|
|
584
744
|
}, [
|
|
585
|
-
d("span",
|
|
586
|
-
j.status === "success" ? (
|
|
745
|
+
d("span", bt, [
|
|
746
|
+
j.status === "success" ? (i(), R(_, {
|
|
587
747
|
key: 0,
|
|
588
748
|
class: "node-icon done"
|
|
589
749
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
A(
|
|
750
|
+
default: S(() => [
|
|
751
|
+
A(c(Ue))
|
|
592
752
|
]),
|
|
593
753
|
_: 1
|
|
594
|
-
})) : (
|
|
754
|
+
})) : (i(), R(_, {
|
|
595
755
|
key: 1,
|
|
596
756
|
class: "node-icon running"
|
|
597
757
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
A(
|
|
758
|
+
default: S(() => [
|
|
759
|
+
A(c(Qe))
|
|
600
760
|
]),
|
|
601
761
|
_: 1
|
|
602
762
|
}))
|
|
603
763
|
]),
|
|
604
|
-
d("span",
|
|
764
|
+
d("span", wt, O(j.name), 1)
|
|
605
765
|
]))), 128)),
|
|
606
|
-
d("div",
|
|
607
|
-
A(
|
|
608
|
-
percentage:
|
|
766
|
+
d("div", Tt, [
|
|
767
|
+
A(V, {
|
|
768
|
+
percentage: I.value,
|
|
609
769
|
"show-text": !1,
|
|
610
770
|
"stroke-width": 4,
|
|
611
771
|
color: "#667eea"
|
|
612
772
|
}, null, 8, ["percentage"]),
|
|
613
|
-
d("span",
|
|
773
|
+
d("span", St, "第 " + O(p.value) + "/" + O(n.value) + " 步 · " + O(Q.value), 1)
|
|
614
774
|
])
|
|
615
|
-
])) :
|
|
616
|
-
|
|
775
|
+
])) : P("", !0),
|
|
776
|
+
ue(u.content) ? (i(), v("div", {
|
|
617
777
|
key: 2,
|
|
618
|
-
class:
|
|
619
|
-
innerHTML:
|
|
620
|
-
}, null, 10,
|
|
778
|
+
class: C(["message-content-json", { "result-animation": H === l.value.length - 1 && N.value }]),
|
|
779
|
+
innerHTML: De(u.content)
|
|
780
|
+
}, null, 10, Ct)) : u.content ? (i(), v("div", {
|
|
621
781
|
key: 3,
|
|
622
|
-
class:
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
A(
|
|
782
|
+
class: C(["message-content-text", { "result-animation": H === l.value.length - 1 && N.value }])
|
|
783
|
+
}, O(u.content), 3)) : P("", !0),
|
|
784
|
+
u.role === "assistant" ? (i(), v("div", Dt, [
|
|
785
|
+
u.showFeedback ? (i(), v("div", Mt, [
|
|
786
|
+
A(M, {
|
|
627
787
|
content: "满意",
|
|
628
788
|
placement: "bottom"
|
|
629
789
|
}, {
|
|
630
|
-
default:
|
|
790
|
+
default: S(() => [
|
|
631
791
|
d("img", {
|
|
632
|
-
src:
|
|
792
|
+
src: mt,
|
|
633
793
|
alt: "满意",
|
|
634
794
|
onClick: (j) => $("satisfied", H)
|
|
635
|
-
}, null, 8,
|
|
795
|
+
}, null, 8, Et)
|
|
636
796
|
]),
|
|
637
797
|
_: 2
|
|
638
798
|
}, 1024),
|
|
639
|
-
A(
|
|
799
|
+
A(M, {
|
|
640
800
|
content: "满意",
|
|
641
801
|
placement: "bottom"
|
|
642
802
|
}, {
|
|
643
|
-
default:
|
|
803
|
+
default: S(() => [
|
|
644
804
|
d("img", {
|
|
645
|
-
src:
|
|
805
|
+
src: pt,
|
|
646
806
|
alt: "不满意",
|
|
647
807
|
onClick: (j) => $("open", H)
|
|
648
|
-
}, null, 8,
|
|
808
|
+
}, null, 8, Vt)
|
|
649
809
|
]),
|
|
650
810
|
_: 2
|
|
651
811
|
}, 1024)
|
|
652
|
-
])) :
|
|
653
|
-
|
|
812
|
+
])) : P("", !0),
|
|
813
|
+
ue(u.content) ? (i(), R(m, {
|
|
654
814
|
key: 1,
|
|
655
815
|
class: "confirm-btn",
|
|
656
|
-
onClick: (j) =>
|
|
816
|
+
onClick: (j) => Se(u.content)
|
|
657
817
|
}, {
|
|
658
|
-
default:
|
|
659
|
-
|
|
660
|
-
]),
|
|
661
|
-
_:
|
|
662
|
-
},
|
|
663
|
-
])) :
|
|
818
|
+
default: S(() => [...t[6] || (t[6] = [
|
|
819
|
+
X(" 确认查询 ", -1)
|
|
820
|
+
])]),
|
|
821
|
+
_: 1
|
|
822
|
+
}, 8, ["onClick"])) : P("", !0)
|
|
823
|
+
])) : P("", !0)
|
|
664
824
|
])
|
|
665
|
-
], 64)) :
|
|
825
|
+
], 64)) : P("", !0)
|
|
666
826
|
], 2))), 128))
|
|
667
827
|
], 512),
|
|
668
|
-
d("div",
|
|
669
|
-
A(
|
|
828
|
+
d("div", Bt, [
|
|
829
|
+
A(F, {
|
|
670
830
|
class: "message-input",
|
|
671
|
-
modelValue:
|
|
672
|
-
"onUpdate:modelValue":
|
|
831
|
+
modelValue: k.value,
|
|
832
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => k.value = u),
|
|
673
833
|
type: "textarea",
|
|
674
834
|
rows: 4,
|
|
675
835
|
autosize: { minRows: 2, maxRows: 4 },
|
|
676
836
|
placeholder: "输入您想查询的品种条件...",
|
|
677
|
-
onKeydown:
|
|
837
|
+
onKeydown: Ce
|
|
678
838
|
}, null, 8, ["modelValue"]),
|
|
679
|
-
d("div",
|
|
680
|
-
|
|
839
|
+
d("div", xt, [
|
|
840
|
+
t[8] || (t[8] = d("div", { class: "input-hint" }, [
|
|
841
|
+
d("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
842
|
+
], -1)),
|
|
681
843
|
A(m, {
|
|
682
844
|
class: "send-btn",
|
|
683
845
|
type: "primary",
|
|
684
|
-
icon:
|
|
685
|
-
loading:
|
|
686
|
-
onClick:
|
|
846
|
+
icon: c(_e),
|
|
847
|
+
loading: y.value,
|
|
848
|
+
onClick: q,
|
|
687
849
|
round: ""
|
|
688
850
|
}, {
|
|
689
|
-
default:
|
|
690
|
-
|
|
691
|
-
]),
|
|
851
|
+
default: S(() => [...t[7] || (t[7] = [
|
|
852
|
+
X(" 发送 ", -1)
|
|
853
|
+
])]),
|
|
692
854
|
_: 1
|
|
693
855
|
}, 8, ["icon", "loading"])
|
|
694
856
|
])
|
|
@@ -697,40 +859,40 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
697
859
|
]),
|
|
698
860
|
_: 1
|
|
699
861
|
}, 8, ["modelValue"]),
|
|
700
|
-
A(
|
|
701
|
-
modelValue:
|
|
702
|
-
"onUpdate:modelValue":
|
|
862
|
+
A(ce, {
|
|
863
|
+
modelValue: Y.value,
|
|
864
|
+
"onUpdate:modelValue": t[5] || (t[5] = (u) => Y.value = u),
|
|
703
865
|
title: "📝 反馈意见",
|
|
704
866
|
width: "400px"
|
|
705
867
|
}, {
|
|
706
|
-
footer:
|
|
707
|
-
d("span",
|
|
868
|
+
footer: S(() => [
|
|
869
|
+
d("span", It, [
|
|
708
870
|
A(m, {
|
|
709
|
-
onClick:
|
|
871
|
+
onClick: t[3] || (t[3] = (u) => Y.value = !1)
|
|
710
872
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
|
|
713
|
-
]),
|
|
873
|
+
default: S(() => [...t[11] || (t[11] = [
|
|
874
|
+
X("取消", -1)
|
|
875
|
+
])]),
|
|
714
876
|
_: 1
|
|
715
877
|
}),
|
|
716
878
|
A(m, {
|
|
717
879
|
type: "primary",
|
|
718
|
-
onClick:
|
|
880
|
+
onClick: t[4] || (t[4] = (u) => $("unsatisfied", Z.value))
|
|
719
881
|
}, {
|
|
720
|
-
default:
|
|
721
|
-
|
|
722
|
-
]),
|
|
882
|
+
default: S(() => [...t[12] || (t[12] = [
|
|
883
|
+
X("提交反馈", -1)
|
|
884
|
+
])]),
|
|
723
885
|
_: 1
|
|
724
886
|
})
|
|
725
887
|
])
|
|
726
888
|
]),
|
|
727
|
-
default:
|
|
728
|
-
d("div",
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
A(
|
|
732
|
-
modelValue:
|
|
733
|
-
"onUpdate:modelValue":
|
|
889
|
+
default: S(() => [
|
|
890
|
+
d("div", Nt, [
|
|
891
|
+
t[9] || (t[9] = d("div", { class: "feedback-emoji" }, "😟", -1)),
|
|
892
|
+
t[10] || (t[10] = d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)),
|
|
893
|
+
A(F, {
|
|
894
|
+
modelValue: K.value,
|
|
895
|
+
"onUpdate:modelValue": t[2] || (t[2] = (u) => K.value = u),
|
|
734
896
|
type: "textarea",
|
|
735
897
|
rows: 4,
|
|
736
898
|
placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
|
|
@@ -742,11 +904,11 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
742
904
|
], 64);
|
|
743
905
|
};
|
|
744
906
|
}
|
|
745
|
-
},
|
|
746
|
-
install(
|
|
747
|
-
|
|
907
|
+
}, Qt = /* @__PURE__ */ Ze(Ut, [["__scopeId", "data-v-7e3d6eda"]]), us = {
|
|
908
|
+
install(e) {
|
|
909
|
+
e.component("st-varietyAiHelper", Qt);
|
|
748
910
|
}
|
|
749
911
|
};
|
|
750
912
|
export {
|
|
751
|
-
|
|
913
|
+
us as default
|
|
752
914
|
};
|