rt-chat-input 1.0.0 → 1.0.1
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rt-chat-input
|
|
2
2
|
|
|
3
3
|
一个基于 Vue 3 的多模态聊天输入框组件,集成了文本输入、语音录制(支持实时转写)、文件上传等功能。零外部 UI 框架依赖,轻量且易于集成。
|
|
4
4
|
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install
|
|
17
|
+
npm install rt-chat-input
|
|
18
18
|
# 或
|
|
19
|
-
yarn add
|
|
19
|
+
yarn add rt-chat-input
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 快速使用
|
|
@@ -39,8 +39,8 @@ yarn add @rongxiaobao/chat-input
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
|
-
import { ChatInput } from "
|
|
43
|
-
import "
|
|
42
|
+
import { ChatInput } from "rt-chat-input";
|
|
43
|
+
import "rt-chat-input/style.css"; // 引入样式
|
|
44
44
|
|
|
45
45
|
const wsUrl = "wss://your-api.com/ws/transcription";
|
|
46
46
|
|
|
@@ -108,7 +108,7 @@ const handleAttach = (files) => {
|
|
|
108
108
|
|
|
109
109
|
```vue
|
|
110
110
|
<script setup>
|
|
111
|
-
import { VoiceRecorder } from "
|
|
111
|
+
import { VoiceRecorder } from "rt-chat-input";
|
|
112
112
|
</script>
|
|
113
113
|
|
|
114
114
|
<template>
|