{"id":13424247,"url":"https://github.com/Coffcer/vue-loading","last_synced_at":"2025-03-15T18:34:21.507Z","repository":{"id":96868234,"uuid":"55840262","full_name":"Coffcer/vue-loading","owner":"Coffcer","description":"vue1 directive, show loading block in any element","archived":false,"fork":false,"pushed_at":"2016-10-20T10:26:29.000Z","size":425,"stargazers_count":137,"open_issues_count":3,"forks_count":31,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-14T23:11:18.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://coffcer.github.io/vue-loading/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Coffcer.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-09T11:17:40.000Z","updated_at":"2024-09-16T09:34:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"89f26aaf-eabb-4f44-bd35-f17a0a04e277","html_url":"https://github.com/Coffcer/vue-loading","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"4fe78504e1b756f7728dc6b8b196b739469d3681"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coffcer%2Fvue-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Coffcer","download_url":"https://codeload.github.com/Coffcer/vue-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658273,"owners_count":20326467,"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-07-31T00:00:50.711Z","updated_at":"2025-03-15T18:34:16.463Z","avatar_url":"https://github.com/Coffcer.png","language":"JavaScript","readme":"# vue-loading\n\n\u003e Vue directive for show loading block in any element.\n\n[Live demo and usage](http://coffcer.github.io/vue-loading/)\n\nBuild by [vue-cli](https://github.com/vuejs/vue-cli) and [vue-cli-component](https://github.com/Coffcer/component)\n\n## Usage\n\nGeneral usage\n```vue\n\u003cscript\u003e\n    import loading from 'vue-loading';\n    export default {\n        directives: { loading },\n        data () {\n            return { isLoading: false }\n        }\n    }\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n    \u003cdiv v-loading=\"isLoading\" :loading-options=\"{ options }\"\u003e\u003c/div\u003e\n    \u003c!--click the button will show the loading block.--\u003e\n    \u003cbutton @click=\"isLoading = true\"\u003e\u003c/button\u003e\n\u003c/template\u003e\n```\n\nYou can also use `vue-loading` with vue-router [$loadingRouteData](http://vuejs.github.io/vue-router/en/pipeline/data.html#details)\n```vue\n\u003cscript\u003e\n    export default {\n        router: {\n            data (transition) {\n                // the vue-loading is show.\n\n                window.setTimeout(() =\u003e {\n                    // the vue-loading will closed after next().\n                    transition.next();\n                }, 3000);\n            }\n        }\n    }\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n    \u003cdiv v-loading=\"$loadingRouteData\"\u003e\u003c/div\u003e\n\u003c/template\u003e\n```\n\n## Options\n\n**text:**  \n* loading block text\n* default value: \"Loading ...\"\n \n**bg:** \n* loading block backgroundColor css, \n* default value: \"rgba(230, 233, 236, 0.8)\"\n","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","JavaScript","UI组件","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCoffcer%2Fvue-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCoffcer%2Fvue-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCoffcer%2Fvue-loading/lists"}