Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
vue-scroll-picker
Advanced tools
iOS Style Scroll Picker Component for Vue 3. Support All Gestures of Mouse(also MouseWheel) and Touch.
iOS Style Scroll Picker Component for Vue 3. Support All Gestures of Mouse(also MouseWheel) and Touch.
If you are using vue 2, please refer to the v0.x branch.
npm i vue-scroll-picker
Global Registration
Vue3 Global Registration Guide
import { createApp } from "vue";
import VueScrollPicker from "vue-scroll-picker";
import "vue-scroll-picker/lib/style.css";
const app = createApp(); /* */
app.use(VueScrollPicker); // export default is plugin
Local Registration
<template>
<VueScrollPicker :options="options" />
</template>
<script>
import { VueScrollPicker } from 'vue-scroll-picker'
export default {
components: {
VueScrollPicker, // export VueScrollPicker is component
},
}
</script>
<style src="vue-scroll-picker/lib/style.css"></style>
Name | Type | Default | Example |
---|---|---|---|
modelValue | any | null | |
placeholder | string | null | |
empty | string | 'No Items' | |
options | string[] { name: string, value: any, disabled: boolean }[] | [] | ["10KG", "20KG", "30KG"] [{value: 10, name: "10KG"}, {value: 20, name: "20KG"}] |
dragSensitivity | number | 1.7 | |
touchSensitivity | number | 1.7 | |
scrollSensitivity | number | 1 |
Name | Type |
---|---|
update:modelValue | (value: any) => void |
start | () => void |
move | (value: any) => void |
end | (value: any) => void |
cancel | () => void |
wheel | (value: any) => void |
click | (value: any, oldValue: any) => void |
Name | Prop | Default |
---|---|---|
default | { option: { name: string, value: any } } | {{ option.name }} |
placeholder | { text: string } | {{ placeholder }} |
empty | { text: string } | No Items |
FAQs
iOS Style Scroll Picker Component for Vue 3. Support All Gestures of Mouse(also MouseWheel) and Touch.
The npm package vue-scroll-picker receives a total of 4,562 weekly downloads. As such, vue-scroll-picker popularity was classified as popular.
We found that vue-scroll-picker 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.