1.2.8 • Published 2 years ago

vuejs-progress-bar v1.2.8

Weekly downloads
1,660
License
MIT
Repository
github
Last release
2 years ago

vuejs-progress-bar

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

Live demo

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

Setup

install:

npm install vuejs-progress-bar --save

Import: (in your main.js)

import ProgressBar from 'vuejs-progress-bar'
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: '#333333',
    inverted: false
  },
  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
invertedBooleanfalseInvert circle progress
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, cylinder or battery

Update package:

1. Compile and build for production

npm run build

2. check into git

git add .
git commit -m "Message.."

3. Publish to NPM

# Do some work...

# x.x.1 -> x.x.2
npm version patch

# x.1.0 -> x.2.0
npm version minor

# 1.0.0 -> 2.0.0
npm version major
1.2.8

2 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.2.2-beta.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago