{"id":19382485,"url":"https://github.com/bennyxguo/vuejs-scroll-fixed-header","last_synced_at":"2025-04-13T23:54:47.977Z","repository":{"id":65519536,"uuid":"172443151","full_name":"bennyxguo/vuejs-scroll-fixed-header","owner":"bennyxguo","description":"A simple cross browser supported vuejs2 scroll fixed header component","archived":false,"fork":false,"pushed_at":"2024-08-28T02:57:43.000Z","size":23,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T14:05:34.645Z","etag":null,"topics":["fixed-header","scroll-fixed-header","vue-component","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/bennyxguo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-25T05:56:09.000Z","updated_at":"2022-05-24T06:26:18.000Z","dependencies_parsed_at":"2023-01-27T02:10:27.858Z","dependency_job_id":null,"html_url":"https://github.com/bennyxguo/vuejs-scroll-fixed-header","commit_stats":null,"previous_names":["tridiamond/vuejs-scroll-fixed-header"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fvuejs-scroll-fixed-header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fvuejs-scroll-fixed-header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fvuejs-scroll-fixed-header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fvuejs-scroll-fixed-header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennyxguo","download_url":"https://codeload.github.com/bennyxguo/vuejs-scroll-fixed-header/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799914,"owners_count":21163403,"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":["fixed-header","scroll-fixed-header","vue-component","vuejs2"],"created_at":"2024-11-10T09:21:47.608Z","updated_at":"2025-04-13T23:54:47.945Z","avatar_url":"https://github.com/bennyxguo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vuejs-scroll-fixed-header Component\n\n\u003cp\u003e\n  \u003ca href=\"https://circleci.com/gh/TriDiamond/vuejs-scroll-fixed-header/tree/master\"\u003e\n    \u003cimg src=\"https://img.shields.io/circleci/project/github/TriDiamond/vuejs-scroll-fixed-header.svg\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/TriDiamond/vuejs-scroll-fixed-header/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/TriDiamond/vuejs-scroll-fixed-header.svg\" alt=\"Github starts\"\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/TriDiamond/vuejs-scroll-fixed-header.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vuejs-scroll-fixed-header\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/vuejs-scroll-fixed-header.svg\" alt=\"Npm downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vuejs-scroll-fixed-header\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/vuejs-scroll-fixed-header.svg\" alt=\"Npm version\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e 一 Vue 2 scroll fixed header component\n\n[Demo](https://tridiamond.github.io/vuejs-scroll-fixed-header/)\n[📙 中文文档](https://github.com/TriDiamond/vuejs-scroll-fixed-header/blob/master/README_CN.md)\n[📙Changelog](https://github.com/TriDiamond/vuejs-scroll-fixed-header/blob/master/CHANGELOG.md)\n\n## Installation\n\n```bash\nnpm i vuejs-scroll-fixed-header -S\n```\n\n## Usage\n\n### Support\n\n| Supported Package | Version |\n| ----------------- | ------- |\n| Vue               | 2.5+    |\n\n### Install component and Usage\n\nImport component\n\n```es6\n// global register at main.js\nimport ScrollFixedHeader from 'vuejs-scroll-fixed-header';\nVue.use(ScrollFixedHeader);\n```\n\nVue usage\n\n```vue\n\u003ctemplate\u003e\n  \u003cscroll-fixed-header :fixed.sync=\"fixed\" :threshold=\"56\"\u003e\n    \u003cnav class=\"navbar navbar-light bg-light\"\u003e\n      \u003cdiv class=\"container\"\u003e\n        \u003ca class=\"navbar-brand\" href=\"#\"\u003eVuejs Scroll Fixed Header\u003c/a\u003e\n      \u003c/div\u003e\n    \u003c/nav\u003e\n  \u003c/scroll-fixed-header\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  name: 'Timer',\n  data() {\n    return {\n      fixed: false,\n    };\n  },\n};\n\u003c/script\u003e\n```\n\n### Props\n\n| Name      | Type    | Default | Description                                               |\n| --------- | ------- | ------- | --------------------------------------------------------- |\n| fixed     | Boolean | `false` | The fixed status of the current header                    |\n| threshold | Number  | `0`     | The scroll top threshold for determining the fixed status |\n\n# Liscense\n\nMIT License\n\nCopyright (c) 2019 TriDiamond\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyxguo%2Fvuejs-scroll-fixed-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennyxguo%2Fvuejs-scroll-fixed-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyxguo%2Fvuejs-scroll-fixed-header/lists"}