{"id":21726199,"url":"https://github.com/zgldh/scroll-to-top","last_synced_at":"2026-05-10T03:02:53.133Z","repository":{"id":143926621,"uuid":"137859882","full_name":"zgldh/scroll-to-top","owner":"zgldh","description":"A scroll page/container to top button made with Vue2","archived":false,"fork":false,"pushed_at":"2018-06-21T08:30:05.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-23T04:50:00.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zgldh.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-19T08:05:44.000Z","updated_at":"2018-06-21T08:30:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a50660f-e9c9-4e83-bef6-649e841de44c","html_url":"https://github.com/zgldh/scroll-to-top","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zgldh/scroll-to-top","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fscroll-to-top","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fscroll-to-top/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fscroll-to-top/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fscroll-to-top/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgldh","download_url":"https://codeload.github.com/zgldh/scroll-to-top/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fscroll-to-top/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262099716,"owners_count":23258668,"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-11-26T03:23:01.169Z","updated_at":"2026-05-10T03:02:48.089Z","avatar_url":"https://github.com/zgldh.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scroll-to-top\nA scroll page/container to top button made with Vue2\n\n一个点一下就能自动滚动到顶的小按钮。\n\n\n## 使用\n\n```\nnpm i vue-scroll-to-top\n```\n\n在 Vue 页面里\n\n```\nimport ScrollToTop from 'vue-scroll-to-top'\ncomponents: { ScrollToTop },\n\n\u003ctemplate\u003e\n   \u003cscroll-to-top right=\"150px\"\u003e\u003c/scroll-to-top\u003e\n\u003c/template\u003e\n```\n\n## 参数\n\n1. scrollBox: // 滚动条所在的DOM对象或其选择器\n\n    type: [String, Object],\n\n    required: false,\n    \n    default: '.app-main'\n    \n2. animationTime: // 滚动到顶部的动画时间，单位为毫秒，100 到 200 之间。默认值为 150\n    \n    type: Number,\n    \n    required: false,\n    \n    default: 150\n    \n3. right: // 距离右边多远\n    \n    type: String,\n    \n    required: false,\n    \n    default: \"100px\"\n    \n4. bottom: // 距离下边多远\n    \n    type: String,\n    \n    required: false,\n    \n    default: \"100px\"\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgldh%2Fscroll-to-top","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgldh%2Fscroll-to-top","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgldh%2Fscroll-to-top/lists"}