@vunk/plus 1.11.1 → 1.11.3
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/components/agent-chat-provider/index.mjs +14 -6
- package/components/agent-chat-provider/src/index.vue.d.ts +6 -0
- package/components/agent-chat-provider/src/types.d.ts +3 -2
- package/components/agent-chat-provider/src/use.d.ts +2 -2
- package/components/broadcasting-markdown/index.mjs +138 -3
- package/components/broadcasting-markdown/src/index.vue.d.ts +1 -1
- package/components/bubble-list/index.mjs +1 -1
- package/components/bubble-list/src/core/index.vue.d.ts +7 -155
- package/components/bubble-list/src/index.vue.d.ts +7 -155
- package/components/chat-independent/src/index.vue.d.ts +7 -155
- package/components/metahuman-broadcasting/src/index.vue.d.ts +6 -2
- package/components/pixi-frame/index.mjs +71 -21
- package/components/pixi-frame/src/bitmap.vue.d.ts +5 -1
- package/components/pixi-frame/src/index.vue.d.ts +5 -1
- package/components/routes-menu-content/index.mjs +1 -1
- package/element/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/element/bubble/index.d.ts +4 -0
- package/element/bubble/index.mjs +154 -0
- package/element/bubble/src/index.vue.d.ts +51 -0
- package/element/bubble/src/types.d.ts +19 -0
- package/element/index.css +1 -0
- package/element/thinking/index.d.ts +4 -0
- package/element/thinking/index.mjs +232 -0
- package/element/thinking/src/index.vue.d.ts +53 -0
- package/element/thinking/src/types.d.ts +20 -0
- package/package.json +12 -1
- package/components/bubble-templates/src/legacy.vue.d.ts +0 -153
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { defineComponent as p, createElementBlock as n, openBlock as a, createElementVNode as l, ref as L, watch as k, computed as V, resolveComponent as B, normalizeStyle as x, createVNode as o, normalizeClass as g, renderSlot as f, createBlock as m, createCommentVNode as u, withCtx as r, unref as _, createTextVNode as z, toDisplayString as w, Transition as y, withDirectives as M, vShow as S } from "vue";
|
|
2
|
+
import { _ as $ } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
var E = /* @__PURE__ */ p({
|
|
4
|
+
name: "ArrowUpBold",
|
|
5
|
+
__name: "arrow-up-bold",
|
|
6
|
+
setup(c) {
|
|
7
|
+
return (i, e) => (a(), n("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 1024 1024"
|
|
10
|
+
}, [
|
|
11
|
+
l("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"
|
|
14
|
+
})
|
|
15
|
+
]));
|
|
16
|
+
}
|
|
17
|
+
}), N = E, W = /* @__PURE__ */ p({
|
|
18
|
+
name: "CircleCloseFilled",
|
|
19
|
+
__name: "circle-close-filled",
|
|
20
|
+
setup(c) {
|
|
21
|
+
return (i, e) => (a(), n("svg", {
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
viewBox: "0 0 1024 1024"
|
|
24
|
+
}, [
|
|
25
|
+
l("path", {
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
28
|
+
})
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
}), b = W, H = /* @__PURE__ */ p({
|
|
32
|
+
name: "Loading",
|
|
33
|
+
__name: "loading",
|
|
34
|
+
setup(c) {
|
|
35
|
+
return (i, e) => (a(), n("svg", {
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
viewBox: "0 0 1024 1024"
|
|
38
|
+
}, [
|
|
39
|
+
l("path", {
|
|
40
|
+
fill: "currentColor",
|
|
41
|
+
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
|
42
|
+
})
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
}), T = H, A = /* @__PURE__ */ p({
|
|
46
|
+
name: "Opportunity",
|
|
47
|
+
__name: "opportunity",
|
|
48
|
+
setup(c) {
|
|
49
|
+
return (i, e) => (a(), n("svg", {
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
viewBox: "0 0 1024 1024"
|
|
52
|
+
}, [
|
|
53
|
+
l("path", {
|
|
54
|
+
fill: "currentColor",
|
|
55
|
+
d: "M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"
|
|
56
|
+
})
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
}), D = A, F = /* @__PURE__ */ p({
|
|
60
|
+
name: "SuccessFilled",
|
|
61
|
+
__name: "success-filled",
|
|
62
|
+
setup(c) {
|
|
63
|
+
return (i, e) => (a(), n("svg", {
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
viewBox: "0 0 1024 1024"
|
|
66
|
+
}, [
|
|
67
|
+
l("path", {
|
|
68
|
+
fill: "currentColor",
|
|
69
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
70
|
+
})
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
}), I = F;
|
|
74
|
+
const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q = { class: "content" }, G = { class: "error-message" }, J = /* @__PURE__ */ p({
|
|
75
|
+
__name: "index",
|
|
76
|
+
props: {
|
|
77
|
+
modelValue: { type: Boolean, default: !0 },
|
|
78
|
+
content: { default: "" },
|
|
79
|
+
status: { default: "start" },
|
|
80
|
+
disabled: { type: Boolean, default: !1 },
|
|
81
|
+
autoCollapse: { type: Boolean, default: !1 },
|
|
82
|
+
duration: { default: "0.2s" },
|
|
83
|
+
buttonWidth: { default: "160px" },
|
|
84
|
+
maxWidth: { default: "500px" },
|
|
85
|
+
backgroundColor: { default: "#fcfcfc" },
|
|
86
|
+
color: { default: "var(--el-color-info)" }
|
|
87
|
+
},
|
|
88
|
+
emits: ["change", "update:modelValue"],
|
|
89
|
+
setup(c, { emit: i }) {
|
|
90
|
+
const e = c, h = i, s = L(e.modelValue);
|
|
91
|
+
k(
|
|
92
|
+
() => e.modelValue,
|
|
93
|
+
(t) => {
|
|
94
|
+
s.value = t;
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
function C() {
|
|
98
|
+
e.disabled || (s.value = !s.value, h("change", { value: s.value, status: e.status }), h("update:modelValue", s.value));
|
|
99
|
+
}
|
|
100
|
+
const v = V(() => e.status === "error" ? "思考过程中出现错误" : e.content);
|
|
101
|
+
return k(
|
|
102
|
+
() => e.status,
|
|
103
|
+
(t) => {
|
|
104
|
+
t === "end" && e.autoCollapse && (s.value = !1, h("update:modelValue", s.value));
|
|
105
|
+
}
|
|
106
|
+
), (t, K) => {
|
|
107
|
+
const d = B("el-icon");
|
|
108
|
+
return a(), n("div", {
|
|
109
|
+
class: "el-thinking",
|
|
110
|
+
style: x({
|
|
111
|
+
"--el-thinking-button-width": e.buttonWidth,
|
|
112
|
+
"--el-thinking-animation-duration": e.duration,
|
|
113
|
+
"--el-thinking-content-wrapper-width": e.maxWidth,
|
|
114
|
+
"--el-thinking-content-wrapper-background-color": e.backgroundColor,
|
|
115
|
+
"--el-thinking-content-wrapper-color": e.color
|
|
116
|
+
})
|
|
117
|
+
}, [
|
|
118
|
+
l("button", {
|
|
119
|
+
class: g(["trigger", [t.status, { disabled: !e.disabled }]]),
|
|
120
|
+
disabled: e.disabled,
|
|
121
|
+
onClick: C
|
|
122
|
+
}, [
|
|
123
|
+
l("span", U, [
|
|
124
|
+
f(t.$slots, "status-icon", {
|
|
125
|
+
status: e.status
|
|
126
|
+
}, () => [
|
|
127
|
+
t.status === "thinking" ? (a(), m(d, {
|
|
128
|
+
key: 0,
|
|
129
|
+
class: "is-loading el-icon-center"
|
|
130
|
+
}, {
|
|
131
|
+
default: r(() => [
|
|
132
|
+
o(_(T))
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})) : u("", !0),
|
|
136
|
+
t.status === "start" ? (a(), m(d, {
|
|
137
|
+
key: 1,
|
|
138
|
+
class: "el-icon-center start-color"
|
|
139
|
+
}, {
|
|
140
|
+
default: r(() => [
|
|
141
|
+
o(_(D))
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})) : u("", !0),
|
|
145
|
+
t.status === "end" ? (a(), m(d, {
|
|
146
|
+
key: 2,
|
|
147
|
+
class: "el-icon-center end-color"
|
|
148
|
+
}, {
|
|
149
|
+
default: r(() => [
|
|
150
|
+
o(_(I))
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})) : u("", !0),
|
|
154
|
+
t.status === "error" ? (a(), m(d, {
|
|
155
|
+
key: 3,
|
|
156
|
+
class: "el-icon-center error-color"
|
|
157
|
+
}, {
|
|
158
|
+
default: r(() => [
|
|
159
|
+
o(_(b))
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})) : u("", !0),
|
|
163
|
+
t.status === "cancel" ? (a(), m(d, {
|
|
164
|
+
key: 4,
|
|
165
|
+
class: "el-icon-center cancel-color"
|
|
166
|
+
}, {
|
|
167
|
+
default: r(() => [
|
|
168
|
+
o(_(b))
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})) : u("", !0)
|
|
172
|
+
], !0)
|
|
173
|
+
]),
|
|
174
|
+
l("span", j, [
|
|
175
|
+
f(t.$slots, "label", {
|
|
176
|
+
status: e.status
|
|
177
|
+
}, () => [
|
|
178
|
+
z(w(t.status === "thinking" ? "思考中..." : t.status === "error" ? "思考遇到问题" : t.status === "end" ? "思考完成" : t.status === "cancel" ? "中断思考" : "开始思考"), 1)
|
|
179
|
+
], !0)
|
|
180
|
+
]),
|
|
181
|
+
o(y, { name: "rotate" }, {
|
|
182
|
+
default: r(() => [
|
|
183
|
+
e.disabled ? u("", !0) : (a(), n("span", {
|
|
184
|
+
key: 0,
|
|
185
|
+
class: g(["arrow el-icon-center", { expanded: s.value }])
|
|
186
|
+
}, [
|
|
187
|
+
f(t.$slots, "arrow", {}, () => [
|
|
188
|
+
o(d, { class: "el-icon-center" }, {
|
|
189
|
+
default: r(() => [
|
|
190
|
+
o(_(N))
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
], !0)
|
|
195
|
+
], 2))
|
|
196
|
+
]),
|
|
197
|
+
_: 3
|
|
198
|
+
})
|
|
199
|
+
], 10, O),
|
|
200
|
+
o(y, { name: "slide" }, {
|
|
201
|
+
default: r(() => [
|
|
202
|
+
v.value ? M((a(), n("div", {
|
|
203
|
+
key: 0,
|
|
204
|
+
class: g(["content-wrapper", { "error-state": t.status === "error" }])
|
|
205
|
+
}, [
|
|
206
|
+
l("div", q, [
|
|
207
|
+
t.status !== "error" ? f(t.$slots, "content", {
|
|
208
|
+
key: 0,
|
|
209
|
+
content: v.value
|
|
210
|
+
}, () => [
|
|
211
|
+
l("pre", null, w(v.value), 1)
|
|
212
|
+
], !0) : f(t.$slots, "error", {
|
|
213
|
+
key: 1,
|
|
214
|
+
errorContent: v.value
|
|
215
|
+
}, () => [
|
|
216
|
+
l("div", G, w(v.value), 1)
|
|
217
|
+
], !0)
|
|
218
|
+
])
|
|
219
|
+
], 2)), [
|
|
220
|
+
[S, s.value]
|
|
221
|
+
]) : u("", !0)
|
|
222
|
+
]),
|
|
223
|
+
_: 3
|
|
224
|
+
})
|
|
225
|
+
], 4);
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}), R = /* @__PURE__ */ $(J, [["__scopeId", "data-v-1247234a"]]);
|
|
229
|
+
export {
|
|
230
|
+
R as Thinking,
|
|
231
|
+
R as default
|
|
232
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ThinkingProps, ThinkingStatus } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
'status-icon'?(_: {
|
|
6
|
+
status: ThinkingStatus;
|
|
7
|
+
}): any;
|
|
8
|
+
label?(_: {
|
|
9
|
+
status: ThinkingStatus;
|
|
10
|
+
}): any;
|
|
11
|
+
arrow?(_: {}): any;
|
|
12
|
+
content?(_: {
|
|
13
|
+
content: string;
|
|
14
|
+
}): any;
|
|
15
|
+
error?(_: {
|
|
16
|
+
errorContent: string;
|
|
17
|
+
}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<ThinkingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
change: (value: {
|
|
25
|
+
value: boolean;
|
|
26
|
+
status: ThinkingStatus;
|
|
27
|
+
}) => any;
|
|
28
|
+
"update:modelValue": (value: boolean) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<ThinkingProps> & Readonly<{
|
|
30
|
+
onChange?: ((value: {
|
|
31
|
+
value: boolean;
|
|
32
|
+
status: ThinkingStatus;
|
|
33
|
+
}) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
maxWidth: string;
|
|
37
|
+
content: string;
|
|
38
|
+
modelValue: boolean;
|
|
39
|
+
status: ThinkingStatus;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
autoCollapse: boolean;
|
|
42
|
+
duration: string;
|
|
43
|
+
buttonWidth: string;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
color: string;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ThinkingStatus = 'start' | 'thinking' | 'end' | 'error' | 'cancel';
|
|
2
|
+
export interface ThinkingProps {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
content?: string;
|
|
5
|
+
status?: ThinkingStatus;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
autoCollapse?: boolean;
|
|
8
|
+
duration?: string;
|
|
9
|
+
buttonWidth?: string;
|
|
10
|
+
maxWidth?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ThinkingEmits {
|
|
15
|
+
(event: 'change', value: {
|
|
16
|
+
value: boolean;
|
|
17
|
+
status: ThinkingStatus;
|
|
18
|
+
}): void;
|
|
19
|
+
(event: 'update:modelValue', value: boolean): void;
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/plus",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,6 +39,14 @@
|
|
|
39
39
|
"import": "./icons/end/index.mjs",
|
|
40
40
|
"types": "./icons/end/index.d.ts"
|
|
41
41
|
},
|
|
42
|
+
"./element/thinking": {
|
|
43
|
+
"import": "./element/thinking/index.mjs",
|
|
44
|
+
"types": "./element/thinking/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./element/bubble": {
|
|
47
|
+
"import": "./element/bubble/index.mjs",
|
|
48
|
+
"types": "./element/bubble/index.d.ts"
|
|
49
|
+
},
|
|
42
50
|
"./composables": {
|
|
43
51
|
"import": "./composables/index.mjs",
|
|
44
52
|
"types": "./composables/index.d.ts"
|
|
@@ -154,6 +162,9 @@
|
|
|
154
162
|
"./index.css": {
|
|
155
163
|
"import": "./index.css"
|
|
156
164
|
},
|
|
165
|
+
"./element/index.css": {
|
|
166
|
+
"import": "./element/index.css"
|
|
167
|
+
},
|
|
157
168
|
"./components/xgplayer/index.css": {
|
|
158
169
|
"import": "./components/xgplayer/index.css"
|
|
159
170
|
},
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
|
|
2
|
-
import type { __VkBubbleList } from '@vunk/plus/components/bubble-list';
|
|
3
|
-
import type { SetDataEvent } from '@vunk/core';
|
|
4
|
-
import { type PropType } from 'vue';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
modules: {
|
|
7
|
-
type: PropType<__VkAgentChatProvider.BubbleItemModule[]>;
|
|
8
|
-
default: () => string[];
|
|
9
|
-
};
|
|
10
|
-
}>, {
|
|
11
|
-
setRef: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item, el: any) => void;
|
|
12
|
-
initRenderData: (emitSetData: (e: SetDataEvent) => void, props: __VkBubbleList.Item) => void;
|
|
13
|
-
readonly VkBubbleRenderTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
-
type: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
required: boolean;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
-
type: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
required: boolean;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
}>> & Readonly<{}>, {
|
|
26
|
-
type: string;
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
-
readonly Thinking: {
|
|
29
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
|
|
30
|
-
onChange?: ((value: {
|
|
31
|
-
value: boolean;
|
|
32
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
33
|
-
}) => any) | undefined;
|
|
34
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
35
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
change: (value: {
|
|
37
|
-
value: boolean;
|
|
38
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
39
|
-
}) => any;
|
|
40
|
-
"update:modelValue": (value: boolean) => any;
|
|
41
|
-
}, import("vue").PublicProps, {
|
|
42
|
-
maxWidth: string;
|
|
43
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
44
|
-
color: string;
|
|
45
|
-
content: string;
|
|
46
|
-
disabled: boolean;
|
|
47
|
-
duration: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
modelValue: boolean;
|
|
50
|
-
autoCollapse: boolean;
|
|
51
|
-
buttonWidth: string;
|
|
52
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
|
|
53
|
-
P: {};
|
|
54
|
-
B: {};
|
|
55
|
-
D: {};
|
|
56
|
-
C: {};
|
|
57
|
-
M: {};
|
|
58
|
-
Defaults: {};
|
|
59
|
-
}, Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
|
|
60
|
-
onChange?: ((value: {
|
|
61
|
-
value: boolean;
|
|
62
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
63
|
-
}) => any) | undefined;
|
|
64
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
65
|
-
}>, {}, {}, {}, {}, {
|
|
66
|
-
maxWidth: string;
|
|
67
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
68
|
-
color: string;
|
|
69
|
-
content: string;
|
|
70
|
-
disabled: boolean;
|
|
71
|
-
duration: string;
|
|
72
|
-
backgroundColor: string;
|
|
73
|
-
modelValue: boolean;
|
|
74
|
-
autoCollapse: boolean;
|
|
75
|
-
buttonWidth: string;
|
|
76
|
-
}>;
|
|
77
|
-
__isFragment?: never;
|
|
78
|
-
__isTeleport?: never;
|
|
79
|
-
__isSuspense?: never;
|
|
80
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue-element-plus-x/./types/Thinking").ThinkingProps> & Readonly<{
|
|
81
|
-
onChange?: ((value: {
|
|
82
|
-
value: boolean;
|
|
83
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
84
|
-
}) => any) | undefined;
|
|
85
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
86
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
87
|
-
change: (value: {
|
|
88
|
-
value: boolean;
|
|
89
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
90
|
-
}) => any;
|
|
91
|
-
"update:modelValue": (value: boolean) => any;
|
|
92
|
-
}, string, {
|
|
93
|
-
maxWidth: string;
|
|
94
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
95
|
-
color: string;
|
|
96
|
-
content: string;
|
|
97
|
-
disabled: boolean;
|
|
98
|
-
duration: string;
|
|
99
|
-
backgroundColor: string;
|
|
100
|
-
modelValue: boolean;
|
|
101
|
-
autoCollapse: boolean;
|
|
102
|
-
buttonWidth: string;
|
|
103
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
104
|
-
$slots: {
|
|
105
|
-
'status-icon'?(_: {
|
|
106
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
107
|
-
}): any;
|
|
108
|
-
label?(_: {
|
|
109
|
-
status: import("vue-element-plus-x/./types/Thinking").ThinkingStatus;
|
|
110
|
-
}): any;
|
|
111
|
-
arrow?(_: {}): any;
|
|
112
|
-
content?(_: {
|
|
113
|
-
content: string;
|
|
114
|
-
}): any;
|
|
115
|
-
error?(_: {
|
|
116
|
-
errorContent: string;
|
|
117
|
-
}): any;
|
|
118
|
-
};
|
|
119
|
-
});
|
|
120
|
-
readonly Typewriter: import("vue").DefineComponent<import("vue-element-plus-x/./types/Typewriter").TypewriterProps, {
|
|
121
|
-
interrupt: () => void;
|
|
122
|
-
continue: () => void;
|
|
123
|
-
restart: () => void;
|
|
124
|
-
destroy: () => void;
|
|
125
|
-
renderedContent: import("vue").ComputedRef<string>;
|
|
126
|
-
isTyping: Ref<boolean>;
|
|
127
|
-
progress: import("vue").ComputedRef<number>;
|
|
128
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
129
|
-
start: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
130
|
-
finish: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
131
|
-
writing: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
132
|
-
}, string, import("vue").PublicProps, Readonly<import("vue-element-plus-x/./types/Typewriter").TypewriterProps> & Readonly<{
|
|
133
|
-
onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
134
|
-
onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
135
|
-
onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
136
|
-
}>, {
|
|
137
|
-
content: string;
|
|
138
|
-
isMarkdown: boolean;
|
|
139
|
-
typing: boolean | import("vue-element-plus-x/./types/Typewriter").TypingConfig;
|
|
140
|
-
isFog: boolean | import("vue-element-plus-x/./types/Typewriter").TypingFogfig;
|
|
141
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
142
|
-
typeWriterRef: HTMLDivElement;
|
|
143
|
-
markdownContentRef: HTMLDivElement;
|
|
144
|
-
}, HTMLDivElement>;
|
|
145
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
146
|
-
modules: {
|
|
147
|
-
type: PropType<__VkAgentChatProvider.BubbleItemModule[]>;
|
|
148
|
-
default: () => string[];
|
|
149
|
-
};
|
|
150
|
-
}>> & Readonly<{}>, {
|
|
151
|
-
modules: "Thinking"[];
|
|
152
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
153
|
-
export default _default;
|