{"id":22588255,"url":"https://github.com/savoygu/vue-star-plus","last_synced_at":"2025-04-10T21:32:05.186Z","repository":{"id":46526214,"uuid":"115000125","full_name":"savoygu/vue-star-plus","owner":"savoygu","description":"升级版 vue-star","archived":false,"fork":false,"pushed_at":"2023-12-20T11:01:32.000Z","size":1719,"stargazers_count":27,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T18:52:34.079Z","etag":null,"topics":["star","vue","vue-star","vue-star-plus"],"latest_commit_sha":null,"homepage":"https://savoygu.github.io/vue-star-plus/","language":"SCSS","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/savoygu.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}},"created_at":"2017-12-21T11:47:53.000Z","updated_at":"2024-10-02T15:37:27.000Z","dependencies_parsed_at":"2023-10-17T07:25:07.296Z","dependency_job_id":null,"html_url":"https://github.com/savoygu/vue-star-plus","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoygu%2Fvue-star-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoygu%2Fvue-star-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoygu%2Fvue-star-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savoygu%2Fvue-star-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savoygu","download_url":"https://codeload.github.com/savoygu/vue-star-plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247967253,"owners_count":21025742,"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":["star","vue","vue-star","vue-star-plus"],"created_at":"2024-12-08T08:08:55.404Z","updated_at":"2025-04-10T21:32:05.156Z","avatar_url":"https://github.com/savoygu.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-star-plus\n\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-star-plus\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/vue-star-plus.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-star-plus\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/dt/vue-star-plus\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n| Feature        | [vue-star](https://github.com/OYsun/VueStar) | vue-star-plus |\n| -------------- | -------------------------------------------- | ------------- |\n| Icon           | ✅                                            | ✅             |\n| Animation      | ✅                                            | ✅             |\n| Image          | ❌                                            | ✅             |\n| Default Active | ❌                                            | ✅             |\n\n## Install\n\n### Vue3\n\n```bash\nnpm install vue-star-plus\n```\n\n```javascript\nimport { createApp } from 'vue'\nimport VueStarPlus from 'vue-star-plus'\nimport 'vue-star-plus/style.css'\nconst app = createApp()\n// Global register\napp.component('VueStarPlus', VueStarPlus)\n```\n\n### Vue2\n\n```bash\nnpm install vue-star-plus@2\n```\n\n```javascript\nimport Vue from 'vue'\nimport VueStarPlus from 'vue-star-plus' // same with vue3 version\nimport 'vue-star-plus/style.css'  // same with vue3 version\n// Global register\nVue.component('VueStarPlus', VueStarPlus)\n```\n\n## Usage\n\n[DEMO](https://savoygu.github.io/vue-star-plus/)\n\n### Basic Usage\n\n```javascript\n\u003ctemplate\u003e\n  \u003cVueStarPlus v-model=\"active\" color=\"#ff0000\"\u003e\n    \u003ctemplate #icon\u003e❤\u003c/template\u003e\n  \u003c/VueStarPlus\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\nconst active = ref(false)\n\u003c/script\u003e\n```\n\n### Background Image\n\n```javascript\n\u003ctemplate\u003e\n  \u003cVueStarPlus v-model=\"active\" color=\"#ff0000\"\u003e\n    \u003ctemplate #icon\u003e\n      \u003cspan class=\"vsp__bgi\" :class=\"{ 'is-active' : active }\" /\u003e\n    \u003c/template\u003e\n  \u003c/VueStarPlus\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\nconst active = ref(false)\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n.vsp__bgi {\n  display: block;\n  width: 36px;\n  height: 36px;\n  background: url(\"/src/assets/inactive.png\") no-repeat;\n  background-size: contain;\n}\n.vsp__bgi.is-active {\n  background-image: url(\"/src/assets/active.png\");\n}\n\u003c/style\u003e\n```\n\n\n### Animated\n\n```javascript\n\u003ctemplate\u003e\n  \u003cVueStarPlus v-model=\"active\"\n    color=\"#ff0000\"\n    :animated=\"['animate__animated', 'animate__tada']\"\u003e\n    \u003ctemplate #icon\u003e❤\u003c/template\u003e\n  \u003c/VueStarPlus\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\nconst active = ref(false)\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n@import 'animate.css';\n\u003c/style\u003e\n```\n\n## License\n\nThe vue-star-plus package is also open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavoygu%2Fvue-star-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavoygu%2Fvue-star-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavoygu%2Fvue-star-plus/lists"}