rt-chat-messages 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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rt-chat-messages
|
|
2
2
|
|
|
3
3
|
AI 对话消息展示组件库,提供开箱即用的 Markdown 渲染、代码高亮、Mermaid 图表、多模态消息(语音/图片/文件)展示功能。
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ AI 对话消息展示组件库,提供开箱即用的 Markdown 渲染、代码
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install
|
|
17
|
+
npm install rt-chat-messages
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 快速使用
|
|
@@ -24,7 +24,7 @@ npm install @rongxiaobao/chat-messages
|
|
|
24
24
|
在你的入口文件 (main.ts) 中引入样式:
|
|
25
25
|
|
|
26
26
|
```ts
|
|
27
|
-
import "
|
|
27
|
+
import "rt-chat-messages/style.css";
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### 使用组件
|
|
@@ -43,7 +43,7 @@ import "@rongxiaobao/chat-messages/style.css";
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script setup>
|
|
46
|
-
import { ChatMessageList } from "
|
|
46
|
+
import { ChatMessageList } from "rt-chat-messages";
|
|
47
47
|
import { ref } from "vue";
|
|
48
48
|
|
|
49
49
|
const messages = ref([
|