ai-chat-bot-interface 1.5.5 → 1.5.7
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/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -5,8 +5,8 @@ import ChatUi from './ChatUi.vue';
|
|
|
5
5
|
<template>
|
|
6
6
|
<div style="width: 100vw; height: 100vh">
|
|
7
7
|
<chat-ui
|
|
8
|
-
bot-id="
|
|
9
|
-
token="
|
|
8
|
+
bot-id="7485656400967516197"
|
|
9
|
+
token="pat_gYSCaegGxJ7qZXl4fBkCc4KYhV1t7YPQ5PVwggWdZnFmSKtgSHs8SoebV4epdQvj"
|
|
10
10
|
uid="262598"
|
|
11
11
|
:def-msg="{ placeholder: '发消息...' }"
|
|
12
12
|
:show-header="true"
|
package/src/ChatUi.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="name_box">
|
|
10
10
|
<div class="name">{{ name }}</div>
|
|
11
|
-
<div class="name_sub">
|
|
11
|
+
<div v-if="nameSub" class="name_sub">{{ nameSub}}</div>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="btn_group">
|
|
@@ -204,7 +204,8 @@ const msgObj = {
|
|
|
204
204
|
newChat: '新對話',
|
|
205
205
|
thinking: '思考中...',
|
|
206
206
|
thinkCompleted: '思考完成',
|
|
207
|
-
useSolution: '用該方案配餐'
|
|
207
|
+
useSolution: '用該方案配餐',
|
|
208
|
+
aiTips: '【内容由AI生成,仅供参考】'
|
|
208
209
|
};
|
|
209
210
|
const defCardList = {
|
|
210
211
|
store: true,
|
|
@@ -225,6 +226,10 @@ const props = defineProps({
|
|
|
225
226
|
type: String,
|
|
226
227
|
default: 'Weis Bot',
|
|
227
228
|
},
|
|
229
|
+
nameSub: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: 'nutribite.com',
|
|
232
|
+
},
|
|
228
233
|
botId: {
|
|
229
234
|
type: String,
|
|
230
235
|
required: true,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
&_wrap {
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
width: 100%;
|
|
6
|
-
padding: 10px;
|
|
6
|
+
padding: 10px 10px 5px;
|
|
7
7
|
background-color: #fff;
|
|
8
8
|
}
|
|
9
9
|
&_quick {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
&_wrap {
|
|
60
|
-
margin: 10px 0;
|
|
60
|
+
margin: 10px 0 5px;
|
|
61
61
|
width: 100%;
|
|
62
62
|
min-height: 48px;
|
|
63
63
|
padding: 10px;
|
|
@@ -176,4 +176,9 @@
|
|
|
176
176
|
border-radius: 15px;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
&_ai_tips {
|
|
180
|
+
text-align: center;
|
|
181
|
+
font-size: 10px;
|
|
182
|
+
color: #bbb;
|
|
183
|
+
}
|
|
179
184
|
}
|