Giter Club home page Giter Club logo

lemon-imui's People

Contributors

fanjyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lemon-imui's Issues

iOS 上输入框无法获取焦点的问题

在 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" />

enter键发送消息

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.

error

This dependency was not found:

  • lemon-imui in ./src/main.js

To install it, you can run: npm install --save lemon-imui

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.