{"action":"opened","issue":{"url":"https://api.github.com/repos/hilongjw/vue-lazyload/issues/209","repository_url":"https://api.github.com/repos/hilongjw/vue-lazyload","labels_url":"https://api.github.com/repos/hilongjw/vue-lazyload/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/hilongjw/vue-lazyload/issues/209/comments","events_url":"https://api.github.com/repos/hilongjw/vue-lazyload/issues/209/events","html_url":"https://github.com/hilongjw/vue-lazyload/issues/209","id":280353074,"number":209,"title":"v-lazy使用文档优化建议","user":{"login":"ziyoung","id":12947422,"avatar_url":"https://avatars1.githubusercontent.com/u/12947422?v=4","gravatar_id":"","url":"https://api.github.com/users/ziyoung","html_url":"https://github.com/ziyoung","followers_url":"https://api.github.com/users/ziyoung/followers","following_url":"https://api.github.com/users/ziyoung/following{/other_user}","gists_url":"https://api.github.com/users/ziyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/ziyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziyoung/subscriptions","organizations_url":"https://api.github.com/users/ziyoung/orgs","repos_url":"https://api.github.com/users/ziyoung/repos","events_url":"https://api.github.com/users/ziyoung/events{/privacy}","received_events_url":"https://api.github.com/users/ziyoung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-08T02:51:56Z","updated_at":"2017-12-08T02:51:56Z","closed_at":null,"author_association":"NONE","body":"**v-lazy** 指令要求必须传入完整的图片链接，但是在实际开发过程中，图片存放在七牛，数据库只是保存图片的key。并且在加载图片时，还可能图片进行一些优化处理，因此加载图片的过滤器是必不可少的。Vue 2 指令中虽然无法直接使用过滤器，但是还有一种比较 hack 的方法可以在[指令中使用过滤器](https://github.com/vuejs/vue/issues/4352)。\r\n```html\r\n<img v-lazy=\"$options.filters.yourFilter(imgKey)\" alt=\"pic\" />\r\n```"}}
{"actor":{"display_login":"ziyoung"}}