josephrexme / vue-simple-progress

A simple, flexible progress bar for Vue.js

Home Page:https://dzwillia.github.io/vue-simple-progress/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-simple-progress

A simple, flexible progress bar for Vue.js

vue-simple-progress is designed to be a lightweight Vue.js progress bar requiring minimal configuration.

Documentation

https://github.com/dzwillia/vue-simple-progress/

Demo

https://dzwillia.github.io/vue-simple-progress/examples

JsFiddle Demo

http://jsfiddle.net/dzwillia/47pvcjs9

Requirements

Browser support

IE 10+ (due to CSS animation support).

Installation

NPM

npm install vue-simple-progress --save

Usage

All styling for this component is done via computed styles in the Progress.vue component and requires no external CSS files.

ES6

The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.

import Vue from 'vue'
import ProgressBar from 'vue-simple-progress'

new Vue({
  components: {
    ProgressBar
  }
})

Globals (script tag)

Add a script tag pointing to dist/vue-simple-progress.min.js after adding Vue.

Example:

<html>
<head>
  ...
</head>
<body>
  <div id="app">
    <vue-simple-progress></vue-simple-progress>
  </div>

  <script src="path/to/vue.js"></script>
  <script src="path/to/vue-simple-progress.js"></script>
  <script>
    new Vue({
      el: '#app'
    })
  </script>
</body>
</html>

License

vue-simple-progress is open source and released under the MIT License.

Copyright (c) 2017 David Z Williams.

PS: I would love to know if you're using vue-simple-progress. Tweet to me at @padredaveo.

About

A simple, flexible progress bar for Vue.js

https://dzwillia.github.io/vue-simple-progress/examples

License:MIT License


Languages

Language:Vue 63.5%Language:JavaScript 25.9%Language:HTML 9.0%Language:Batchfile 1.6%