{"id":13535773,"url":"https://github.com/littlewin-wang/vue-images","last_synced_at":"2025-04-02T02:31:25.415Z","repository":{"id":57396273,"uuid":"77899385","full_name":"littlewin-wang/vue-images","owner":"littlewin-wang","description":":lollipop: A simple lightbox component for displaying an array of images","archived":false,"fork":false,"pushed_at":"2017-11-25T02:23:01.000Z","size":455,"stargazers_count":211,"open_issues_count":13,"forks_count":48,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-07T00:36:13.970Z","etag":null,"topics":["demo","lightbox-component","vue-images"],"latest_commit_sha":null,"homepage":"https://littlewin-wang.github.io/vue-images/example","language":"JavaScript","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/littlewin-wang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T08:45:28.000Z","updated_at":"2025-02-07T07:05:17.000Z","dependencies_parsed_at":"2022-09-13T18:31:41.082Z","dependency_job_id":null,"html_url":"https://github.com/littlewin-wang/vue-images","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/littlewin-wang%2Fvue-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewin-wang%2Fvue-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewin-wang%2Fvue-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewin-wang%2Fvue-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/littlewin-wang","download_url":"https://codeload.github.com/littlewin-wang/vue-images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246743637,"owners_count":20826568,"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":["demo","lightbox-component","vue-images"],"created_at":"2024-08-01T09:00:26.682Z","updated_at":"2025-04-02T02:31:25.137Z","avatar_url":"https://github.com/littlewin-wang.png","language":"JavaScript","funding_links":[],"categories":["UI组件"],"sub_categories":[],"readme":"# vue-images\n[![npm version](https://img.shields.io/npm/v/vue-images.svg?style=flat-square)](https://badge.fury.io/js/vue-images)\n[![MIT Licence](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/littlewin-wang/vue-images/blob/master/LICENSE)\n\n\u003e A simple lightbox component for displaying an array of images\n\n\u003cbr\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/14028075/22059135/9a633f74-dda6-11e6-8314-3b745801b4e1.gif\" width=\"70%\" height=\"70%\"\u003e\n\n## Feature\n\n- Mobile friendly\n\n- Thumbnail navigation\n\n- Responsive design\n\n## Demo \u0026 Examples\nLive demo: [https://littlewin-wang.github.io/vue-images/example](https://littlewin-wang.github.io/vue-images/example)\n\n## Start guide\n\n- Import using module:\n``` bash\n// Install using npm\nnpm install vue-images --save\n\n// In ES6 module\nimport vueImages from 'vue-images'\n\n// Use module as component\nnew Vue({\n  el: '#app',\n  data () {\n    return {\n      images: [...],\n      ...\n    }\n  },\n  components: {\n    vueImages: vueImages\n  }\n})\n```\n- Import using script tag:\n``` html\n\u003cscript src=\"../node-modules/vue-images/dist/vue-images.js\"\u003e\u003c/script\u003e\n```\n\n``` js\nnew Vue({\n  el: '#app',\n  data () {\n    return {\n      images: [...],\n      ...\n    }\n  },\n  components: {\n    vueImages: vueImages.default\n  }\n})\n```\n\n## Options\n\nProperty | Type | Default\t| Description\n-------- | ---- | ------- | -----------\nimages | array\t| undefined\t| Required. An array of objects containing valid src and srcset values of img element\nmodalclose\t| bool\t| true\t| Allow users to exit the lightbox by clicking the backdrop\nkeyinput\t| bool\t| true\t| Supports keyboard input - esc, ←, and →\nmousescroll\t| bool\t| true\t| Supports mouse scroll\nshowclosebutton\t| bool\t| true\t| Optionally display a close X button in top right corner\nshowcaption\t| bool\t| true\t| Optionally display a caption under the image\nimagecountseparator\t| string\t| ' of '\t| Custom separator for the image count\nshowimagecount\t| bool\t| true\t| Optionally display image index, e.g., \"3 of 20\"\nshowthumbnails\t| bool\t| false\t| Optionally display thumbnails beneath the Lightbox\n\n## Change log\n- 1.0.0: Init file structure -\u003e npm publish\n- 1.0.1: Fix some bug when display in example page\n- 1.0.2: Add basic config options\n- 1.0.3: Add full screen and autoplay handle\n- 1.0.4: Fix #2 \u0026 #3\n- 1.0.5: Package css,js to single js file\n- 1.0.6: fix #6\n- 1.0.7: Fix #8\n- 1.0.8: Fix #9 (add html parser in the caption \u0026 add flex-wrap to the gallery)\n- 1.0.9: Add 'main' in package.json\n- 1.0.10: Fix #17 \u0026 #14\n- 1.1.0: Add transition \u0026 debounce strategy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlewin-wang%2Fvue-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittlewin-wang%2Fvue-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlewin-wang%2Fvue-images/lists"}