{"id":13545760,"url":"https://flitrue.github.io/vue-awesome-pull-refresh/","last_synced_at":"2025-04-02T17:31:45.118Z","repository":{"id":57394600,"uuid":"133785018","full_name":"flitrue/vue-awesome-pull-refresh","owner":"flitrue","description":"A pull down refresh component implements by vuejs. https://flitrue.github.io/vue-awesome-pull-refresh/","archived":false,"fork":false,"pushed_at":"2018-06-05T06:09:33.000Z","size":184,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-22T18:07:19.201Z","etag":null,"topics":["pull-refresh","vue-component","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/flitrue.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":"2018-05-17T08:44:28.000Z","updated_at":"2023-07-25T14:17:12.000Z","dependencies_parsed_at":"2022-09-10T23:12:24.681Z","dependency_job_id":null,"html_url":"https://github.com/flitrue/vue-awesome-pull-refresh","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/flitrue%2Fvue-awesome-pull-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flitrue%2Fvue-awesome-pull-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flitrue%2Fvue-awesome-pull-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flitrue%2Fvue-awesome-pull-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flitrue","download_url":"https://codeload.github.com/flitrue/vue-awesome-pull-refresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246860093,"owners_count":20845598,"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":["pull-refresh","vue-component","vuejs"],"created_at":"2024-08-01T12:00:15.344Z","updated_at":"2025-04-02T17:31:44.781Z","avatar_url":"https://github.com/flitrue.png","language":"Vue","funding_links":[],"categories":["Demo"],"sub_categories":[],"readme":"# vue-awesome-pull-refresh\n[![Build Status](https://www.travis-ci.org/flitrue/vue-awesome-pull-refresh.svg?branch=master)](https://www.travis-ci.org/flitrue/vue-awesome-pull-refresh)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fflitrue%2Fvue-awesome-pull-refresh.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fflitrue%2Fvue-awesome-pull-refresh?ref=badge_shield)\n\n\u003e A pull down refresh component implements by vuejs 2.0 for mobile.\n\n## Demo\n\n[Demo](https://flitrue.github.io/vue-awesome-pull-refresh)\n\nPS: Please use browsers that support Promise\n\n## Usage\n\n### Install\n\n```bash\nnpm install vue-awesome-pull-refresh --save\n```\n\n### CommonJS\n\n```javascript\nvar VuePullRefresh = require('vue-awesome-pull-refresh');\n\nnew Vue({\n    components: {\n        'vue-pull-refresh': VuePullRefresh\n    },\n    data: function () {\n        return {};\n    },\n    methods: {\n        onRefresh: function() {\n            return new Promise(function (resolve, reject) {\n                setTimeout(function () {\n                    resolve();\n                }, 1000);\n            });\n        }\n    },\n    template: '\u003cvue-pull-refresh :on-refresh=\"onRefresh\"\u003e\u003c/vue-pull-refresh\u003e'\n});\n```\n\n### ES6\n```javascript\nimport VuePullRefresh from 'vue-awesome-pull-refresh';\n\nnew Vue({\n    components: {\n        'vue-pull-refresh': VuePullRefresh\n    },\n    data: function () {\n        return {};\n    },\n    methods: {\n        onRefresh: function() {\n            return new Promise(function (resolve, reject) {\n                setTimeout(function () {\n                    resolve();\n                }, 1000);\n            });\n        }\n    },\n    template: '\u003cvue-pull-refresh :on-refresh=\"onRefresh\"\u003e\u003c/vue-pull-refresh\u003e'\n});\n```\n\n### Props\n| Property | Description |\n|:--|:--|\n| onRefresh | refresh event;Should return a promise. |\n| config | {\u003cbr\u003eerrorLabel: label shows when error\u003cbr\u003estartLabel: label shows when pull down start\u003cbr\u003ereadyLabel: label shows when ready to refresh\u003cbr\u003eloadingLabel: label shows when loading\u003cbr\u003epullDownHeight: the height toggle pull down refresh action\u003cbr\u003e} |\n\n## Contribution\nFirst, install dependencies\n```\nnpm install\n```\nSecond, setup development environment\n```\nnpm run dev\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fflitrue%2Fvue-awesome-pull-refresh.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fflitrue%2Fvue-awesome-pull-refresh?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/flitrue.github.io%2Fvue-awesome-pull-refresh%2F","html_url":"https://awesome.ecosyste.ms/projects/flitrue.github.io%2Fvue-awesome-pull-refresh%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/flitrue.github.io%2Fvue-awesome-pull-refresh%2F/lists"}