
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
vue-keyboard-cn
Advanced tools
npm i vue-keyboard-cn
import { KyInput, KyBoard,KeyboardAwareScrollView } from "vue-keyboard-cn";
import "vue-keyboard-cn/dist/index.css"
Vue.component("ky-input",KyInput)
Vue.component("key-board",KyBoard)
Vue.component("key-board-aware-scroll-view", KeyboardAwareScrollView)
<template>
<key-board-aware-scroll-view class="inner-wrap">
<ky-input v-model="mixValue" placeholder="Any string"/>
<key-board :emojiMap="emoji" />
</key-board-aware-scroll-view>
</template>
<script>
import { person, hearts, symbo } from "../dev/emojiImages.js";
export default {
name: "App",
data() {
return {
emoji: {
person,
hearts,
symbo,
},
mixValue: `hello,world!!`,
};
},
};
</script>
key | desc | default | required |
---|---|---|---|
type | Any one of [int,float,cn,en,mix] | mix | FALSE |
decimal | It will only take effect when the type is float | 2 | FALSE |
regx | a regular object of literal | -- | FALSE |
allowEnter | Can enter | FALSE | FALSE |
keyBoard | Keyboard component $ref | -- | FALSE |
canSwitchOtherBoard | Can switch other keyboards | TRUE | FALSE |
inputLang | Keyboard display input method, cn or en can be selected | cn | FALSE |
showFixedInput | Whether to display the input box fixed at the bottom of the keyboard - | FALSE | FALSE |
placeholder | placeholder Text | --- | FALSE |
docBodyAutoScroll | Whether to trigger the body to scroll, let the input enter the visual area | TRUE | FALSE |
scrollWrap | Selector for scrollable dom container, replace document body scroll,like "#box",only work when you set props rotate | -- | FALSE |
rotate | Horizontal screen app rotation angle,Choose between [0,90,-90].Only for horizontal screen app | -- | FALSE |
key | desc | default | required |
---|---|---|---|
emojiMap | Emoji data reference | -- | FALSE |
disabledInputUpdateMixKeyBoardLang | Prohibit the input component from switching input methods | FALSE | FALSE |
keyBoardMaps | Keyboard table of contents reference | object | FALSE |
hideHead | hide top tab header | FALSE | FALSE |
rotate | Horizontal screen app rotation angle,Choose between [0,90,-90] | FALSE | FALSE |
{
show:true,
el:dom
}
<button @click.stop="selectFuc">select</button>
<button @click.stop="unselectFuc">unSelect</button>
this.$refs["inputElement"].select();
this.$refs["inputElement"].unSelect();
Q:The input box is covered by the keyboard
A:Use KeyboardAwareScrollView component to wrap form elements
Q:Scrollable container is not a body node
A:The input component should use the props scrollWrap.Only in this way will the input component appear in the visual area when the keyboard is processed
Q:What to do if the app is a horizontal screen app.May be you like it vue-horizontal-screen
A:Add the props rotate to the KyInput element,and add the props isHscreenApp to KyBoard element
FAQs
vue virtual keyboard for wap
The npm package vue-keyboard-cn receives a total of 1 weekly downloads. As such, vue-keyboard-cn popularity was classified as not popular.
We found that vue-keyboard-cn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.