🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

afu-vehicle-plate-keyboard-vue

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afu-vehicle-plate-keyboard-vue

vue 实现的车牌键盘。

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

afu-vehicle-plate-keyboard-vue

vue 实现的车牌键盘。

🚗 Demo

Demo

📷 Screenshots

1

2

📦 Installation【Vue3】

yarn add afu-vehicle-plate-keyboard-vue

🔨 Usage

import { LicenseKeyboard } from 'afu-vehicle-plate-keyboard-vue';

...

<template>
  <div>
    <button
      data-test-id="controlButton"
      @click="toggleKeyboard"
      type="submit"
    >
      {{ showKeyboard ? 'close' : 'open' }} the keyboard
    </button>

    <p data-test-id="value">{{ value }}</p>
    <LicenseKeyboard
      :visible="showKeyboard"
      @done="hideKeyboard"
      @onChange="updateValue"
      :value="value"
    />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const showKeyboard = ref(false);
const value = ref('');

const toggleKeyboard = () => {
  showKeyboard.value = !showKeyboard.value;
};

const hideKeyboard = () => {
  showKeyboard.value = false;
};

const updateValue = (newValue:string) => {
  value.value = newValue;
};
</script>

🗺 API

propstypedescription
visiablebooleankeyboard visible
onChange(value: string) => voidtrigger when user tap
valuestringcontrolled value
done() => voidtrigger when keyborad dismiss
confirmButtonStyleStyleVlaueconfirm button style
confirmButtonTextstringconfirm button text
cellTextStyleStyleVlauekeycell style
cellDivStyleStyleVlauekeycell style
defalutConfigStyleVlaueexpand rules

📝 License

MIT License

FAQs

Package last updated on 17 Jun 2024

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