Giter Site home page Giter Site logo

komomoo / vue-slim-loading Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 494 KB

💇‍♀️ 简洁易用的 vue 加载组件,改造于 ElementUI/Loading

Home Page: https://wannaxiao.github.io/vue-slim-loading/demo/dist/

License: MIT License

Shell 6.76% Vue 54.99% JavaScript 38.25%
v-loading vue-loading element-ui mobile-web

vue-slim-loading's Introduction

vue-slim-loading

✨ 特性

  • 开箱即用/极简使用
  • 体积:6k

🐠 示例&文档

Demo

Demo 源码

🚀 快速开始

  1. 安装
yarn add vue-slim-loading # 或 npm i -S vue-slim-loading
  1. 引入
// main.js
import Loading from 'vue-slim-loading'
Vue.use(Loading)
  1. 使用,请参考Demo 源码
<!-- 任意元素中使用指令 v-loading -->
<section v-loading="true">瀑布的水逆流而上</section>

🔌 API

Directives

指令 说明 类型 默认值
v-loading 是否显示 Boolean false

Options

选项 说明 类型 默认值
text 文本显示 String null
color 颜色 String '#409EFF'
maskClass 遮罩样式类 Array null
loadingClass 加载样式类 Array null
textClass 文本样式类 Array null
// main.js
import Loading from 'vue-slim-loading'
Vue.use(Loading, { text: '加载中', color: 'green' })

Attributes

Attribute 将会覆盖 Option

属性 说明 类型 默认值
loading-text 文本显示 String null
loading-color 颜色 String '#409EFF'
<section v-loading="true" loading-text="加载中">瀑布的水逆流而上</section>

Slots

名称 说明
default loading 内容


😉😘 如果它对你有所帮助,可以点一下 ⭐️Star ~

License

MIT

Copyright (c) 2018-present, komo

vue-slim-loading's People

Contributors

dependabot[bot] avatar komomoo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.