vue-element-loadingwhtest
v1.0.0
Published
Loading inside a container or full screen for Vue.js
Downloads
4
Readme
vue-element-loading
⏳ Loading inside a container or full screen for Vue.js
👀 Document & Demo Page
💻 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
⚙️ 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
- Fork this repository.
- Create new branch with feature name.
- Run
npm install
andnpm run dev
. - Create your feature.
- Commit and set commit message with feature name.
- Push your code to your fork repository.
- Create pull request. 🙂
⭐️ Support
If you like this project, You can support me with starring ⭐ this repository.
📄 License
Developed with ❤️ and ☕️