
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
vue-scroll-bar
Advanced tools
a simple custom scrollbar vue component, it can support pc and mobile.
npm i vue-scroll-bar --save
<template>
<scroll-bar class="warp" :scrollTrackStyle="scrollTrackStyle" :scrollBarStyle="scrollBarStyle">
<div class="test">
<p v-for="index in 6">
item no {{index}}
</p>
</div>
</scroll-bar>
</template>
import scrollBar from 'vue-scroll-bar';
export default {
components: { scrollBar },
data() {
return {
scrollTrackStyle: {
backgroundColor: 'red'
},
scrollBarStyle: {
...
}
};
}
};
<style>
.warp{
height: 80px;
overflow: hidden;
}
</style>
Props | Type | Default | Description |
---|---|---|---|
scrollTrackStyle | Object | {} | the style of scroll track |
scrollTrackYStyle | Object | scrollTrackStyle | the style of scroll track in the direction of Y axis |
scrollTrackXStyle | Object | scrollTrackStyle | the style of scroll track in the direction of X axis |
scrollBarStyle | Object | {} | the style of scroll bar |
scrollBarYStyle | Object | scrollBarStyle | the style of scroll bar in the direction of Y axis |
scrollBarXStyle | Object | scrollBarStyle | the style of scroll bar in the direction of X axis |
barYMinHeight | Number | 20 | the min height of scroll bar in the direction of Y axis |
barXMinWidth | Number | 20 | the min width of scroll bar in the direction of X axis |
overflow | String | 'auto' | 'auto', 'hidden', 'hidden-x', 'hidden-y' |
watchValue | Any | null | when content expands, bar would be refreshed |
mobile | Boolean | false | scrollbar will be forced to show in mobile mode when it is set to true |
FAQs
a simple custom scrollbar vue component
The npm package vue-scroll-bar receives a total of 82 weekly downloads. As such, vue-scroll-bar popularity was classified as not popular.
We found that vue-scroll-bar 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.