vue2-loading
vue2-loading
vue-loading presented in Vue2
Install
npm i -S vue2-loading
Dependencies
font-awesome for spinner css
Usage
In App.vue
<script>
import VueLoading from 'vue2-loading'
Vue.use(VueLoading, {
text: 'Here I come...',
bg: 'rgba(230, 233, 236, 0.8)',
textColor: '#000',
spinnerClass: 'fa fa-spin fa-spinner fa-3x'
})
</script>
<template>
<div v-loading="isLoading (Boolean)">
</div>
</template>
Options
text:
- loading block text
- default value: "Loading ..."
bg:
- loading block backgroundColor css,
- default value: "rgba(230, 233, 236, 0.8)"
textColor:
- loading message text css,
- default value: "#fff"
spinnerClass:
- loading spinner class,
- default value: "fa fa-spin fa-spinner fa-3x"
:copyright: License
Related Packages
duplicate-dependencies-webpack-plugin
webpack plugin to find duplicated dependencies from your bundle
332,104
6
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.16 | ^2.1.10 | MIT | |
| 0.0.15 | ^2.1.10 | MIT | |
| 0.0.14 | ^2.1.10 | MIT | |
| 0.0.13 | ^2.1.10 | MIT | |
| 0.0.12 | ^2.1.10 | MIT | |
| 0.0.11 | ^2.1.10 | MIT | |
| 0.0.10 | ^2.1.10 | MIT | |
| 0.0.9 | ^2.1.10 | MIT | |
| 0.0.8 | ^2.1.10 | MIT | |
| 0.0.7 | ^2.1.10 | MIT | |
| 0.0.6 | ^2.1.10 | MIT | |
| 0.0.5 | ^2.1.10 | MIT | |
| 0.0.4 | ^2.1.10 | MIT | |
| 0.0.3 | ^2.1.10 | MIT | |
| 0.0.2 | ^2.1.10 | MIT | |
| 0.0.1 | ^2.1.10 | MIT | |
| 0.0.0 | ^2.1.10 | MIT |