{"id":19012212,"url":"https://github.com/binaryify/vue-custom-scrollbar","last_synced_at":"2026-01-28T15:05:57.498Z","repository":{"id":37027059,"uuid":"149022952","full_name":"Binaryify/vue-custom-scrollbar","owner":"Binaryify","description":"Minimalistic but perfect custom scrollbar component for Vue.JS","archived":false,"fork":false,"pushed_at":"2025-02-09T13:43:47.000Z","size":1298,"stargazers_count":144,"open_issues_count":26,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-09T14:34:46.821Z","etag":null,"topics":["perfect-scrollbar","scrollbar","vue-custom-scrollbar","vue-perfect-scrollbar","vue-scrollbar"],"latest_commit_sha":null,"homepage":"https://binaryify.github.io/vue-custom-scrollbar/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Binaryify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-16T18:17:17.000Z","updated_at":"2025-01-22T09:16:05.000Z","dependencies_parsed_at":"2023-01-26T06:45:47.032Z","dependency_job_id":"e1cc5f89-acc6-4e3e-a999-72d65c4d3083","html_url":"https://github.com/Binaryify/vue-custom-scrollbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binaryify%2Fvue-custom-scrollbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binaryify%2Fvue-custom-scrollbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binaryify%2Fvue-custom-scrollbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binaryify%2Fvue-custom-scrollbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Binaryify","download_url":"https://codeload.github.com/Binaryify/vue-custom-scrollbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240043930,"owners_count":19739180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perfect-scrollbar","scrollbar","vue-custom-scrollbar","vue-perfect-scrollbar","vue-scrollbar"],"created_at":"2024-11-08T19:17:10.927Z","updated_at":"2026-01-28T15:05:57.440Z","avatar_url":"https://github.com/Binaryify.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-custom-scrollbar\r\n\r\nVue.JS 的简约但完美的自定义滚动条组件(使用了 [utatti/perfect-scrollbar](https://github.com/utatti/perfect-scrollbar),所以如果遇到某些问题,可以查看 `perfect-scrollbar` 仓库)\r\n\r\nMinimalistic but perfect custom scrollbar component for Vue.JS(using [utatti/perfect-scrollbar](https://github.com/utatti/perfect-scrollbar), so if you have any question, you also can check the `perfect-scrollbar` repo)\r\n\r\n## 为什么要自定义滚动条/Why custom scrollbar\r\n\r\n众所周知,谷歌浏览器支持自定义滚动条,但是火狐或其他浏览器不支持,如果你希望你的网站更完美,就用这个组件吧~\r\n\r\nAs you know, Chrome support custom scrollbar, but Firefox or other browsers don't support it, if you want your website perfect, please use this component~\r\n\r\n## 为什么要使用 vue-custom-scrollbar?/Why use vue-custom-scrollbar?\r\n\r\n`vue-custom-scrollbar` 是 Vue.JS 的一个简约但完美的自定义滚动条组件\r\n\r\n`vue-custom-scrollbar` is minimalistic but perfect scrollbar component for Vue.JS.\r\n\r\n- 不改变设计布局 / No change on design layout\r\n- 不需要手动操作 DOM / Don't need manipulate DOM manually\r\n- 使用普通的 `scrollTop` and `scrollLeft` / Use plain `scrollTop` and `scrollLeft`\r\n- 滚动条样式可完全自定义 / Scrollbar style is fully customizable\r\n- 布局更改后更新 / Efficient update on layout change\r\n\r\n## 文档/Docs\r\n\r\n[Docs](https://binaryify.github.io/vue-custom-scrollbar/)\r\n\r\n## 例子/Example\r\n\r\n```vue\r\n\u003ctemplate\u003e\r\n \u003cdiv\u003e\r\n  \u003cvue-custom-scrollbar class=\"scroll-area\"  :settings=\"settings\" @ps-scroll-y=\"scrollHanle\"\u003e\r\n    \u003cimg src=\"http://utatti.github.io/perfect-scrollbar/azusa.jpg\" height=\"720\" width=\"1280\" alt=\"\"\u003e\r\n  \u003c/vue-custom-scrollbar\u003e\r\n\u003c/div\u003e\r\n\u003c/template\u003e\r\n\u003cscript\u003e\r\n/**\r\n * For Vue2/Vue3\r\n*/\r\nimport vueCustomScrollbar from 'vue-custom-scrollbar'\r\nimport \"vue-custom-scrollbar/dist/vueScrollbar.css\"\r\n/**\r\n * For vite\r\n*/\r\nimport vueCustomScrollbar from 'vue-custom-scrollbar/src/vue-scrollbar.vue'\r\n\r\nexport default {\r\n  components: {\r\n    vueCustomScrollbar\r\n  },\r\n  data() {\r\n    return {\r\n      settings: {\r\n        suppressScrollY: false,\r\n        suppressScrollX: false,\r\n        wheelPropagation: false\r\n      }\r\n    }\r\n  },\r\n  methods: {\r\n    scrollHanle(evt) {\r\n      console.log(evt)\r\n    }\r\n  }\r\n}\r\n\u003c/script\u003e\r\n\u003cstyle \u003e\r\n.scroll-area {\r\n  position: relative;\r\n  margin: auto;\r\n  width: 600px;\r\n  height: 400px;\r\n}\r\n\u003c/style\u003e\r\n```\r\n\r\n## License\r\n\r\n[MIT](https://github.com/Binaryify/vue-custom-scrollbar/blob/master/LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryify%2Fvue-custom-scrollbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryify%2Fvue-custom-scrollbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryify%2Fvue-custom-scrollbar/lists"}