merge
This commit is contained in:
Vendored
-10
@@ -1,10 +0,0 @@
|
|||||||
<meta charset="utf-8">
|
|
||||||
<title>index demo</title>
|
|
||||||
<script src="./index.umd.js"></script>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="./index.css">
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
console.log(index)
|
|
||||||
</script>
|
|
||||||
Vendored
-9051
File diff suppressed because it is too large
Load Diff
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-9061
File diff suppressed because it is too large
Load Diff
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
Vendored
+5
-1
@@ -1 +1,5 @@
|
|||||||
<!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.5b3d3f23.css rel=preload as=style><link href=js/chunk-vendors.e4810482.js rel=preload as=script><link href=js/index.7d134a38.js rel=preload as=script><link href=css/index.5b3d3f23.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.7d134a38.js></script></body></html>
|
<<<<<<< HEAD
|
||||||
|
<!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.5b3d3f23.css rel=preload as=style><link href=js/chunk-vendors.e4810482.js rel=preload as=script><link href=js/index.7d134a38.js rel=preload as=script><link href=css/index.5b3d3f23.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.7d134a38.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.fb7c8942.css rel=preload as=style><link href=js/chunk-vendors.2abee366.js rel=preload as=script><link href=js/index.b920ec2b.js rel=preload as=script><link href=css/index.fb7c8942.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.2abee366.js></script><script src=js/index.b920ec2b.js></script></body></html>
|
||||||
|
>>>>>>> bfc621d3a862a17ba7d25cd31697536e47af83a9
|
||||||
|
|||||||
+7
File diff suppressed because one or more lines are too long
-7
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.7.0",
|
"version": "1.6.16",
|
||||||
"main": "dist/index.umd.min.js",
|
"main": "dist/index.umd.min.js",
|
||||||
"description": "基于 VUE2.0 的 IM 聊天组件",
|
"description": "基于 VUE2.0 的 IM 聊天组件",
|
||||||
"homepage": "http://june000.gitee.io/lemon-im/",
|
"homepage": "http://june000.gitee.io/lemon-im/",
|
||||||
|
|||||||
@@ -586,9 +586,7 @@ export default {
|
|||||||
lastContentRender(message) {
|
lastContentRender(message) {
|
||||||
if (!isFunction(lastContentRender[message.type])) {
|
if (!isFunction(lastContentRender[message.type])) {
|
||||||
console.error(
|
console.error(
|
||||||
`not found '${
|
`not found '${message.type}' of the latest message renderer,try to use ‘setLastContentRender()’`,
|
||||||
message.type
|
|
||||||
}' of the latest message renderer,try to use ‘setLastContentRender()’`,
|
|
||||||
);
|
);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@@ -624,16 +622,20 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 设置联系人的草稿信息
|
* 设置联系人的草稿信息
|
||||||
*/
|
*/
|
||||||
setDraft(contactId, editorValue) {
|
setDraft(cid, editorValue) {
|
||||||
if (isEmpty(contactId) || isEmpty(editorValue)) return false;
|
if (isEmpty(cid) || isEmpty(editorValue)) return false;
|
||||||
const contact = this.findContact(contactId);
|
const contact = this.findContact(cid);
|
||||||
|
let lastContent = contact.lastContent;
|
||||||
if (isEmpty(contact)) return false;
|
if (isEmpty(contact)) return false;
|
||||||
this.CacheDraft.set(contactId, {
|
if (this.CacheDraft.has(cid)) {
|
||||||
editorValue: editorValue,
|
lastContent = this.CacheDraft.get(cid).lastContent;
|
||||||
lastContent: contact.lastContent,
|
}
|
||||||
|
this.CacheDraft.set(cid, {
|
||||||
|
editorValue,
|
||||||
|
lastContent,
|
||||||
});
|
});
|
||||||
this.updateContact({
|
this.updateContact({
|
||||||
id: contactId,
|
id: cid,
|
||||||
lastContent: `<span style="color:red;">[草稿]</span><span>${this.lastContentRender(
|
lastContent: `<span style="color:red;">[草稿]</span><span>${this.lastContentRender(
|
||||||
{ type: "text", content: editorValue },
|
{ type: "text", content: editorValue },
|
||||||
)}</span>`,
|
)}</span>`,
|
||||||
@@ -645,10 +647,15 @@ export default {
|
|||||||
clearDraft(contactId) {
|
clearDraft(contactId) {
|
||||||
const draft = this.CacheDraft.get(contactId);
|
const draft = this.CacheDraft.get(contactId);
|
||||||
if (draft) {
|
if (draft) {
|
||||||
this.updateContact({
|
const currentContent = this.findContact(contactId).lastContent;
|
||||||
id: contactId,
|
if (
|
||||||
lastContent: draft.lastContent,
|
currentContent.indexOf('<span style="color:red;">[草稿]</span>') === 0
|
||||||
});
|
) {
|
||||||
|
this.updateContact({
|
||||||
|
id: contactId,
|
||||||
|
lastContent: draft.lastContent,
|
||||||
|
});
|
||||||
|
}
|
||||||
this.CacheDraft.remove(contactId);
|
this.CacheDraft.remove(contactId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user