增加sendText、sendKey参数,增加editor-footer插槽

This commit is contained in:
fan
2021-01-28 20:22:50 +08:00
parent 1a4fddb482
commit 5d7432590c
11 changed files with 240 additions and 36 deletions
+26 -2
View File
@@ -65,7 +65,12 @@
@message-click="handleMessageClick"
@change-contact="handleChangeContact"
@send="handleSend"
send-text="发送消息"
:send-key="(e)=>e.ctrlKey == true"
>
<template #editor-footer>
按 ctrl 键发送消息
</template>
<template #cover>
<div class="cover">
<i class="lemon-icon-message"></i>
@@ -176,7 +181,7 @@
<td></td>
</tr>
<tr>
<td>lastSendTime</td>
<td>lastContent</td>
<td>最近一条消息的内容</td>
<td>String | Vnode</td>
<td></td>
@@ -294,7 +299,21 @@
<td width="350">主题</td>
<td width="150">default | blue</td>
<td width="100">default</td>
<td>主题颜色</td>
<td></td>
</tr>
<tr>
<td width="150">sendText</td>
<td width="350">发送消息按钮的文字</td>
<td width="150">String</td>
<td width="100">发送消息</td>
<td></td>
</tr>
<tr>
<td width="150">sendKey</td>
<td width="350">快捷发送键检查函数</td>
<td width="150">Function(event)=>Boolean</td>
<td width="100"></td>
<td>(e)=>e.keyCode == 13 && e.ctrlKey</td>
</tr>
<tr>
<td width="150">simple</td>
@@ -585,6 +604,11 @@
<td width="350">初始化时的封面</td>
<td width="150">-</td>
</tr>
<tr>
<td width="150">editor-footer</td>
<td width="350">消息输入框底部</td>
<td width="150">-</td>
</tr>
<tr>
<td width="150">message-title</td>
<td width="350">消息列表的标题</td>