JSPM

vuejs3-progressbar

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q30707F
  • License MIT

A progress bar component for Vue 3

Package Exports

  • vuejs3-progressbar
  • vuejs3-progressbar/dist/ProgressBar.common.js
  • vuejs3-progressbar/dist/ProgressBar.umd.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vuejs3-progressbar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vuejs3-progressbar

ProgressBar for vue.js version 3
SVG/Vector based
4 modes: Line, Circle, Cylinder and Battery
v1.2.8

Requirements

Nodejs: v16.20.0 npm: v8.19.4

Live demo

Do you have questions or want a new feature? Use the "Issues" section 👈

Setup

install:

npm install vuejs3-progressbar --save

in your main.js

import ProgressBar from 'vuejs3-progressbar';
import {createApp} from "vue";
const app = createApp()
              .component(ProgressBar)

Usage

Use: (in your local .vue file/component, html section)

<progress-bar
  :options="options"
  :value="value"
/>

<!-- Options struct: -->
options: {
  text: {
    color: '#FFFFFF',
    shadowEnable: true,
    shadowColor: '#000000',
    fontSize: 14,
    fontFamily: 'Helvetica',
    dynamicPosition: false,
    hideText: false
  },
  progress: {
    color: '#2dbd2d',
    backgroundColor: '#333333',
    inverted: false
  },
  layout: {
    height: 35,
    width: 140,
    verticalTextAlign: 61,
    horizontalTextAlign: 43,
    zeroOffset: 0,
    strokeWidth: 30,
    progressPadding: 0,
    type: 'line'
  }
}

Properties

Name Type Default Description
value Number 0 Value of progressbar %
color String #FFFFFF Text color
shadowEnable String true Text shadow enable
shadowColor String #000000 Text shadow color
hideText Boolean false Hide text (%)
fontSize String 14px Font size of % text
fontFamily String Helvetica Font family text
dynamicPosition Boolean false Progress text % follow progress bar
color String #2dbd2d Progress color, use hex or rgb
backgroundColor String #C0C0C0 Background color, use hex or rgb
inverted Boolean false Invert circle progress
width Number 140 Width
height Number 35 Height, use strok for progress height
verticalTextAlign Number 61 Positioning of % text vertical
horizontalTextAlign Number 43 Positioning of % text horizontal
zeroOffset Number 0 Offset for zero (0%) for line progress bar
strokeWidth Number 30 Width of background of progress
progressPadding Number 0 Padding between background and progress bar (line only)
type String line type of progress bar: line, circle, cylinder or battery