Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/HJ29/vue3-scroll-picker
Vue 3 scroll picker plugin.
yarn add vue3-scroll-picker
npm i --save vue3-scroll-picker
import { createApp } from 'vue';
import App from './App.vue'
import ScrollPicker from 'vue3-scroll-picker';
const app = createApp(App);
app.use(ScrollPicker);
app.mount('#app')
import ScrollPicker from 'vue3-scroll-picker';
export default {
components: {
ScrollPicker,
},
};
<template>
<scroll-picker
:options="options"
v-model="selections"
/>
</template>
<script>
import { defineComponent, reactive, toRefs } from 'vue';
const exampleOptions = [
[
{
label: "A1",
value: "a1"
},
{
label: "A2",
value: "a2"
},
],
[
{
label: "B1",
value: "b1"
},
{
label: "B2",
value: "b2"
},
],
];
export default defineComponent({
setup() {
const state = reactive({
options: exampleOptions,
selections: ['a2','b1'],
});
return {
...toRefs(state),
};
}
});
</script>
Name | Type | Required | Default | Notes |
---|---|---|---|---|
:options | string[][] { label: string; value: string }[][] | yes | [] | Options use can select. label value type: label as display, value to emit label value example: [ [ { label: 'A1', value: 'a1' }, { label: 'A2', value: 'a2' } ], [ { label: 'B1', value: 'b1' } ] ] string type: same label and value string type example: [ [ 'a1', 'a2' ], [ 'b1' ] ] |
:valueModel | v-model | string[] | yes | [] | Array value emit Example: [ 'a2', 'b1' ] |
active-style | string | no | '' | css (change active option style)style |
inactive-style | string | no | '' | css (change inactive option style)style |
active-class | string | no | '' | css class |
inactive-class | string | no | '' | css class |
Name | Description |
---|---|
@update:modelValue | event emit when use select |
Name | prop | Description |
---|---|---|
v-slot:option | active: boolean item: string | { label: string; value: string } | override option card |
v-slot:center-overlay | override center active option area, able to add seperator to active area | |
v-slot:top-overlay | override top inactive option area, able to change top gradient color | |
v-slot:bottom-overlay | override bottom inactive option area, able to change bottom gradient color |
yarn
yarn serve
yarn build
FAQs
Unknown package
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.