{"id":13536258,"url":"https://github.com/yodfz/vue-lazyloadImg","last_synced_at":"2025-04-02T02:32:54.348Z","repository":{"id":143926221,"uuid":"67971688","full_name":"yodfz/vue-lazyloadImg","owner":"yodfz","description":"vue插件，延迟载入图片.","archived":false,"fork":false,"pushed_at":"2016-09-29T11:52:55.000Z","size":33,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T18:17:04.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/yodfz.png","metadata":{"files":{"readme":"README.CN.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-09-12T03:15:50.000Z","updated_at":"2024-09-16T09:31:56.000Z","dependencies_parsed_at":"2024-01-07T01:57:57.373Z","dependency_job_id":null,"html_url":"https://github.com/yodfz/vue-lazyloadImg","commit_stats":null,"previous_names":["yodfz/vue-lazyimg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yodfz%2Fvue-lazyloadImg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yodfz%2Fvue-lazyloadImg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yodfz%2Fvue-lazyloadImg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yodfz%2Fvue-lazyloadImg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yodfz","download_url":"https://codeload.github.com/yodfz/vue-lazyloadImg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222795273,"owners_count":17038797,"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:36.481Z","updated_at":"2024-11-03T01:30:53.449Z","avatar_url":"https://github.com/yodfz.png","language":"JavaScript","funding_links":[],"categories":["实用库","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# 如何使用?\n![效果展示](http://ww3.sinaimg.cn/large/882a72d0gw1f7qycyxootg20i70hd7wh.gif)\n## 安装插件\n```javascript\nnpm install --save vue-lazyloadimg\n```\n\n## 引用插件\n导入插件 `vue-lazyloadimg`.\n\n并且使用 vue.use 引用它.\n```javascript\nimport vueLazyImg from 'vue-lazyloadimg';\nimport vue from 'vue';\nvue.use(vueLazyImg);\n```\n\n## 在模版中如何使用?\n在绑定插件之后,插件会读取当前页面上的class标示为`lazyimg`的节点.然后缓存在系统中.\n并且在页面节点出现变化的时候会重新缓存 `lazyimg` 节点.\n``` html\n\u003cimg src=\"{{'1x1 transform png'}}\" :data-src=\"{{need load img url}}\" class=\"lazyimg\" alt=\"\"\u003e\n```\n\n# build script\nuse babel.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyodfz%2Fvue-lazyloadImg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyodfz%2Fvue-lazyloadImg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyodfz%2Fvue-lazyloadImg/lists"}