{"id":13535813,"url":"https://github.com/staskjs/vue-slick","last_synced_at":"2026-01-27T17:35:44.050Z","repository":{"id":41153153,"uuid":"72110506","full_name":"staskjs/vue-slick","owner":"staskjs","description":"Vue component for Slick-carousel (http://kenwheeler.github.io/slick)","archived":false,"fork":false,"pushed_at":"2023-07-20T15:30:20.000Z","size":324,"stargazers_count":614,"open_issues_count":4,"forks_count":110,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-02-24T03:11:30.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/staskjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-27T13:22:10.000Z","updated_at":"2025-02-11T21:32:55.000Z","dependencies_parsed_at":"2024-01-02T23:29:30.596Z","dependency_job_id":"b9e4b618-5a22-4a02-b6d1-3dcdeaa2c927","html_url":"https://github.com/staskjs/vue-slick","commit_stats":{"total_commits":65,"total_committers":22,"mean_commits":"2.9545454545454546","dds":0.7846153846153846,"last_synced_commit":"3c66dab7bf756b425341ecb353ee6a9c4d732af2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staskjs%2Fvue-slick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staskjs%2Fvue-slick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staskjs%2Fvue-slick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staskjs%2Fvue-slick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staskjs","download_url":"https://codeload.github.com/staskjs/vue-slick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367942,"owners_count":19951444,"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":[],"created_at":"2024-08-01T09:00:28.343Z","updated_at":"2026-01-27T17:35:44.011Z","avatar_url":"https://github.com/staskjs.png","language":"Vue","funding_links":[],"categories":["UI组件","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["Libraries \u0026 Plugins","圆盘传送带","UI Components","Carousel"],"readme":"# Slick for Vue.js\n\n# ATTENTION!\nThis package is no longer supported by its main contributor ([@staskjs](https://github.com/staskjs)). If you would like to work on it, I will gladly add you as a collaborator. Please reach me on telegram @staskjs.\n\n## Vue support\n\nSupports only Vue \u003e= 2\n\nFor support Vue / Nuxt 3 see [here](https://github.com/Efcolipt/vue-slick-ts)\n\n## Installation and usage\n\nSee official documentation [here](http://kenwheeler.github.io/slick).\n\n```sh\nnpm install vue-slick\n# or\nyarn add vue-slick\n```\n\n***NOTE***: `slick-carousel` official package appears to use `jquery` as a dependency in package.json,\ndespite it would be more appropriate to use it as a peer dependency to avoid possibility of using multiple\nversions of jquery. Be aware of that. When using `webpack` you can solve this problem with aliases.\n\n```javascript\nimport Slick from 'vue-slick';\n\nnew Vue({\n\n    components: { Slick },\n\n    data() {\n        return {\n            slickOptions: {\n                slidesToShow: 3,\n                // Any other options that can be got from plugin documentation\n            },\n        };\n    },\n\n    // All slick methods can be used too, example here\n    methods: {\n        next() {\n            this.$refs.slick.next();\n        },\n\n        prev() {\n            this.$refs.slick.prev();\n        },\n\n        reInit() {\n            // Helpful if you have to deal with v-for to update dynamic lists\n            this.$nextTick(() =\u003e {\n                this.$refs.slick.reSlick();\n            });\n        },\n\n        // Events listeners\n        handleAfterChange(event, slick, currentSlide) {\n            console.log('handleAfterChange', event, slick, currentSlide);\n        },\n        handleBeforeChange(event, slick, currentSlide, nextSlide) {\n            console.log('handleBeforeChange', event, slick, currentSlide, nextSlide);\n        },\n        handleBreakpoint(event, slick, breakpoint) {\n            console.log('handleBreakpoint', event, slick, breakpoint);\n        },\n        handleDestroy(event, slick) {\n            console.log('handleDestroy', event, slick);\n        },\n        handleEdge(event, slick, direction) {\n            console.log('handleEdge', event, slick, direction);\n        },\n        handleInit(event, slick) {\n            console.log('handleInit', event, slick);\n        },\n        handleReInit(event, slick) {\n            console.log('handleReInit', event, slick);\n        },\n        handleSetPosition(event, slick) {\n            console.log('handleSetPosition', event, slick);\n        },\n        handleSwipe(event, slick, direction) {\n            console.log('handleSwipe', event, slick, direction);\n        },\n        handleLazyLoaded(event, slick, image, imageSource) {\n            console.log('handleLazyLoaded', event, slick, image, imageSource);\n        },\n        handleLazyLoadError(event, slick, image, imageSource) {\n            console.log('handleLazeLoadError', event, slick, image, imageSource);\n        },\n    },\n});\n```\n\n```html\n\u003cslick\n  ref=\"slick\"\n  :options=\"slickOptions\"\n  @afterChange=\"handleAfterChange\"\n  @beforeChange=\"handleBeforeChange\"\n  @breakpoint=\"handleBreakpoint\"\n  @destroy=\"handleDestroy\"\n  @edge=\"handleEdge\"\n  @init=\"handleInit\"\n  @reInit=\"handleReInit\"\n  @setPosition=\"handleSetPosition\"\n  @swipe=\"handleSwipe\"\n  @lazyLoaded=\"handleLazyLoaded\"\n  @lazyLoadError=\"handleLazyLoadError\"\u003e\n  \u003ca href=\"http://placehold.it/2000x1000\"\u003e\u003cimg src=\"http://placehold.it/2000x1000\" alt=\"\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://placehold.it/2000x1000\"\u003e\u003cimg src=\"http://placehold.it/2000x1000\" alt=\"\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://placehold.it/2000x1000\"\u003e\u003cimg src=\"http://placehold.it/2000x1000\" alt=\"\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://placehold.it/2000x1000\"\u003e\u003cimg src=\"http://placehold.it/2000x1000\" alt=\"\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://placehold.it/2000x1000\"\u003e\u003cimg src=\"http://placehold.it/2000x1000\" alt=\"\"\u003e\u003c/a\u003e\n\u003c/slick\u003e\n```\n\nIf you need, you can import slick styles too:\n\n```js\n// MyCarrousel.vue\nimport 'slick-carousel/slick/slick.css';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaskjs%2Fvue-slick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaskjs%2Fvue-slick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaskjs%2Fvue-slick/lists"}