Skip to content

Commit bc3666c

Browse files
committed
refactor(bubble): change prop names in tr-bubble-list components from 'items' and 'roles' to 'messages' and 'role-configs' for improved clarity
1 parent 436719b commit bc3666c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

docs/demos/tools/conversation/IndexedDB.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<tr-bubble-list :items="messages" :roles="roles"></tr-bubble-list>
3+
<tr-bubble-list :messages="messages" :role-configs="roles"></tr-bubble-list>
44

55
<!-- 消息输入区域 -->
66
<tr-sender
@@ -35,12 +35,10 @@ const roles: Record<string, BubbleRoleConfig> = {
3535
assistant: {
3636
placement: 'start',
3737
avatar: aiAvatar,
38-
maxWidth: '80%',
3938
},
4039
user: {
4140
placement: 'end',
4241
avatar: userAvatar,
43-
maxWidth: '80%',
4442
},
4543
}
4644

docs/demos/tools/conversation/LocalStorage.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<tr-bubble-list :items="messages" :roles="roles"></tr-bubble-list>
3+
<tr-bubble-list :messages="messages" :role-configs="roles"></tr-bubble-list>
44

55
<!-- 消息输入区域 -->
66
<tr-sender
@@ -35,12 +35,10 @@ const roles: Record<string, BubbleRoleConfig> = {
3535
assistant: {
3636
placement: 'start',
3737
avatar: aiAvatar,
38-
maxWidth: '80%',
3938
},
4039
user: {
4140
placement: 'end',
4241
avatar: userAvatar,
43-
maxWidth: '80%',
4442
},
4543
}
4644

0 commit comments

Comments
 (0)