
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@lslan/screen-keyboard
Advanced tools
English | 简体中文
pnpm i @lslan/screen-keyboard
# or
npm install @lslan/screen-keyboard
# or
yarn add @lslan/screen-keyboard
Global
import { createApp } from 'vue'
import App from './App.vue'
import ScreenKeyboard from '@lslan/screen-keyboard'
import '@lslan/screen-keyboard/dist/screen-keyboard.css'
const app = createApp(App).mount('#app')
app.use(ScreenKeyboard)
Local
<script setup lang="ts">
import { ref } from 'vue'
import { Keyboard, KeyboardInput } from '@lslan/screen-keyboard'
import '@lslan/screen-keyboard/dist/screen-keyboard.css'
const inputValue = ref('')
function handleInput(key: string) {
console.log("key:", key)
}
</script>
<template>
<div>
<Keyboard @input="handleInput" />
<KeyboardInput v-model:value="inputValue" />
</div>
</template>
Component name | Descriptions |
---|---|
Keyboard | Provides a numeric and alphabetic keyboard, and its position can be dragged |
KeyboardInput | An input component with the virtual keyboard |
Keyboard
Property | Description | Type | Default |
---|---|---|---|
defaultType | The default keyboard type | number | text | number |
position | The initial position of the keyboard panel on the screen when it is displayed | center |topCenter | bottomCenter | leftTop | leftBottom | rightTop | rightBottom | [number,number] | leftBottom |
allowToggle | Allow keyboard type switching | boolean | false |
canMove | Can keyboard panel be moved by dragging | boolean | true |
onClose | Callback when click the Close button | () => void | - |
onInput | Callback when input | (key:string, isDelete:boolean, isDeleteAll:boolean) => void | - |
onConfirm | Callback when click the Confirm button | () => void | - |
onDelete | Callback when click the Backspace button | () => void | - |
onDeleteAll | Callback when click the Clear button | () => void | - |
KeyboardInput
Property | Description | Type | Default |
---|---|---|---|
value(v-model) | The input content value | string | - |
show | Whether to show the keyboard panel | boolean | false |
size | The size of the input box | small | middle | large | middle |
isFocusShow | Auto show the keyboard panel when focus | boolean | false |
disabled | Whether the input is disabled | boolean | false |
defaultType | The default keyboard type | number | text | number |
position | The initial position of the keyboard panel on the screen when it is displayed | center | leftTop | leftBottom | rightTop | rightBottom | [number,number] | leftBottom |
allowToggle | Allow keyboard type switching | boolean | false |
canMove | Can the keyboard panel be moved by dragging | boolean | true |
onInput | Callback when input | (key:string, isDelete:boolean, isDeleteAll:boolean) => void | - |
onChange | Callback when value change | (value:string) => void | - |
onConfirm | Callback when click the Confirm button | (value:string) => void | - |
onClose | Callback when keyboard panel display | () => void | - |
onOpen | Callback when keyboard panel show | () => void | - |
FAQs
A virtual keyboard for screen input
The npm package @lslan/screen-keyboard receives a total of 0 weekly downloads. As such, @lslan/screen-keyboard popularity was classified as not popular.
We found that @lslan/screen-keyboard demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.