0.0.3 • Published 6 years ago

vue-circle-xprogress v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-circle-progress

a vue component of circle progress bar

install

$ npm i vue-circle-xprogress -s

use npm

  import Vue from 'Vue'
  import CircleProgress from 'vue-circle-xprogress'
  import  'vue-circle-progress/dist/circle-progress.css'
  Vue.use(CircleProgress)

use cdn

<script src="https://cdn.jsdelivr.net/npm/vue-circle-xprogress@0.0.1/dist/circle-progress.min.js"></script>
<link ref="stylesheet" href="https://cdn.jsdelivr.net/npm/vue-circle-xprogress@0.0.1/dist/circle-progress.css">

live example

code open

start

<template>
  <circle-progress percent="30" size="60">
      <p>30</p>
    </circle-progress>
</template>
<script>
</script>

circle-progress Component

props

paramdescriptiontypedefault
percent进度百分比 0-100Number0
size大小Number120
staticWidth背景圆环 stroke 宽度String6
staticColor背景圆环 颜色String#E8EAED
dynamicWidth圆环 stroke 宽度Number7
dynamicColor圆环 颜色String#3864EC
dynamicShape圆环边角形状 round,squareStringround
dashboard仪表盘Booleanfalse