rt-chat-input 1.0.5 → 1.0.6
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,18 +91,6 @@ 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
|
-
```
|
|
106
94
|
|
|
107
95
|
#### Events
|
|
108
96
|
|
package/dist/chat-input.es.js
CHANGED
|
@@ -962,8 +962,7 @@ 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 }
|
|
966
|
-
agentSteps: { default: () => [] }
|
|
965
|
+
bottomOffset: { default: 36 }
|
|
967
966
|
},
|
|
968
967
|
emits: ["send", "stop", "voice", "change", "attach", "error", "focus", "blur"],
|
|
969
968
|
setup(f, { expose: L, emit: w }) {
|
|
@@ -1286,7 +1285,7 @@ const sg = { class: "chat-modal-container" }, yg = {
|
|
|
1286
1285
|
], 6)
|
|
1287
1286
|
], 6));
|
|
1288
1287
|
}
|
|
1289
|
-
}), GB = /* @__PURE__ */ EA(SB, [["__scopeId", "data-v-
|
|
1288
|
+
}), GB = /* @__PURE__ */ EA(SB, [["__scopeId", "data-v-c4107bcb"]]), xB = {
|
|
1290
1289
|
install(f) {
|
|
1291
1290
|
f.component("ChatInput", GB), f.component("VoiceRecorder", aA);
|
|
1292
1291
|
}
|