Giter Site home page Giter Site logo

adlaws / vue-element-loading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biigpongsatorn/vue-element-loading

0.0 2.0 0.0 320 KB

⏳ Loading inside a container or full screen for Vue.js

Home Page: https://biigpongsatorn.github.io/#/vue-element-loading

License: MIT License

JavaScript 15.24% Vue 83.51% HTML 1.25%

vue-element-loading's Introduction

NPM version NPM downloads License Build Status

vue-element-loading

⏳ Loading inside a container or full screen for Vue.js

👀 Document & Demo Page

Docs & Live demo

💻 Install

npm install --save vue-element-loading

or

yarn add vue-element-loading

🕹 Usage

import Vue from 'vue'
import VueElementLoading from 'vue-element-loading'

Vue.component('VueElementLoading', VueElementLoading)

or

import VueElementLoading from 'vue-element-loading'

export default {
  components: {
    VueElementLoading
  }
}

🔎 Example

Inside container

<div>
  <vue-element-loading :active="show" spinner="bar-fade-scale" color="#FF6700"/>
  <span>
    This is my content.
  </span>
</div>

Full screen

<div>
  <vue-element-loading :active="show" is-full-screen/>
</div>

Customize loader

<div>
  <vue-element-loading :active="show">
    <img src="/static/pikachu.gif" width="55px" height="55px">
  </vue-element-loading>
</div>

🌀 Spinner

See full document here.

⚙️ Props

Props Type Default Description
active Boolean - Status for show/hide loading
spinner String spinner Spinner icon name: spinner, mini-spinner, ring, line-wave, line-scale, line-down, bar-fade, bar-fade-scale
color String #ccc Color of spinner icon
is-full-screen Boolean false Loader will overlay the full page

🤝 Contributing

  1. Fork this repository.
  2. Create new branch with feature name.
  3. Run npm install and npm run dev.
  4. Create your feature.
  5. Commit and set commit message with feature name.
  6. Push your code to your fork repository.
  7. Create pull request. 🙂

⭐️ Support

If you like this project, You can support me with starring ⭐ this repository.

📄 License

MIT

Developed with ❤️ and ☕️

vue-element-loading's People

Contributors

biigpongsatorn avatar ansidev avatar runyasak avatar n-osennij avatar

Watchers

James Cloos avatar Andrew Laws 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.