fanjyy / lemon-imui Goto Github PK
View Code? Open in Web Editor NEW基于 VUE 2.0 的 IM 聊天组件
Home Page: http://june000.gitee.io/lemon-im/
License: MIT License
基于 VUE 2.0 的 IM 聊天组件
Home Page: http://june000.gitee.io/lemon-im/
License: MIT License
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/lemon-imui/packages/components/editor.vue b/node_modules/lemon-imui/packages/components/editor.vue
index 9c1b6fe..22ad72b 100644
--- a/node_modules/lemon-imui/packages/components/editor.vue
+++ b/node_modules/lemon-imui/packages/components/editor.vue
@@ -36,7 +36,8 @@ export default {
sendKey: {
type: Function,
default(e) {
- return e.keyCode == 13 && e.ctrlKey === true;
+ //enter键发送消息
+ return e.keyCode == 13;
},
},
},
@@ -138,7 +139,7 @@ export default {
<div class="lemon-editor__tip">
{useScopedSlot(
this.IMUI.$scopedSlots["editor-footer"],
- "使用 ctrl + enter 快捷发送消息",
+ "使用 enter 快捷发送消息",
)}
</div>
<div class="lemon-editor__submit">
This issue body was partially generated by patch-package.
This dependency was not found:
To install it, you can run: npm install --save lemon-imui
index.umd.min.js IE11在消息上右键会报 对象不支持“forEach”属性或方法
在 components/editor.vue文件中,加个样式可以解决
<div style="-webkit-user-select:text !important;" class="lemon-editor__input" ref="textarea" contenteditable="true" on-keyup={this._handleKeyup} on-keydown={this._handleKeydown} on-paste={this._handlePaste} on-click={this._handleClick} spellcheck="false" />
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.