st-comp 0.0.279 → 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/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +377 -376
- 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 +260 -260
- 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 +43 -43
- 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 +615 -464
- 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-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1927 -2259
- package/es/_baseClone-f8e5d3ba.cjs +1 -0
- package/es/_baseClone-fb6a3947.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-06d8207f.js +86 -0
- package/es/config-provider-bb61bd3e.cjs +1 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-8fa21bfd.cjs +1 -0
- package/es/dropdown-bcf8d198.js +178 -0
- package/es/el-autocomplete-13b9e372.cjs +1 -0
- package/es/el-autocomplete-419bfbcf.js +434 -0
- package/es/el-button-ee9fe159.js +343 -0
- package/es/el-button-fac5e058.cjs +1 -0
- package/es/el-checkbox-6cf1a71c.cjs +1 -0
- package/es/el-checkbox-b5ac7f04.js +566 -0
- package/es/el-dialog-060b3735.js +252 -0
- package/es/el-dialog-54aebacd.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-2be6b683.js +1265 -0
- package/es/el-form-item-758dfefa.cjs +12 -0
- package/es/el-input-7fe53030.cjs +1 -0
- package/es/el-input-d23f5442.js +761 -0
- package/es/el-input-number-484fb184.js +390 -0
- package/es/el-input-number-f0f4eedb.cjs +1 -0
- package/es/el-loading-9d3e405c.js +190 -0
- package/es/el-loading-fafaaa7b.cjs +1 -0
- package/es/el-menu-item-0ac22681.js +824 -0
- package/es/el-menu-item-c91ae430.cjs +1 -0
- package/es/el-message-box-568a0aa6.js +481 -0
- package/es/el-message-box-ceacb54e.cjs +1 -0
- package/es/el-overlay-9f36e73c.cjs +1 -0
- package/es/el-overlay-cb5c85aa.js +444 -0
- package/es/el-popconfirm-4a8cd35c.cjs +1 -0
- package/es/el-popconfirm-6f8e65c8.js +190 -0
- package/es/el-popper-0454c8e8.js +2235 -0
- package/es/el-popper-acd0ff35.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-64dc7258.js +168 -0
- package/es/el-segmented-eb3c8e65.cjs +1 -0
- package/es/el-select-a573c78b.js +1535 -0
- package/es/el-select-c317294a.cjs +1 -0
- package/es/el-table-column-1c443963.js +3651 -0
- package/es/el-table-column-f555115d.cjs +14 -0
- package/es/el-tag-2d8a3fe7.js +77 -0
- package/es/el-tag-dca1292c.cjs +1 -0
- package/es/el-text-649c986a.cjs +1 -0
- package/es/el-text-761e6717.js +84 -0
- package/es/index-11181b5f.cjs +1 -0
- package/es/index-21a3dc89.cjs +1 -0
- package/es/index-33e039e3.cjs +1 -0
- package/es/index-3806160e.js +710 -0
- package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
- package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
- package/es/index-5cada1ed.cjs +1 -0
- package/es/index-6a36e1fc.cjs +1 -0
- package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-78dab605.js +141 -0
- package/es/index-798fec2d.cjs +1 -0
- package/es/index-9573f74b.js +372 -0
- package/es/index-a181f161.js +429 -0
- package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
- package/es/index-beb5cb7d.cjs +1 -0
- package/es/index-c09fc6f5.js +131 -0
- package/es/index-ceae4c47.cjs +1 -0
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-d9379af4.js +413 -0
- package/es/index-dddacf80.js +47 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/index-e2e58ea9.js +468 -0
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
- 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-76516e50.cjs +2 -0
- package/es/use-form-item-784142b4.js +422 -0
- package/es/use-global-config-7ff9a1c2.cjs +1 -0
- package/es/use-global-config-9a4ccf33.js +71 -0
- package/es/validator-1926345b.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
- package/es/zh-cn-ad12d9f5.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +265 -246
- package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
- package/lib/{python-4a48fa39.js → python-418be57d.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 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";
|
|
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 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
|
+
import "./index-a181f161.js";
|
|
17
|
+
import "./raf-b4fd1e12.js";
|
|
18
|
+
import "./index-dddacf80.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-9a4ccf33.js";
|
|
22
|
+
import "./index-9573f74b.js";
|
|
23
|
+
import "./index-3806160e.js";
|
|
24
|
+
import "./clamp-c7512966.js";
|
|
25
|
+
import "./toNumber-f077c66a.js";
|
|
26
|
+
import "./config-provider-06d8207f.js";
|
|
27
|
+
import "./scroll-70271cb1.js";
|
|
28
|
+
const nt = ke({
|
|
29
|
+
/**
|
|
30
|
+
* @description avatar size.
|
|
31
|
+
*/
|
|
28
32
|
size: {
|
|
29
33
|
type: [Number, String],
|
|
30
|
-
values:
|
|
31
|
-
|
|
32
|
-
validator: (p) => fe(p)
|
|
34
|
+
values: we,
|
|
35
|
+
validator: (t) => ue(t)
|
|
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: je },
|
|
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: I(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
|
+
}), ot = { error: (t) => t instanceof Event }, Ce = Symbol("avatarGroupContextKey"), rt = {
|
|
71
|
+
/**
|
|
72
|
+
* @description control the size of avatars in this avatar-group
|
|
73
|
+
*/
|
|
74
|
+
size: {
|
|
75
|
+
type: I([Number, String]),
|
|
76
|
+
values: we,
|
|
77
|
+
validator: (t) => ue(t)
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @description control the shape of avatars in this avatar-group
|
|
81
|
+
*/
|
|
82
|
+
shape: {
|
|
83
|
+
type: I(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: I(String),
|
|
106
|
+
default: "light"
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* @description placement of tooltip
|
|
110
|
+
*/
|
|
111
|
+
placement: {
|
|
112
|
+
type: I(String),
|
|
113
|
+
values: Oe,
|
|
114
|
+
default: "top"
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* @description custom class name for tooltip
|
|
118
|
+
*/
|
|
119
|
+
popperClass: me.popperClass,
|
|
120
|
+
/**
|
|
121
|
+
* @description custom style for tooltip
|
|
122
|
+
*/
|
|
123
|
+
popperStyle: me.popperStyle,
|
|
124
|
+
/**
|
|
125
|
+
* @description custom class name for the collapse-avatar
|
|
126
|
+
*/
|
|
127
|
+
collapseClass: {
|
|
128
|
+
type: I([
|
|
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: I([
|
|
141
|
+
String,
|
|
142
|
+
Array,
|
|
143
|
+
Object,
|
|
144
|
+
Boolean
|
|
145
|
+
]),
|
|
146
|
+
default: void 0
|
|
147
|
+
}
|
|
148
|
+
}, it = [
|
|
149
|
+
"src",
|
|
150
|
+
"alt",
|
|
151
|
+
"srcset"
|
|
152
|
+
];
|
|
153
|
+
var ut = /* @__PURE__ */ de({
|
|
154
|
+
name: "ElAvatar",
|
|
155
|
+
__name: "avatar",
|
|
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);
|
|
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 (x, S) => (r(), v("span", {
|
|
168
|
+
class: E(_.value),
|
|
169
|
+
style: L(N.value)
|
|
170
|
+
}, [(t.src || t.srcSet) && !M.value ? (r(), v("img", {
|
|
171
|
+
key: 0,
|
|
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
|
+
_: 1
|
|
180
|
+
})) : re(x.$slots, "default", { key: 2 })], 6));
|
|
181
|
+
}
|
|
182
|
+
}), Ee = ut, Be = /* @__PURE__ */ de({
|
|
183
|
+
name: "ElAvatarGroup",
|
|
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
|
+
})), () => {
|
|
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
|
+
}, {
|
|
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
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
return k("div", { class: l.b() }, [w]);
|
|
214
|
+
};
|
|
94
215
|
}
|
|
95
216
|
});
|
|
96
|
-
|
|
97
|
-
|
|
217
|
+
const ct = be(Ee, { AvatarGroup: Be });
|
|
218
|
+
Re(Be);
|
|
219
|
+
const dt = ke({
|
|
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: (t) => t >= 0 && t <= 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: I(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: I([
|
|
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: I(Function),
|
|
320
|
+
default: (t) => `${t}%`
|
|
148
321
|
}
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
322
|
+
}), ft = ["aria-valuenow"], vt = { viewBox: "0 0 100 100" }, pt = [
|
|
323
|
+
"d",
|
|
324
|
+
"stroke",
|
|
325
|
+
"stroke-linecap",
|
|
326
|
+
"stroke-width"
|
|
327
|
+
], mt = [
|
|
328
|
+
"d",
|
|
329
|
+
"stroke",
|
|
330
|
+
"opacity",
|
|
331
|
+
"stroke-linecap",
|
|
332
|
+
"stroke-width"
|
|
333
|
+
], gt = { key: 0 };
|
|
334
|
+
var At = /* @__PURE__ */ de({
|
|
335
|
+
name: "ElProgress",
|
|
336
|
+
__name: "progress",
|
|
337
|
+
props: dt,
|
|
338
|
+
setup(t) {
|
|
339
|
+
const V = {
|
|
156
340
|
success: "#13ce66",
|
|
157
341
|
exception: "#ff4949",
|
|
158
342
|
warning: "#e6a23c",
|
|
159
343
|
default: "#20a0ff"
|
|
160
|
-
},
|
|
161
|
-
const
|
|
162
|
-
width: `${
|
|
163
|
-
animationDuration: `${
|
|
164
|
-
}, g =
|
|
165
|
-
return g.includes("gradient") ?
|
|
166
|
-
}),
|
|
167
|
-
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";
|
|
168
352
|
return `
|
|
169
353
|
M 50 50
|
|
170
|
-
m 0 ${g ? "" : "-"}${
|
|
171
|
-
a ${
|
|
172
|
-
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}
|
|
173
357
|
`;
|
|
174
|
-
}),
|
|
175
|
-
strokeDasharray: `${
|
|
176
|
-
strokeDashoffset:
|
|
177
|
-
})),
|
|
178
|
-
strokeDasharray: `${
|
|
179
|
-
strokeDashoffset:
|
|
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
|
+
strokeDashoffset: N.value
|
|
361
|
+
})), n = f(() => ({
|
|
362
|
+
strokeDasharray: `${y.value * _.value * (l.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 g = 100 /
|
|
187
|
-
return
|
|
188
|
-
color:
|
|
189
|
-
percentage: (
|
|
190
|
-
} :
|
|
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);
|
|
191
375
|
}
|
|
192
|
-
const
|
|
193
|
-
var
|
|
194
|
-
const { color:
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
if (
|
|
198
|
-
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;
|
|
199
383
|
{
|
|
200
|
-
const
|
|
201
|
-
for (const
|
|
202
|
-
if (
|
|
203
|
-
return
|
|
204
|
-
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;
|
|
205
389
|
}
|
|
206
390
|
};
|
|
207
|
-
return (
|
|
208
|
-
class:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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),
|
|
212
396
|
{
|
|
213
|
-
[
|
|
214
|
-
[
|
|
397
|
+
[c(i).m("without-text")]: !t.showText,
|
|
398
|
+
[c(i).m("text-inside")]: t.textInside
|
|
215
399
|
}
|
|
216
400
|
]),
|
|
217
401
|
role: "progressbar",
|
|
218
|
-
"aria-valuenow":
|
|
402
|
+
"aria-valuenow": t.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
|
+
}, [t.type === "line" ? (r(), v("div", {
|
|
406
|
+
key: 0,
|
|
407
|
+
class: E(c(i).b("bar"))
|
|
408
|
+
}, [d("div", {
|
|
409
|
+
class: E(c(i).be("bar", "outer")),
|
|
410
|
+
style: L({ height: `${t.strokeWidth}px` })
|
|
411
|
+
}, [d("div", {
|
|
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
|
+
]),
|
|
418
|
+
style: L(w.value)
|
|
419
|
+
}, [(t.showText || o.$slots.default) && t.textInside ? (r(), v("div", {
|
|
420
|
+
key: 0,
|
|
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
|
+
key: 1,
|
|
424
|
+
class: E(c(i).b("circle")),
|
|
425
|
+
style: L({
|
|
426
|
+
height: `${t.width}px`,
|
|
427
|
+
width: `${t.width}px`
|
|
428
|
+
})
|
|
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
|
+
fill: "none",
|
|
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
|
+
fill: "none",
|
|
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
|
+
key: 2,
|
|
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
|
+
_: 1
|
|
453
|
+
})) : (r(), v("span", gt, O(H.value), 1))])], 6)) : Q("v-if", !0)], 10, ft));
|
|
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
|
+
}), 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 = {
|
|
297
459
|
key: 0,
|
|
298
460
|
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
299
|
-
},
|
|
461
|
+
}, Ct = {
|
|
300
462
|
key: 1,
|
|
301
463
|
class: "node-progress"
|
|
302
|
-
},
|
|
464
|
+
}, Et = { class: "node-status-icon" }, Bt = { class: "node-name" }, Mt = { class: "progress-footer" }, xt = { class: "progress-text" }, Vt = ["innerHTML"], _t = {
|
|
303
465
|
key: 4,
|
|
304
466
|
class: "message-content-footer"
|
|
305
|
-
},
|
|
467
|
+
}, Nt = {
|
|
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
|
+
}, 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 = {
|
|
311
471
|
__name: "index",
|
|
312
472
|
props: {
|
|
313
473
|
defaultMessage: {
|
|
@@ -319,12 +479,12 @@ 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(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([
|
|
324
484
|
{
|
|
325
485
|
role: "defaultMessage",
|
|
326
486
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
327
|
-
content:
|
|
487
|
+
content: T.defaultMessage,
|
|
328
488
|
fullQuery: "",
|
|
329
489
|
historyList: [],
|
|
330
490
|
userContent: null,
|
|
@@ -333,222 +493,211 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
333
493
|
resTime: 0,
|
|
334
494
|
firstPackageTime: 0
|
|
335
495
|
}
|
|
336
|
-
]),
|
|
337
|
-
const
|
|
338
|
-
return
|
|
339
|
-
}),
|
|
340
|
-
const
|
|
341
|
-
if (!
|
|
342
|
-
return
|
|
343
|
-
if (
|
|
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
|
+
if (y.value)
|
|
344
504
|
return;
|
|
345
|
-
|
|
505
|
+
B.value = [], N.value = !1, n.value.push({
|
|
346
506
|
role: "user",
|
|
347
|
-
content:
|
|
507
|
+
content: s,
|
|
348
508
|
createTime: q().format("YYYY-MM-DD HH:mm:ss")
|
|
349
|
-
}),
|
|
509
|
+
}), S.value = "", await J(), n.value.push({
|
|
350
510
|
role: "assistant",
|
|
351
511
|
content: "",
|
|
352
512
|
fullQuery: "",
|
|
353
513
|
historyList: [],
|
|
354
|
-
userContent:
|
|
514
|
+
userContent: s,
|
|
355
515
|
showFeedback: !1,
|
|
356
516
|
createTime: q().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, _.value = !0;
|
|
520
|
+
let e = "", a = (/* @__PURE__ */ new Date()).getTime(), A = !1;
|
|
361
521
|
try {
|
|
362
|
-
await
|
|
363
|
-
baseUrl:
|
|
364
|
-
token:
|
|
365
|
-
value:
|
|
366
|
-
sessionId:
|
|
367
|
-
userId:
|
|
368
|
-
callback: (
|
|
369
|
-
if (
|
|
370
|
-
const m =
|
|
371
|
-
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;
|
|
372
532
|
}
|
|
373
|
-
if (
|
|
374
|
-
const m =
|
|
375
|
-
m.fullQuery =
|
|
533
|
+
if (p === "fullQuery") {
|
|
534
|
+
const m = n.value[n.value.length - 1];
|
|
535
|
+
m.fullQuery = h;
|
|
376
536
|
}
|
|
377
|
-
if (
|
|
378
|
-
if (!
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
|
|
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);
|
|
382
542
|
}
|
|
383
|
-
const m =
|
|
384
|
-
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();
|
|
385
545
|
return;
|
|
386
546
|
}
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
const m =
|
|
390
|
-
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());
|
|
391
551
|
}
|
|
392
|
-
if (
|
|
393
|
-
|
|
394
|
-
const m =
|
|
395
|
-
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() -
|
|
552
|
+
if (p === "finish") {
|
|
553
|
+
y.value = !1, N.value = !0;
|
|
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));
|
|
396
556
|
}
|
|
397
|
-
if (
|
|
398
|
-
|
|
557
|
+
if (p === "error") {
|
|
558
|
+
_.value = !1, y.value = !1, n.value.pop(), n.value.push({
|
|
399
559
|
role: "assistant",
|
|
400
|
-
userContent:
|
|
401
|
-
content: `❌ ${
|
|
560
|
+
userContent: s,
|
|
561
|
+
content: `❌ ${h}`,
|
|
402
562
|
showFeedback: !1,
|
|
403
563
|
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
404
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
564
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - a,
|
|
405
565
|
firstPackageTime: 0
|
|
406
|
-
}), $("default",
|
|
566
|
+
}), $("default", n.value.length - 1), J();
|
|
407
567
|
return;
|
|
408
568
|
}
|
|
409
569
|
}
|
|
410
570
|
});
|
|
411
|
-
} catch (
|
|
412
|
-
|
|
571
|
+
} catch (p) {
|
|
572
|
+
X.error(`AI响应异常: ${p}`), n.value.pop(), n.value.push({
|
|
413
573
|
role: "assistant",
|
|
414
|
-
userContent:
|
|
574
|
+
userContent: s,
|
|
415
575
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
416
576
|
showFeedback: !0,
|
|
417
577
|
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
418
|
-
resTime: (/* @__PURE__ */ new Date()).getTime() -
|
|
578
|
+
resTime: (/* @__PURE__ */ new Date()).getTime() - a,
|
|
419
579
|
firstPackageTime: 0
|
|
420
|
-
}), $("default",
|
|
580
|
+
}), $("default", n.value.length - 1), await J(), y.value = !1, _.value = !1;
|
|
421
581
|
}
|
|
422
|
-
},
|
|
423
|
-
const { parsedConditions:
|
|
424
|
-
console.log({ parsedConditions:
|
|
425
|
-
},
|
|
426
|
-
|
|
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;
|
|
622
|
+
}
|
|
623
|
+
}, $ = async (s, e) => {
|
|
624
|
+
switch (s) {
|
|
427
625
|
case "satisfied": {
|
|
428
|
-
const
|
|
429
|
-
await
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
sessionId: F.value,
|
|
433
|
-
fullQuery: t.fullQuery,
|
|
434
|
-
historyList: JSON.stringify(t.historyList ?? []),
|
|
435
|
-
aiContent: t.content,
|
|
436
|
-
type: 1,
|
|
437
|
-
createTime: t.createTime,
|
|
438
|
-
resTime: t.resTime,
|
|
439
|
-
firstPackageTime: t.firstPackageTime,
|
|
440
|
-
isSolved: 1,
|
|
441
|
-
logOrigin: 1
|
|
442
|
-
}), W.success("感谢您的评价!"), o.value[s].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;
|
|
443
630
|
break;
|
|
444
631
|
}
|
|
445
632
|
case "open": {
|
|
446
|
-
|
|
633
|
+
W.value = e, P.value = !0;
|
|
447
634
|
break;
|
|
448
635
|
}
|
|
449
636
|
case "unsatisfied": {
|
|
450
|
-
const
|
|
451
|
-
await
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
sessionId: F.value,
|
|
455
|
-
fullQuery: t.fullQuery,
|
|
456
|
-
historyList: JSON.stringify(t.historyList ?? []),
|
|
457
|
-
userSuggestion: O.value,
|
|
458
|
-
aiContent: t.content,
|
|
459
|
-
type: 2,
|
|
460
|
-
resTime: t.resTime,
|
|
461
|
-
createTime: t.createTime,
|
|
462
|
-
firstPackageTime: t.firstPackageTime,
|
|
463
|
-
isSolved: 0,
|
|
464
|
-
logOrigin: 1
|
|
465
|
-
}), W.success("感谢您的反馈!我们将持续跟踪并进行优化"), P.value = !1, o.value[s].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;
|
|
466
641
|
break;
|
|
467
642
|
}
|
|
468
643
|
case "default": {
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
userName: _.username,
|
|
472
|
-
userContent: t.userContent,
|
|
473
|
-
sessionId: F.value,
|
|
474
|
-
fullQuery: t.fullQuery,
|
|
475
|
-
historyList: JSON.stringify(t.historyList ?? []),
|
|
476
|
-
aiContent: t.content,
|
|
477
|
-
type: null,
|
|
478
|
-
resTime: t.resTime,
|
|
479
|
-
createTime: t.createTime,
|
|
480
|
-
firstPackageTime: t.firstPackageTime,
|
|
481
|
-
isSolved: 1,
|
|
482
|
-
logOrigin: 1
|
|
483
|
-
}), await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
484
|
-
userName: _.username,
|
|
485
|
-
userContent: t.userContent,
|
|
486
|
-
sessionId: F.value,
|
|
487
|
-
fullQuery: t.fullQuery,
|
|
488
|
-
historyList: JSON.stringify(t.historyList ?? []),
|
|
489
|
-
aiContent: t.content,
|
|
490
|
-
type: null,
|
|
491
|
-
resTime: t.resTime,
|
|
492
|
-
createTime: t.createTime,
|
|
493
|
-
firstPackageTime: t.firstPackageTime,
|
|
494
|
-
isSolved: 1,
|
|
495
|
-
logOrigin: 1
|
|
496
|
-
});
|
|
644
|
+
const a = n.value[e];
|
|
645
|
+
await ae(se(a, { type: null, isSolved: 1 }));
|
|
497
646
|
}
|
|
498
647
|
}
|
|
499
|
-
},
|
|
500
|
-
if (
|
|
501
|
-
if (
|
|
502
|
-
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
` +
|
|
506
|
-
|
|
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;
|
|
507
656
|
});
|
|
508
657
|
} else
|
|
509
|
-
|
|
510
|
-
},
|
|
511
|
-
await
|
|
512
|
-
},
|
|
513
|
-
if (typeof
|
|
658
|
+
s.preventDefault(), G();
|
|
659
|
+
}, J = async () => {
|
|
660
|
+
await le(), Y.value && (Y.value.scrollTop = Y.value.scrollHeight);
|
|
661
|
+
}, ve = (s) => {
|
|
662
|
+
if (typeof s != "string")
|
|
514
663
|
return !1;
|
|
515
664
|
try {
|
|
516
|
-
const
|
|
517
|
-
return
|
|
665
|
+
const e = JSON.parse(s);
|
|
666
|
+
return e !== null && typeof e == "object";
|
|
518
667
|
} catch {
|
|
519
668
|
return !1;
|
|
520
669
|
}
|
|
521
|
-
},
|
|
522
|
-
const { parsedConditions:
|
|
523
|
-
let
|
|
524
|
-
return
|
|
525
|
-
|
|
526
|
-
}),
|
|
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;
|
|
527
676
|
};
|
|
528
677
|
return oe(
|
|
529
|
-
() =>
|
|
678
|
+
() => n.value,
|
|
530
679
|
() => {
|
|
531
|
-
|
|
680
|
+
J();
|
|
532
681
|
},
|
|
533
682
|
{ deep: !0 }
|
|
534
683
|
), oe(
|
|
535
684
|
() => P.value,
|
|
536
|
-
(
|
|
537
|
-
|
|
685
|
+
(s) => {
|
|
686
|
+
s || (H.value = "");
|
|
538
687
|
}
|
|
539
|
-
),
|
|
688
|
+
), V({
|
|
540
689
|
open: () => {
|
|
541
|
-
|
|
542
|
-
|
|
690
|
+
b.value = !0, le(() => {
|
|
691
|
+
J();
|
|
543
692
|
});
|
|
544
693
|
}
|
|
545
|
-
}), (
|
|
546
|
-
const
|
|
547
|
-
return
|
|
548
|
-
|
|
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, {
|
|
549
698
|
class: "ai-dialog",
|
|
550
|
-
modelValue:
|
|
551
|
-
"onUpdate:modelValue":
|
|
699
|
+
modelValue: b.value,
|
|
700
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => b.value = u),
|
|
552
701
|
title: "✨ 品种池参数解析AI助手",
|
|
553
702
|
width: "500px",
|
|
554
703
|
center: "",
|
|
@@ -557,138 +706,140 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
557
706
|
modal: !1,
|
|
558
707
|
"modal-penetrable": !0
|
|
559
708
|
}, {
|
|
560
|
-
default:
|
|
561
|
-
d("div",
|
|
709
|
+
default: C(() => [
|
|
710
|
+
d("div", wt, [
|
|
562
711
|
d("div", {
|
|
563
712
|
ref_key: "messageListRef",
|
|
564
|
-
ref:
|
|
713
|
+
ref: Y,
|
|
565
714
|
class: "message-list"
|
|
566
715
|
}, [
|
|
567
|
-
(
|
|
568
|
-
key:
|
|
569
|
-
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"])
|
|
570
719
|
}, [
|
|
571
|
-
|
|
572
|
-
d("div",
|
|
573
|
-
|
|
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, {
|
|
574
723
|
size: 32,
|
|
575
|
-
icon:
|
|
724
|
+
icon: u.role === "user" ? c(Qe) : c(Ye)
|
|
576
725
|
}, null, 8, ["icon"])
|
|
577
726
|
]),
|
|
578
|
-
d("div",
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
(
|
|
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", {
|
|
582
731
|
key: j.name,
|
|
583
732
|
class: "node-progress-item"
|
|
584
733
|
}, [
|
|
585
|
-
d("span",
|
|
586
|
-
j.status === "success" ? (
|
|
734
|
+
d("span", Et, [
|
|
735
|
+
j.status === "success" ? (r(), R(A, {
|
|
587
736
|
key: 0,
|
|
588
737
|
class: "node-icon done"
|
|
589
738
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
|
|
739
|
+
default: C(() => [
|
|
740
|
+
k(c(Pe))
|
|
592
741
|
]),
|
|
593
742
|
_: 1
|
|
594
|
-
})) : (
|
|
743
|
+
})) : (r(), R(A, {
|
|
595
744
|
key: 1,
|
|
596
745
|
class: "node-icon running"
|
|
597
746
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
|
|
747
|
+
default: C(() => [
|
|
748
|
+
k(c(Je))
|
|
600
749
|
]),
|
|
601
750
|
_: 1
|
|
602
751
|
}))
|
|
603
752
|
]),
|
|
604
|
-
d("span",
|
|
753
|
+
d("span", Bt, O(j.name), 1)
|
|
605
754
|
]))), 128)),
|
|
606
|
-
d("div",
|
|
607
|
-
|
|
608
|
-
percentage:
|
|
755
|
+
d("div", Mt, [
|
|
756
|
+
k(p, {
|
|
757
|
+
percentage: U.value,
|
|
609
758
|
"show-text": !1,
|
|
610
759
|
"stroke-width": 4,
|
|
611
760
|
color: "#667eea"
|
|
612
761
|
}, null, 8, ["percentage"]),
|
|
613
|
-
d("span",
|
|
762
|
+
d("span", xt, "第 " + O(g.value) + "/" + O(o.value) + " 步 · " + O(F.value), 1)
|
|
614
763
|
])
|
|
615
764
|
])) : Q("", !0),
|
|
616
|
-
|
|
765
|
+
ve(u.content) ? (r(), v("div", {
|
|
617
766
|
key: 2,
|
|
618
|
-
class:
|
|
619
|
-
innerHTML:
|
|
620
|
-
}, 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", {
|
|
621
770
|
key: 3,
|
|
622
|
-
class:
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
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, {
|
|
627
776
|
content: "满意",
|
|
628
777
|
placement: "bottom"
|
|
629
778
|
}, {
|
|
630
|
-
default:
|
|
779
|
+
default: C(() => [
|
|
631
780
|
d("img", {
|
|
632
|
-
src:
|
|
781
|
+
src: kt,
|
|
633
782
|
alt: "满意",
|
|
634
|
-
onClick: (j) => $("satisfied",
|
|
635
|
-
}, null, 8,
|
|
783
|
+
onClick: (j) => $("satisfied", K)
|
|
784
|
+
}, null, 8, Ut)
|
|
636
785
|
]),
|
|
637
786
|
_: 2
|
|
638
787
|
}, 1024),
|
|
639
|
-
|
|
788
|
+
k(h, {
|
|
640
789
|
content: "满意",
|
|
641
790
|
placement: "bottom"
|
|
642
791
|
}, {
|
|
643
|
-
default:
|
|
792
|
+
default: C(() => [
|
|
644
793
|
d("img", {
|
|
645
|
-
src:
|
|
794
|
+
src: bt,
|
|
646
795
|
alt: "不满意",
|
|
647
|
-
onClick: (j) => $("open",
|
|
648
|
-
}, null, 8,
|
|
796
|
+
onClick: (j) => $("open", K)
|
|
797
|
+
}, null, 8, It)
|
|
649
798
|
]),
|
|
650
799
|
_: 2
|
|
651
800
|
}, 1024)
|
|
652
801
|
])) : Q("", !0),
|
|
653
|
-
|
|
802
|
+
ve(u.content) ? (r(), R(m, {
|
|
654
803
|
key: 1,
|
|
655
804
|
class: "confirm-btn",
|
|
656
|
-
onClick: (j) =>
|
|
805
|
+
onClick: (j) => Me(u.content)
|
|
657
806
|
}, {
|
|
658
|
-
default:
|
|
659
|
-
Z(" 确认查询 ")
|
|
660
|
-
]),
|
|
661
|
-
_:
|
|
662
|
-
},
|
|
807
|
+
default: C(() => [...e[6] || (e[6] = [
|
|
808
|
+
Z(" 确认查询 ", -1)
|
|
809
|
+
])]),
|
|
810
|
+
_: 1
|
|
811
|
+
}, 8, ["onClick"])) : Q("", !0)
|
|
663
812
|
])) : Q("", !0)
|
|
664
813
|
])
|
|
665
814
|
], 64)) : Q("", !0)
|
|
666
815
|
], 2))), 128))
|
|
667
816
|
], 512),
|
|
668
|
-
d("div",
|
|
669
|
-
|
|
817
|
+
d("div", Ft, [
|
|
818
|
+
k(z, {
|
|
670
819
|
class: "message-input",
|
|
671
|
-
modelValue:
|
|
672
|
-
"onUpdate:modelValue":
|
|
820
|
+
modelValue: S.value,
|
|
821
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => S.value = u),
|
|
673
822
|
type: "textarea",
|
|
674
823
|
rows: 4,
|
|
675
824
|
autosize: { minRows: 2, maxRows: 4 },
|
|
676
825
|
placeholder: "输入您想查询的品种条件...",
|
|
677
|
-
onKeydown:
|
|
826
|
+
onKeydown: Ve
|
|
678
827
|
}, null, 8, ["modelValue"]),
|
|
679
|
-
d("div",
|
|
680
|
-
|
|
681
|
-
|
|
828
|
+
d("div", zt, [
|
|
829
|
+
e[8] || (e[8] = d("div", { class: "input-hint" }, [
|
|
830
|
+
d("span", null, "Enter 发送 | Ctrl + Enter 换行")
|
|
831
|
+
], -1)),
|
|
832
|
+
k(m, {
|
|
682
833
|
class: "send-btn",
|
|
683
834
|
type: "primary",
|
|
684
|
-
icon:
|
|
685
|
-
loading:
|
|
686
|
-
onClick:
|
|
835
|
+
icon: c(Le),
|
|
836
|
+
loading: y.value,
|
|
837
|
+
onClick: G,
|
|
687
838
|
round: ""
|
|
688
839
|
}, {
|
|
689
|
-
default:
|
|
690
|
-
Z(" 发送 ")
|
|
691
|
-
]),
|
|
840
|
+
default: C(() => [...e[7] || (e[7] = [
|
|
841
|
+
Z(" 发送 ", -1)
|
|
842
|
+
])]),
|
|
692
843
|
_: 1
|
|
693
844
|
}, 8, ["icon", "loading"])
|
|
694
845
|
])
|
|
@@ -697,40 +848,40 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
697
848
|
]),
|
|
698
849
|
_: 1
|
|
699
850
|
}, 8, ["modelValue"]),
|
|
700
|
-
|
|
851
|
+
k(pe, {
|
|
701
852
|
modelValue: P.value,
|
|
702
|
-
"onUpdate:modelValue":
|
|
853
|
+
"onUpdate:modelValue": e[5] || (e[5] = (u) => P.value = u),
|
|
703
854
|
title: "📝 反馈意见",
|
|
704
855
|
width: "400px"
|
|
705
856
|
}, {
|
|
706
|
-
footer:
|
|
707
|
-
d("span",
|
|
708
|
-
|
|
709
|
-
onClick:
|
|
857
|
+
footer: C(() => [
|
|
858
|
+
d("span", Yt, [
|
|
859
|
+
k(m, {
|
|
860
|
+
onClick: e[3] || (e[3] = (u) => P.value = !1)
|
|
710
861
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
Z("取消")
|
|
713
|
-
]),
|
|
862
|
+
default: C(() => [...e[11] || (e[11] = [
|
|
863
|
+
Z("取消", -1)
|
|
864
|
+
])]),
|
|
714
865
|
_: 1
|
|
715
866
|
}),
|
|
716
|
-
|
|
867
|
+
k(m, {
|
|
717
868
|
type: "primary",
|
|
718
|
-
onClick:
|
|
869
|
+
onClick: e[4] || (e[4] = (u) => $("unsatisfied", W.value))
|
|
719
870
|
}, {
|
|
720
|
-
default:
|
|
721
|
-
Z("提交反馈")
|
|
722
|
-
]),
|
|
871
|
+
default: C(() => [...e[12] || (e[12] = [
|
|
872
|
+
Z("提交反馈", -1)
|
|
873
|
+
])]),
|
|
723
874
|
_: 1
|
|
724
875
|
})
|
|
725
876
|
])
|
|
726
877
|
]),
|
|
727
|
-
default:
|
|
728
|
-
d("div",
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
modelValue:
|
|
733
|
-
"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),
|
|
734
885
|
type: "textarea",
|
|
735
886
|
rows: 4,
|
|
736
887
|
placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
|
|
@@ -742,11 +893,11 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
|
|
|
742
893
|
], 64);
|
|
743
894
|
};
|
|
744
895
|
}
|
|
745
|
-
},
|
|
746
|
-
install(
|
|
747
|
-
|
|
896
|
+
}, Lt = /* @__PURE__ */ lt(Jt, [["__scopeId", "data-v-4edbe8e8"]]), gs = {
|
|
897
|
+
install(t) {
|
|
898
|
+
t.component("st-varietyAiHelper", Lt);
|
|
748
899
|
}
|
|
749
900
|
};
|
|
750
901
|
export {
|
|
751
|
-
|
|
902
|
+
gs as default
|
|
752
903
|
};
|