{"id":15912406,"url":"https://github.com/val-bubbleflat/vue-component-loading","last_synced_at":"2025-03-22T16:30:35.652Z","repository":{"id":57395329,"uuid":"121814874","full_name":"val-bubbleflat/vue-component-loading","owner":"val-bubbleflat","description":"Vuejs package, allow you to manage a loading state inside all component, and to display a progressbar","archived":false,"fork":false,"pushed_at":"2018-02-19T10:44:19.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-03T07:33:22.090Z","etag":null,"topics":["loading","progressbar","vue","vue-component","vue-component-loading","vue-loading","vue-progressbar","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"","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/val-bubbleflat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-17T00:20:43.000Z","updated_at":"2022-11-24T05:24:31.000Z","dependencies_parsed_at":"2022-09-02T17:09:12.042Z","dependency_job_id":null,"html_url":"https://github.com/val-bubbleflat/vue-component-loading","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Fvue-component-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Fvue-component-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Fvue-component-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-bubbleflat%2Fvue-component-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/val-bubbleflat","download_url":"https://codeload.github.com/val-bubbleflat/vue-component-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940063,"owners_count":20372044,"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":["loading","progressbar","vue","vue-component","vue-component-loading","vue-loading","vue-progressbar","vuejs","vuejs2"],"created_at":"2024-10-06T16:04:36.670Z","updated_at":"2025-03-22T16:30:35.341Z","avatar_url":"https://github.com/val-bubbleflat.png","language":"Vue","funding_links":[],"categories":["UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["装载机","UI Components","Loader"],"readme":"# Laravel Component Loading\n\nby [bubbleflat.com]()\n\nThis package allows you to manage a loading state inside all component, and to display a progressbar (thanks to [vue-progressbar](https://github.com/hilongjw/vue-progressbar)) to show the global loading state of your app.\n\nAll components have their own loading state, but the progressbar show the global loading state of all components.\n\n## Installation\n\n````\nnpm install vue-component-loading\n````\n\n```javascript\nimport VueLoading from 'vue-component-loading'\n\nlet config = {\n  progressBar:{\n    color: '#000',\n    failedColor: '#874b4b',\n    thickness: '5px',\n    transition: {\n      speed: '0.2s',\n      opacity: '0.6s',\n      termination: 300\n    },\n  }\n}\n\nVue.use(VueLoading, config);\n```\n\nSee [progressbar doc](https://github.com/hilongjw/vue-progressbar#constructor-options) for all options for the progressbar\n\n## Usage\n\nFirst, register your progressbar :\n\n```html\n\u003ctemplate\u003e\n    \u003cvue-loading-component /\u003e\n    \u003crouter-view\u003e\u003c/router-view\u003e\n\u003c/template\u003e\n```\n\nYou can use these methods inside a component to manage its loading state\n\n```javascript\nthis.startLoading(); // --\u003e this.loading = true : the component starts to load, the progressbar appear\nthis.endLoading(); // --\u003e this.loading = false : the component end to load, the progressbar progress :p (if it's the last component, it disappear)\nthis.failLoading(); // --\u003e this.loading = false : show the fail progressbar\n```\n\nDepending on the loading state, you can access `loading` boolean in your component\n\n## Exemple\n\n```html\n\u003ctemplate\u003e\n    \u003cdiv v-if=\"!loading\"\u003e\n        Component Loaded !\n    \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n    \n    export default {\n\n        mounted(){\n            this.startLoading();\n            setTimeout(() =\u003e {\n                this.endLoading();\n            }, 2000)\n        }\n\n    }\n\n\u003c/script\u003e\n```\n\n## License\n\n[The MIT License](https://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-bubbleflat%2Fvue-component-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fval-bubbleflat%2Fvue-component-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-bubbleflat%2Fvue-component-loading/lists"}