|
|
@@ -54,9 +54,11 @@
|
|
|
<div class="chat-footer">
|
|
|
<van-field
|
|
|
v-model="input"
|
|
|
+ type="textarea"
|
|
|
+ rows="1"
|
|
|
+ autosize
|
|
|
placeholder="输入你的问题..."
|
|
|
:border="false"
|
|
|
- @keypress.enter="send"
|
|
|
/>
|
|
|
<van-button
|
|
|
type="primary"
|
|
|
@@ -357,7 +359,7 @@ watch(showChat, (val) => {
|
|
|
|
|
|
.chat-footer {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ align-items: flex-end;
|
|
|
padding: 8px 12px;
|
|
|
background: #fff;
|
|
|
border-top: 1px solid #ebedf0;
|
|
|
@@ -367,8 +369,12 @@ watch(showChat, (val) => {
|
|
|
.chat-footer :deep(.van-cell) {
|
|
|
flex: 1;
|
|
|
background: #f5f5f5;
|
|
|
- border-radius: 20px;
|
|
|
- padding: 6px 14px;
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 8px 14px;
|
|
|
+}
|
|
|
+.chat-footer :deep(.van-field__control) {
|
|
|
+ max-height: 120px;
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
/* 许愿建议卡 */
|