Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jkchao/vue-loading

😄 vue-loading 😊
https://github.com/jkchao/vue-loading

loading vue

Last synced: 3 months ago
JSON representation

😄 vue-loading 😊

Lists

README

        

# vue-loading-template

---

Use SVG for loading.

Demo: https://jkchao.github.io/vue-loading/

## Start

```bash
npm install vue-loading-template --save
```

## Options




Prop
Type
Required
Default
Available values




type
String
false
balls
balls, bars, beat, bubbles, cylon, spin, spiningDubbles, barsCylon


color
String
false
#5ac1dd



size
Object
false
{ width: '30px', height: '30px' }


## Example in SPA

```vue


bars


         



import { VueLoading } from 'vue-loading-template'
export default {
name: 'app',
components: {
VueLoading
}
}

```

Or you can install it in your `main.js`

```javascript
// main.js
import Vue from 'vue'
import VueLoading from 'vue-loading-template'
Vue.use(VueLoading, /** options **/)
```

If you use it in TypeScript, you can:

```typescript
// main.ts
import Vue from 'vue'
import vueLoading, { VueLoadingOptions } from 'vue-loading-template'

Vue.use(VueLoading, /** options **/)
```

so, you will receive the tip about optional options.

![](http://ovshyp9zv.bkt.clouddn.com/WechatIMG98.jpeg)

## License

MIT