1.0.0 ⢠Published 7 years ago
vue-element-loadingwhtest v1.0.0
vue-element-loading
ā³ Loading inside a container or full screen for Vue.js
š Document & Demo Page
š» Install
npm install --save vue-element-loadingor
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 installandnpm 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 āļø