1.0.3 • Published 4 years ago

vue-round-progress v1.0.3

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

vue-round-progress

It's a circular progress bar component developed using Vue

vue2

Try the demo

How to use?

npm install vue-round-progress

Example

<template>
  <vue-round-progress 
    :value='value' 
    :lineColor='lineColor' 
    :lineDash='lineDash'
    :lineDashDefault='lineDashDefault'
    :duration='2000'>
  </vue-round-progress>
</template>

<script>
  import vueRoundProgress from 'vue-round-progress';
  export default {
    components: { vueRoundProgress },
    data () {
      return {
        value: 80,
        lineColor: "#ff6699",
        lineDash: [3, 3],
        lineDashDefault: [1, 5]
      }
    }
  }
</script>

demo:

demo

Options

PropertyDescriptiontypedefault
valueRing valueNumber0
maxValueThe maximum value of the ringNumber100
sizeThe diameter of the ring, in pxNumber225
lineWidthBorder line thickness in pxNumber20
lineColorBorder color with valueString'#ff9c38'
lineColorDefaultDefault border colorString'#eeeeee'
lineDashValued border line dash line solid line length, gap lengthArray
lineDashDefaultDefault border line dash line solid line length, gap lengthArray
startAgeStarting angle, calculated from 0 o'clock at 6 o'clockNumber0
endAgeEnd angleNumber360
durationDuration in millisecondNumber2000
showTextWhether to display value textBooleantrue
textStyleStyle of value textObject{ color: "#000", fontSize: "60px" }

Functions

Function NameDescription
restartRe-rendering the value (re-rendering the parameter value after passing the parameter)
changeValueChange from previous value to the parameter value passed in
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago