1.2.2 • Published 4 years ago

vuejs-progress-bar-fix v1.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

vuejs-progress-bar

ProgressBar for vue.js SVG/Vector based 3 modes: Line, Circle and Cylinder v1.1.0

Live demo

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

Setup

install:

npm install vuejs-progress-bar-fix --save

Import: (in your main.js)

import ProgressBar from 'vuejs-progress-bar-fix'
Vue.use(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: '#C0C0C0'
  },
  layout: {
    height: 35,
    width: 140,
    verticalTextAlign: 61,
    horizontalTextAlign: 43,
    zeroOffset: 0,
    strokeWidth: 30,
    progressPadding: 0,
    type: 'line'
  }
}

Properties

NameTypeDefaultDescription
valueNumber0Value of progressbar %
colorString#FFFFFFText color
shadowEnableStringtrueText shadow enable
shadowColorString#000000Text shadow color
hideTextBooleanfalseHide text (%)
fontSizeString14pxFont size of % text
fontFamilyStringHelveticaFont family text
dynamicPositionBooleanfalseProgress text % follow progress bar
colorString#2dbd2dProgress color, use hex or rgb
backgroundColorString#C0C0C0Background color, use hex or rgb
widthNumber140Width
heightNumber35Height, use strok for progress height
verticalTextAlignNumber61Positioning of % text vertical
horizontalTextAlignNumber43Positioning of % text horizontal
zeroOffsetNumber0Offset for zero (0%) for line progress bar
strokeWidthNumber30Width of background of progress
progressPaddingNumber0Padding between background and progress bar (line only)
typeStringlinetype of progress bar, line, circle or cylinder