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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fancyguo-vue-circleprogressbar

v1.3.1

Published

vue环形进度条

Downloads

3

Readme

vue-circleprogressbar

  • 一个简单的环形进度条组件

最近在开发可视化大屏项目中经常会用到环形进度条,但是常用的echarts组件对环形进度条的支持不太好,写起来比较麻烦.就想着自己写一个VUE的环形组件,满足自己日常开发需求;

2019/12/21更新内容:

  • 完善bar的宽度逻辑,bar的宽度根据父容器的宽度进行自适应,可自定义widthPresent设置bar占父容器宽-- 度的比例;
  • 添加渐变色gradientsColor
  • 去掉lodash的依赖,减小组件大小
  • 解决bar不随progress变化的bug

vue-circleprogressbar

  • 一个简单的环形进度条组件

先上效果图 demo.png

Installation

$ npm install vue-circleprogressbar

Usage

<template>
    <div class="wrap_01" style="height: 300px;">
        <CircleProgress  
          :id="id"
          :width="300"
          :radius="20"
          :progress="30"
          :isAnimation="true"
        ></CircleProgress>
    </div>
</template>
<script>
import CircleProgress  from 'vur-circleprogressbar';
export default {
  data() {
    return {};
  },
  components: {
    CircleProgress
  }
};
</script>

Optiosn

|名字|说明|默认值|类型| |:---|---|---|---| |widthPresent|设置bar占父容器宽度的比例|1|Number| |gradientsColor|bar渐变色设置|[ { offset: "0%", color: "#b2ed9d" },{ offset: "100%", color: "#569b3d" } ]|Array| |id|组件的id,用于处理多组件共存|1|Number, String| | radius|进度条的厚度|20|Number, String| |progress|进度条百分比|20|Number, String| |barColor|进度条颜色|'#1890ff'|String| |backgroundColor|进度条环形背景色|rgba(0,0,0,0.3)|String| |isAnimation|是否显示动画|true|Bollean| |isRound|是否使用圆形画笔|true|Bollean| |duration|动画时长|1000|Number, String| |delay|动画延迟时间|200|Number, String| |timeFunction|动画缓动函数|'cubic-bezier(0.99, 0.01, 0.22, 0.94)'|String|

slot

|名字|说明|默认值|类型| |:---|---|---|---| |默认插槽|环形进度条中间的title自定义|--|--|