{"id":22083656,"url":"https://github.com/komomoo/vue-slim-loading","last_synced_at":"2026-01-05T10:04:44.541Z","repository":{"id":118717142,"uuid":"183881962","full_name":"komomoo/vue-slim-loading","owner":"komomoo","description":"💇‍♀️ 简洁易用的 vue 加载组件，改造于 ElementUI/Loading","archived":false,"fork":false,"pushed_at":"2021-11-19T08:52:50.000Z","size":494,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T15:44:43.204Z","etag":null,"topics":["element-ui","mobile-web","v-loading","vue-loading"],"latest_commit_sha":null,"homepage":"https://wannaxiao.github.io/vue-slim-loading/demo/dist/","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/komomoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-28T08:47:35.000Z","updated_at":"2024-01-18T12:27:16.000Z","dependencies_parsed_at":"2023-06-14T14:30:29.610Z","dependency_job_id":null,"html_url":"https://github.com/komomoo/vue-slim-loading","commit_stats":null,"previous_names":["wannaxiao/vue-slim-loading"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fvue-slim-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komomoo","download_url":"https://codeload.github.com/komomoo/vue-slim-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245170830,"owners_count":20572144,"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":["element-ui","mobile-web","v-loading","vue-loading"],"created_at":"2024-12-01T00:16:51.895Z","updated_at":"2026-01-05T10:04:44.511Z","avatar_url":"https://github.com/komomoo.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-slim-loading\n\n## ✨ 特性\n\n- 开箱即用/极简使用\n- 体积：6k\n\n## 🐠 示例\u0026文档\n\n[Demo](https://komomoo.github.io/vue-slim-loading/demo/dist/)\n\n[Demo 源码](https://github.com/komomoo/vue-slim-loading/blob/master/demo/App.vue)\n\n## 🚀 快速开始\n\n1.  安装\n\n```bash\nyarn add vue-slim-loading # 或 npm i -S vue-slim-loading\n```\n\n2.  引入\n\n```js\n// main.js\nimport Loading from 'vue-slim-loading'\nVue.use(Loading)\n```\n\n3.  使用，请参考[Demo 源码](https://github.com/komomoo/vue-slim-loading/blob/master/demo/App.vue)\n\n```html\n\u003c!-- 任意元素中使用指令 v-loading --\u003e\n\u003csection v-loading=\"true\"\u003e瀑布的水逆流而上\u003c/section\u003e\n```\n\n## 🔌 API\n\n### Directives\n\n| 指令      | 说明     | 类型    | 默认值 |\n| --------- | -------- | ------- | ------ |\n| v-loading | 是否显示 | Boolean | false  |\n\n### Options\n\n| 选项         | 说明       | 类型   | 默认值    |\n| ------------ | ---------- | ------ | --------- |\n| text         | 文本显示   | String | null      |\n| color        | 颜色       | String | '#409EFF' |\n| maskClass    | 遮罩样式类 | Array  | null      |\n| loadingClass | 加载样式类 | Array  | null      |\n| textClass    | 文本样式类 | Array  | null      |\n\n```js\n// main.js\nimport Loading from 'vue-slim-loading'\nVue.use(Loading, { text: '加载中', color: 'green' })\n```\n\n### Attributes\n\n\u003e Attribute 将会覆盖 Option\n\n| 属性          | 说明     | 类型   | 默认值    |\n| ------------- | -------- | ------ | --------- |\n| loading-text  | 文本显示 | String | null      |\n| loading-color | 颜色     | String | '#409EFF' |\n\n```html\n\u003csection v-loading=\"true\" loading-text=\"加载中\"\u003e瀑布的水逆流而上\u003c/section\u003e\n```\n\n### Slots\n\n| 名称     | 说明           |\n| -------- | -------------- |\n| default  | loading 内容   |\n\n\u003cbr\u003e\n\u003cbr\u003e\n😉😘 如果它对你有所帮助，可以点一下 \u003cb\u003e⭐️\u003ca href=\"#\"\u003eStar\u003c/a\u003e\u003c/b\u003e ~\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, komo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fvue-slim-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomomoo%2Fvue-slim-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fvue-slim-loading/lists"}