{"id":13535893,"url":"https://github.com/bajian/vue-pull-to-refresh","last_synced_at":"2025-04-02T02:31:41.039Z","repository":{"id":88414478,"uuid":"69225117","full_name":"bajian/vue-pull-to-refresh","owner":"bajian","description":"vue.js,refresh,load more,Vue2.0 上下拉刷新","archived":false,"fork":false,"pushed_at":"2018-12-05T03:42:40.000Z","size":389,"stargazers_count":137,"open_issues_count":0,"forks_count":43,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T09:24:02.540Z","etag":null,"topics":["load","loadmore","pull-to-refresh","vue"],"latest_commit_sha":null,"homepage":"","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/bajian.png","metadata":{"files":{"readme":"README.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-26T07:37:14.000Z","updated_at":"2024-06-12T15:16:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7e10e25-7886-413b-b152-319a30fb88ac","html_url":"https://github.com/bajian/vue-pull-to-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/bajian%2Fvue-pull-to-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajian%2Fvue-pull-to-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajian%2Fvue-pull-to-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajian%2Fvue-pull-to-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bajian","download_url":"https://codeload.github.com/bajian/vue-pull-to-refresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222791943,"owners_count":17038320,"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":["load","loadmore","pull-to-refresh","vue"],"created_at":"2024-08-01T09:00:31.366Z","updated_at":"2024-11-03T00:31:35.936Z","avatar_url":"https://github.com/bajian.png","language":"JavaScript","funding_links":[],"categories":["UI组件"],"sub_categories":[],"readme":"# pull2refresh\nalternatively pull down or pull up or both for Vue2.+\n\u003e A Vue.js project with vue-cli3\n\n## demo\n\n[live-demo](https://bajian.github.io/vue-pull-to-refresh/dist/index.html)\n\n## Build Setup DEMO\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run serve\n\n# build for production with minification\nnpm run build\n```\n\n```html\n  \u003cpull-to-refresh\n    @on-pullup='onPullup'\n    @on-pulldown='onPulldown'\u003e\n    \u003cul\u003e\n      \u003cli :key=\"index\" v-for=\"(item, index) in items\"\u003e\n        # item {{ index }} \n      \u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/pull-to-refresh\u003e\n```\n\n```js\nimport PullToRefresh from './components/pull-to-refresh'\n\nonPullup(finshCallback) {\n      setTimeout(()=\u003e{\n        this.items=this.items.concat([6,6,6,6,6,6,6,6,6,6,6])\n        finshCallback();//finish the refreshing state\n      },3000);\n    }\n```\n\n## Api\n### Properties\n| Name                 | Type      | Default      | Description                                                        |\n|----------------------|-----------|--------------|--------------------------------------------------------------------|\n| disable-pullup            | `Boolean`  | `false` | set true to disable pullup function|\n| disable-pulldown            | `Boolean`  | `false` | set true to disable pulldown function|\n| on-pullup   | `Function` | `undefined`       | the pullup listener with a finshCallback param to tell it to finsh refreshing state |\n| on-pulldown   | `Function` | `undefined`       | the pulldown listener with a finshCallback param to tell it to finsh refreshing state |\n| ==================== | ========= | ============ | =================== |\n\n\nfor convenience \u0026 efficiency ,i donot set the tips and timeout editable,\nif u want to edit ,just edit as u like:\n```js\nconst PULL_DOWN_NORMAL='下拉刷新'\nconst PULL_DOWN_RELEASE='释放加载'\nconst PULL_DOWN_LOADING='加载中，请稍后'\n\nconst PULL_UP_NORMAL='上拉刷新'\nconst PULL_UP_RELEASE='释放加载'\nconst PULL_UP_LOADING='加载中，请稍后'\n\ntimeout=30000//the 30s timeout of reseting refreshing state if u donnot call the finshCallback\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajian%2Fvue-pull-to-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbajian%2Fvue-pull-to-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajian%2Fvue-pull-to-refresh/lists"}