{"id":15019607,"url":"https://github.com/zhangxiang958/vue-tab","last_synced_at":"2025-10-07T11:17:01.359Z","repository":{"id":65379118,"uuid":"97939000","full_name":"zhangxiang958/vue-tab","owner":"zhangxiang958","description":"a touch swipe tab component for vue.js(vue2).","archived":false,"fork":false,"pushed_at":"2020-05-27T04:08:53.000Z","size":534,"stargazers_count":52,"open_issues_count":5,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-20T21:03:22.192Z","etag":null,"topics":["es6","swipe","vue-tab","vue2","vuejs"],"latest_commit_sha":null,"homepage":"https://github.com/vuejs/awesome-vue#tabs","language":"JavaScript","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/zhangxiang958.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}},"created_at":"2017-07-21T11:04:51.000Z","updated_at":"2025-06-06T04:41:25.000Z","dependencies_parsed_at":"2023-01-20T08:35:45.189Z","dependency_job_id":null,"html_url":"https://github.com/zhangxiang958/vue-tab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhangxiang958/vue-tab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangxiang958%2Fvue-tab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangxiang958%2Fvue-tab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangxiang958%2Fvue-tab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangxiang958%2Fvue-tab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangxiang958","download_url":"https://codeload.github.com/zhangxiang958/vue-tab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangxiang958%2Fvue-tab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278762933,"owners_count":26041448,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["es6","swipe","vue-tab","vue2","vuejs"],"created_at":"2024-09-24T19:53:45.685Z","updated_at":"2025-10-07T11:17:01.342Z","avatar_url":"https://github.com/zhangxiang958.png","language":"JavaScript","funding_links":[],"categories":["UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["标签","UI Components","Tabs"],"readme":"# vue-tab - swipe tab simplify\n---\n\n\u003e This component is already used in production env.\n## Overview\n\nvue-tab is a touch swipe tab for vue.js.\n\n## Install\n\n```\nnpm install --save vue-swipe-tab@2.0.2\n```\n\n### Import using module\nuse this code in app.js(entry js):\n```\nimport Tab from 'vue-swipe-tab';\nVue.use(Tab);\n```\n## Usage\n\n```\n\u003cscript\u003e\n    export default {\n        methods: {\n        changePage(idx) {\n            console.log(idx);\n        }\n    }\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n    \u003cdiv class=\"app\"\u003e\n        \u003cTabs @changePage=\"changeFunc\" indexTab=\"friend\"\u003e\n            \u003cTabPanel label=\"好友榜\" hash=\"friend\" fontsize=\"36\" tabheight=\"90\" color=\"red\"\u003e\n                \u003cdiv class=\"first\"\u003e\u003c/div\u003e\n            \u003c/TabPanel\u003e\n            \u003cTabPanel label=\"全省榜\" hash=\"convince\" fontsize=\"36\" tabheight=\"90\" color=\"red\"\u003e\n                \u003cdiv class=\"second\"\u003e\u003c/div\u003e\n            \u003c/TabPanel\u003e\n            \u003cTabPanel label=\"全国榜\" hash=\"country\" fontsize=\"36\" tabheight=\"90\" color=\"red\"\u003e\n                \u003cdiv class=\"three\"\u003e\u003c/div\u003e\n            \u003c/TabPanel\u003e\n        \u003c/Tabs\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\n\n# Options\n\nHere list Props on swipe component\n\n| Option | Description |\n| ----- | ----- |\n| label | Required, the text of tab header |\n| hash | Required, the hash of tab page |\n| indexTab | set the index tab by tab's hash |\n| color | set the color of tab header cursor |\n| fontSize | String, the fontSize of tab Header, is caculated by rem |\n| tabheight | String, the tabHeight of tabHeader, is caculated by rem |\n| changePage | Event, it will be fired after the page change, you can get the currentPage index in the callback function |\n\n## Live Demo\n\n  https://zhangxiang958.github.io/vue-tab/demo/index.html\n\n## License\n\nMIT License\n\nCopyright (c) 2017 Shawn Cheung\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\n#### Contact\n- Mail [958033967@qq.com](mailto 958033967@qq.com)\n- Blog [zhangxiang958.github.io](http://zhangxiang958.github.io \"shawn\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangxiang958%2Fvue-tab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangxiang958%2Fvue-tab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangxiang958%2Fvue-tab/lists"}