rt-chat-input 1.0.4 → 1.0.5
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/README.md
CHANGED
|
@@ -91,6 +91,18 @@ const handleAttach = (files) => {
|
|
|
91
91
|
| `showVoiceButton` | `boolean` | `true` | 是否显示语音按钮 |
|
|
92
92
|
| `showAttachmentButton` | `boolean` | `true` | 是否显示附件按钮 |
|
|
93
93
|
| `acceptFileTypes` | `string` | `'image/*,.pdf,.doc...'` | 允许上传的文件类型(默认为常见图片及办公文档格式) |
|
|
94
|
+
| `agentSteps` | `AgentStep[]` | `[]` | Agent 执行步骤(用于展示思考过程),格式见下方定义 |
|
|
95
|
+
|
|
96
|
+
#### AgentStep 类型定义
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
interface AgentStep {
|
|
100
|
+
id: string | number;
|
|
101
|
+
title: string;
|
|
102
|
+
status: "pending" | "loading" | "success" | "error";
|
|
103
|
+
details?: string;
|
|
104
|
+
}
|
|
105
|
+
```
|
|
94
106
|
|
|
95
107
|
#### Events
|
|
96
108
|
|
package/dist/chat-input.es.js
CHANGED
|
@@ -962,7 +962,8 @@ const sg = { class: "chat-modal-container" }, yg = {
|
|
|
962
962
|
showAttachmentButton: { type: Boolean, default: !0 },
|
|
963
963
|
acceptFileTypes: { default: "image/*,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt" },
|
|
964
964
|
fixed: { type: Boolean, default: !1 },
|
|
965
|
-
bottomOffset: { default: 36 }
|
|
965
|
+
bottomOffset: { default: 36 },
|
|
966
|
+
agentSteps: { default: () => [] }
|
|
966
967
|
},
|
|
967
968
|
emits: ["send", "stop", "voice", "change", "attach", "error", "focus", "blur"],
|
|
968
969
|
setup(f, { expose: L, emit: w }) {
|
|
@@ -1285,7 +1286,7 @@ const sg = { class: "chat-modal-container" }, yg = {
|
|
|
1285
1286
|
], 6)
|
|
1286
1287
|
], 6));
|
|
1287
1288
|
}
|
|
1288
|
-
}), GB = /* @__PURE__ */ EA(SB, [["__scopeId", "data-v-
|
|
1289
|
+
}), GB = /* @__PURE__ */ EA(SB, [["__scopeId", "data-v-454751bc"]]), xB = {
|
|
1289
1290
|
install(f) {
|
|
1290
1291
|
f.component("ChatInput", GB), f.component("VoiceRecorder", aA);
|
|
1291
1292
|
}
|