{"id":13536152,"url":"https://github.com/gocanto/lazy-vue","last_synced_at":"2025-04-22T10:42:13.008Z","repository":{"id":110652292,"uuid":"72676817","full_name":"gocanto/lazy-vue","owner":"gocanto","description":"A small lazy image loader for Vue","archived":false,"fork":false,"pushed_at":"2016-11-03T17:27:30.000Z","size":125,"stargazers_count":62,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T23:05:45.712Z","etag":null,"topics":["image","javascript","lazy","lazy-load","vue"],"latest_commit_sha":null,"homepage":"https://gocanto.github.io/lazy-vue","language":"HTML","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/gocanto.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-02T20:05:02.000Z","updated_at":"2024-09-16T09:30:35.000Z","dependencies_parsed_at":"2024-01-18T04:08:06.201Z","dependency_job_id":"dc698be6-dd73-4075-bec3-84a99b4a5521","html_url":"https://github.com/gocanto/lazy-vue","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"c2113455c6a662ad627f52357958b1a0997ddcb3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocanto%2Flazy-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocanto%2Flazy-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocanto%2Flazy-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocanto%2Flazy-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocanto","download_url":"https://codeload.github.com/gocanto/lazy-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250222211,"owners_count":21394836,"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":["image","javascript","lazy","lazy-load","vue"],"created_at":"2024-08-01T09:00:35.272Z","updated_at":"2025-04-22T10:42:12.488Z","avatar_url":"https://github.com/gocanto.png","language":"HTML","funding_links":[],"categories":["实用库","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# lazy-vue\n\n\u003ca href=\"https://gocanto.github.io/lazy-vue/\"\u003e\u003cimg src=\"https://img.shields.io/badge/online-demo-green.svg\" alt=\"Demo\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/lazy-vue\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/lazy-vue.svg\" alt=\"Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/lazy-vue\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/lazy-vue.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/gocanto/lazy-vue/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/lazy-vue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\n\nlazy-vue is the easiest way to get a lazy image loader working within your vue projects. It is meant to be as simplest as possible,\nso you do not have to be pulling complicated libraries to accomplish such a task.\n\n\n\n# Requirements\nYou will have to install vue\n\n```js\nnpm install vue\n```\n\n\n# Installation\nTo install this package you just need to open your console line and type ```npm install lazy-vue --save```. If there is a problem during the installation, trying again using the ```force param```, as so ```npm i -f lazy-vue```\n\n\n\n# Gettings started\n\nYou will have to import the component in your application entry point, so you will be able to call it as global when need it. Example:\n\n```js\nrequire('lazy-vue');\n```\n\nTake a look at the \u003ca href=\"https://github.com/gocanto/lazy-vue/blob/master/src/js/demo/main.js\" target=\"_blank\"\u003eexample\u003c/a\u003e published.\n\n\n\n# Implementing the directive in your HTML code\n\n```HTML\n\u003cdiv v-for=\"avatar in images\"\u003e\n    \u003cimg src=\"demo/images/nopic.png\" v-lazy = \"avatar\"\u003e\n\u003c/div\u003e\n```\n\nSee the example \u003ca href=\"https://github.com/gocanto/lazy-vue/blob/master/demo/index.html#L58-L66\" target=\"_blank\"\u003ehere\u003c/a\u003e\n\n\n\n# Contributing\n\nPlease feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.\n\n\n\n# License\n\nThe MIT License (MIT).\n\n\n\n# How can I thank you?\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter? Spread the word!\n\n\nDon't forget to [follow me on twitter](https://twitter.com/gocanto)!\n\nThanks!\n\nGustavo Ocanto.\ngustavoocanto@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocanto%2Flazy-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocanto%2Flazy-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocanto%2Flazy-vue/lists"}