{"id":22965559,"url":"https://github.com/dzwillia/vue-simple-progress","last_synced_at":"2025-04-09T06:10:27.150Z","repository":{"id":47667238,"uuid":"104431034","full_name":"dzwillia/vue-simple-progress","owner":"dzwillia","description":"A simple, flexible progress bar for Vue.js","archived":false,"fork":false,"pushed_at":"2022-12-06T23:14:39.000Z","size":605,"stargazers_count":91,"open_issues_count":13,"forks_count":26,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T19:22:36.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dzwillia.github.io/vue-simple-progress/examples","language":"Vue","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/dzwillia.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}},"created_at":"2017-09-22T04:20:55.000Z","updated_at":"2023-12-20T10:14:45.000Z","dependencies_parsed_at":"2023-01-24T12:16:56.600Z","dependency_job_id":null,"html_url":"https://github.com/dzwillia/vue-simple-progress","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzwillia%2Fvue-simple-progress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzwillia%2Fvue-simple-progress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzwillia%2Fvue-simple-progress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzwillia%2Fvue-simple-progress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzwillia","download_url":"https://codeload.github.com/dzwillia/vue-simple-progress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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-12-14T20:15:05.284Z","updated_at":"2025-04-09T06:10:27.118Z","avatar_url":"https://github.com/dzwillia.png","language":"Vue","funding_links":[],"categories":["UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["装载机","UI Components","Loader"],"readme":"# vue-simple-progress\n\u003e A simple, flexible progress bar for Vue.js\n\nvue-simple-progress is designed to be a lightweight [Vue.js](http://vuejs.org) progress bar requiring minimal configuration.\n\n## Documentation\n\n[https://github.com/dzwillia/vue-simple-progress](https://github.com/dzwillia/vue-simple-progress)\n\n## Demo\n\n[https://dzwillia.github.io/vue-simple-progress/examples](https://dzwillia.github.io/vue-simple-progress/examples)\n\n## Requirements\n* [Vue.js](http://vuejs.org/) (^v2.1.4)\n\n## Browser support\nIE 10+ (due to [CSS animation support](https://caniuse.com/#feat=css-animation)).\n\n## Installation\n\n### NPM\n\n```bash\nnpm install vue-simple-progress --save\n```\n\n## Usage\n\u003e All styling for this component is done via computed styles in the `Progress.vue` component and requires no external CSS files.\n\n### ES6\n\n*The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.*\n\n```js\nimport Vue from 'vue'\nimport ProgressBar from 'vue-simple-progress'\n\nnew Vue({\n  components: {\n    ProgressBar\n  }\n})\n```\n\nin markup:\n\n```html\n\u003cdiv id=\"app\"\u003e\n  \u003cprogress-bar\u003e\u003c/progress-bar\u003e\n\u003c/div\u003e\n```\n\n### Globals (script tag)\n\nAdd a script tag pointing to `dist/vue-simple-progress.min.js` *after* adding Vue.\n\nExample:\n\n```html\n\u003chtml\u003e\n\u003chead\u003e\n  ...\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cvue-simple-progress\u003e\u003c/vue-simple-progress\u003e\n  \u003c/div\u003e\n\n  \u003cscript src=\"path/to/vue.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"path/to/vue-simple-progress.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    new Vue({\n      el: '#app'\n    })\n  \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Examples\n\n### Medium size\n```\n\u003cprogress-bar size=\"medium\" val=\"60\" text=\"60\"\u003e\n```\n\n### Custom bar color\n```\n\u003cprogress-bar bar-color=\"#dc720f\" val=\"60\" text=\"60%\"\u003e\n```\n\n### Optional title for accessibility\n```\n\u003cprogress-bar bar-color=\"#dc720f\" val=\"60\" text=\"60%\" title=\"60%\"\u003e\n```\n\n[More live code examples on JSFiddle](http://jsfiddle.net/dzwillia/47pvcjs9)\n\n## Options\n\n| Props             | Type             | Values                                         | Default          |\n| ----------------- |:-----------------|:-----------------------------------------------|:-----------------|\n| val               | Number           | 0 - max                                        | 0                |\n| max               | Number           | Any number                                     | 100              |\n| size              | Number \\| String | tiny, small, medium, large, huge, massive, {n} | 3                |\n| bg-color          | String           | Color                                          | #eee             |\n| bar-color         | String           | Color                                          | #2196f3          |\n| bar-transition    | String           | CSS transition                                 | all 0.5s ease    |\n| bar-border-radius | Number           | 0 - max                                        | 0                |\n| spacing           | Number           | Any Number                                     | 4                |\n| text              | String           | Text to display                                | _(empty string)_ |\n| text-align        | String           | left, right, center                            | center           |\n| text-position     | String           | bottom, top, middle, inside                    | bottom           |\n| font-size         | Number           | Any Number                                     | 13               |\n| text-fg-color     | String           | Color                                          | #222             |\n\n## License\nvue-simple-progress is open source and released under the [MIT License](LICENSE).\n\nCopyright (c) 2017 [David Z Williams](https://twitter.com/padredaveo).\n\n\u003e *PS: I would love to know if you're using vue-simple-progress. Tweet to me at [@padredaveo](https://twitter.com/padredaveo)*.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzwillia%2Fvue-simple-progress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzwillia%2Fvue-simple-progress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzwillia%2Fvue-simple-progress/lists"}