更新文档
This commit is contained in:
@@ -556,6 +556,12 @@
|
|||||||
</pre>
|
</pre>
|
||||||
<p>创建用于解析该消息的组件。</p>
|
<p>创建用于解析该消息的组件。</p>
|
||||||
<pre>{{tip}}</pre>
|
<pre>{{tip}}</pre>
|
||||||
|
<p>IMUI初始化的时候,设置左侧联系人最新消息的渲染内容</p>
|
||||||
|
<pre>
|
||||||
|
IMUI.setLastContentRender('voice', message => {
|
||||||
|
return <span>[语音]</span>
|
||||||
|
})
|
||||||
|
</pre>
|
||||||
<p>最后一步,注册组件,必须使用全局注册的方式。</p>
|
<p>最后一步,注册组件,必须使用全局注册的方式。</p>
|
||||||
<pre>
|
<pre>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
@@ -1102,6 +1108,10 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
IMUI.setLastContentRender('voice', message => {
|
||||||
|
return <span>[语音]</span>
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleMenuAvatarClick() {
|
handleMenuAvatarClick() {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>Lemon IMUI</title><link href=css/index.8056692e.css rel=preload as=style><link href=js/chunk-vendors.e4810482.js rel=preload as=script><link href=js/index.5ccc5cbd.js rel=preload as=script><link href=css/index.8056692e.css rel=stylesheet></head><body><noscript><strong>We're sorry but flat-im doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.e4810482.js></script><script src=js/index.5ccc5cbd.js></script></body></html>
|
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>Lemon IMUI</title><link href=css/index.8056692e.css rel=preload as=style><link href=js/chunk-vendors.e4810482.js rel=preload as=script><link href=js/index.c0525144.js rel=preload as=script><link href=css/index.8056692e.css rel=stylesheet></head><body><noscript><strong>We're sorry but flat-im doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.e4810482.js></script><script src=js/index.c0525144.js></script></body></html>
|
||||||
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lemon-imui",
|
"name": "lemon-imui",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"main": "dist/index.umd.min.js",
|
"main": "dist/index.umd.min.js",
|
||||||
"description": "基于 VUE2.0 的 IM 聊天组件",
|
"description": "基于 VUE2.0 的 IM 聊天组件",
|
||||||
"homepage": "https://github.com/fanjyy/lemon-imui",
|
"homepage": "https://github.com/fanjyy/lemon-imui",
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
voice(message) {
|
|
||||||
return "[语音]";
|
|
||||||
},
|
|
||||||
file(message) {
|
file(message) {
|
||||||
return "[文件]";
|
return "[文件]";
|
||||||
},
|
},
|
||||||
video(message) {
|
|
||||||
return "[视频]";
|
|
||||||
},
|
|
||||||
image(message) {
|
image(message) {
|
||||||
return "[图片]";
|
return "[图片]";
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user