Giter Site home page Giter Site logo

wx-us-keyboard's Introduction

vehicleKeyboard

微信小程序-虚拟英文输入键盘组件

需求

微信小程序不能很好控制键盘的升降。为了有更好的控制权限做了个虚拟键盘

效果

功能

  1. 键盘事件
    1. 输入(包括点击删除按钮)过程中会触发键盘组件的input事件,同时会回传当前已输入值,可捕获此事件获取键盘输入值;
    2. 点击右下角的‘完成’按钮会触发键盘组件的done事件,同时会回传当前已输入值,可捕获此事件然后自定义处理逻辑;

使用

  1. 父页面配置
    1. json文件引入此组件
    {
        "usingComponents": {
            "vehicleKeyboard": "/components/wx-us-keyboard/index"
         }
    }
    1. wxml文件插入此组件
    <usKeyboard bindinput="inputChange" binddone="inputDone" id="keyboard"></usKeyboard>
    1. js文件处理键盘事件
      虚拟键盘组件输入时的inputChange事件以及点击完成时的inputDone事件,具体使用可参考代码示例中index.js

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.