New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-vue-dusion-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-vue-dusion-keyboard

A Vue.js project

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

electron-vue-dusion-keyboard

基于vue的一款js输入法,需运行在electron环境下


安装

npm安装

npm install electron-vue-dusion-keyboard -S

在 main.js 中写入以下内容全局注册:

import VueDusionKeyboard from 'electron-vue-dusion-keyboard'
Vue.use(VueDusionKeyboard)

标签引入

<script src="./electron-vue-dusion-keyboard.js"></script>

使用

在非all模式下,input标签添加属性data-mode,然后在合适位置放置组件<vue-dusion-keyboard></vue-dusion-keyboard>即可。

<input type="text" data-mode="en_cap" />
<vue-dusion-keyboard float></vue-dusion-keyboard>

组件添加all属性即可为所有input标签注册弹出输入法

<vue-dusion-keyboard all float :blurHide="true" hand></vue-dusion-keyboard>

input标签属性

属性说明类型可选值默认值
data-mode弹出输入法的类型:
en_let 英文小写
en_cap 英文大写
cn 中文
hand 手写
Stringen_let
en_cap
cn
hand
en_let

组件属性

属性说明类型可选值默认值
all是否为所有input标签注册弹出输入法Booleantrue/falsefalse
float是否使输入法组件浮动在当前input标签下方Booleantrue/falsefalse
hand是否启用手写输入,默认禁用Booleantrue/falsefalse
blurHideinput标签失去焦点时是否隐藏输入组件Booleantrue/falsetrue
enter-active-class输入组件弹出来的动画效果,基于Animate.cssStringAnimate.css 官网fadeInUp
leave-active-class输入组件隐藏时的动画效果String同上fadeOutDown

启用手写输入需运行在electron环境下,并且添加手写输入dll。手写输入dll加QQ751069244索取 手写输入dll暂不对外公开。

FAQs

Package last updated on 13 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc