npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-canvas-gauge

v1.0.5

Published

vue信用分仪表盘

Downloads

20

Readme

截图

vue-canvas-gauge

vue信用分仪表盘, 仿支付宝芝麻信用分效果

安装与基本用法

$ npm install vue-canvas-gauge --save
或
$ yarn add vue-canvas-gauge

引用方式

import vueCanvasGauge from 'vue-canvas-gauge'

使用示例

<template>
  <div id="app">
    <div style="background: #20bcf5;">
      <vue-canvas-gauge :current="current" :width="200" :height="200" />
    </div>
  </div>
</template>

<script>
import vueCanvasGauge from 'vue-canvas-gauge'

export default {
  components: {
    vueCanvasGauge
  },
  data () {
    return {
      current: 664
    }
  }
}
</script>

Props

width

类型:Number

默认值: 300

仪表盘的宽度

<vue-canvas-gauge :width="300" >

height

类型:Number

默认值: 300

仪表盘的高度

<vue-canvas-gauge :height="300" >

total

类型:Number

默认值: 900

信用分总分数,最大值

<vue-canvas-gauge :total="900" >

current

类型:Number

默认值: 200

信用分当前分数,当前显示的分值,不能大于总分数

<vue-canvas-gauge :current="200" >

score

类型:Number

默认值: 24

仪表盘的刻度,越大刻度越密

<vue-canvas-gauge :score="24" >

speed

类型:Number

默认值: 8

仪表盘的动画速度,值越大越快

<vue-canvas-gauge :speed="8" >

type

类型:String

默认值: img

可能值: ['arc', 'link']

仪表盘的样式风格,arc -> 圆圈, link -> 线条

<vue-canvas-gauge :type="'img'" >

color

类型:String

默认值: #fff

可能值: ['#f40', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, .4)']

仪表盘当前刻度颜色,type为arc或者link生效

<vue-canvas-gauge :color="'#fff'" >

bg

类型:String

默认值: rgba(255, 255, 255, .3)

仪表盘总刻度背景颜色,type为arc或者link生效

<vue-canvas-gauge :bg="'rgba(255, 255, 255, .3)'" >

image

类型:String

仪表盘刻度样式,type为img生效

<vue-canvas-gauge :image="'./img.png'" >

联系

QQ:461632311 网址:http//www.uizph.com