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

ping-ui

v1.0.1

Published

A UI components Library with Vue.js

Downloads

3

Readme

ping-ui

A UI components Library with Vue.js ,https://xiaoping1988.github.io/index.html#/

包含一些echarts和粒子系统的共用组件

NPM安装

npm install ping-ui --save

import PingUI from 'ping-ui'

Vue.use(PingUI)

帮助文档

echarts组件

可参考src/demos/Chart.vue,一个页面多个图表时一定要设置唯一ID

目前已实现折线图、柱状图、饼状图

chartData格式示例:

折线图或者柱状图:
{                
  title: '图标题',
  type: 'line', // 图类型 ['line','bar','linebar','pie']
  reverse: false, // 是否要颠倒系列里的data数据
  columns: [
    {
      name: 'dim', // 与data中的key一样
      title: '维度', //
      x: true // 用于x轴
    },
    {
      name: 'index', // 与data中的key一样
      title: '指标' // 即图例
    }
  ],
  data: [
    {dim: '周一', index: 800},
    {dim: '周二', index: 600},
    {dim: '周三', index: 500},
    {dim: '周四', index: 400},
    {dim: '周五', index: 500},
    {dim: '周六', index: 600},
    {dim: '周日', index: 700}
  ]         
}


折线柱状混图:
{                
  title: '图标题',
  type: 'linebar', // 图类型 ['line','bar','linebar','pie']
  reverse: false, // 是否要颠倒系列里的data数据
  columns: [
      {
        name: 'dim', // 与data中的key一样
        title: '维度', //
        x: true // 用于x轴
      },
     {
       name: 'index1', // 与data中的key一样
       title: '指标1', // 即图例
       type: 'line' // 上面的type为'linebar'时才有效
     },
     {
       name: 'index2', // 与data中的key一样
       title: '指标2', // 即图例
       type: 'bar' // 上面的type为'linebar'时才有效
     }
  ],
  data: [
     {dim: '周一', index1: 100, index2: 800},
     {dim: '周二', index1: 200, index2: 600},
     {dim: '周三', index1: 300, index2: 400},
     {dim: '周四', index1: 400, index2: 300},
     {dim: '周五', index1: 500, index2: 500},
     {dim: '周六', index1: 600, index2: 700},
     {dim: '周日', index1: 700, index2: 900}
  ]         
}


  饼状图:
 {
   title: '饼状图标题',
   type: 'pie', // 图类型 ['line','bar','linebar','pie']
   reverse: false, // 是否要颠倒系列里的data数据
   columns: [
     {
       name: 'index1', // 与data中的key一样
       title: '指标1' // 即图例
     },
     {
       name: 'index2', // 与data中的key一样
       title: '指标2' // 即图例
     },
     {
       name: 'index3', // 与data中的key一样
       title: '指标3' // 即图例
     },
     {
       name: 'index4', // 与data中的key一样
       title: '指标4' // 即图例
     }
   ],
   data: [
     {index1: 100, index2: 800, index3: 200, index4: 400}
   ]
 }

粒子系统waves组件

color是指粒子颜色

可参考src/demos/Waves.vue

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report