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-2006layout

v1.5.3

Published

用于大屏grid布局 地图 上拉下拉的功能

Readme

vue-vis-layout

数据结构的方式和dom的排列方式

<vue-vus-panel></vue-vus-panel> //panel布局 这一种采取的是定位排版 24*24的占比排版
   {
    id: 0, //id
    item: {
      row: 0,  //位置 x轴的
      col: 0, //位置 y轴的
      width: 24, //宽度的占比 
      height: 3, //高度的占比
      title: '测试', //标题的内容
      showTitle: true //标题的现实和隐藏
    },
    name: 'vis-area-chart' // 组件的名字非常重要
  },

栅格布局

dom结构

 // 用的是css样式 grid的演示去做的这个可以吧栅格的col 和 row 动态的展示出来
<div class="wrap">
    <rasterize-page
      class="ap-rasterize"
      :col="state.compsJson.col"
      :row="state.compsJson.row"
    >
      <template
        v-for="item in state.compsJson.data"
        :key="item.component + item.id"
      >
   
        <panel-page :boderDebugger="false" :property="item">
          <slot></slot>
          <component :is="item.component"></component>
        </panel-page>
      </template>
    </rasterize-page>
  </div> 

数据结构


        col: 24, //动态的占比 x轴和y轴的演示
        row: 24,
        data: [
          {
            attrs: {
              col: 0, //x轴的位置
              row: 0, //y轴的位置
              width: 3, //宽的占比
              height: 8, //高的占比
              zIndex: 1, //索引
            },
            component: 'vis-top-chart', //动态组件的名称
            id: '1' 
            isHideHead: true, //标题的控制
            title: '僵木蠕毒类型分布' //标题
          },

#动态映入组件 特别重要 !!!重要程度 ★★★★★

映入的位置main.ts 或者是 main.js

1676374912182

image.png

1676374985904

requireComponent.keys().forEach((fileName) => {
  const componentConfig = requireComponent(fileName);
  // 兼容 import export 和 require module.export 两种规范
  const ctrl = componentConfig.default || componentConfig;
  console.log(' require.context:', ctrl);

  app.component(ctrl.name, ctrl);
});

新增内容

`<brtter-scrool>` 2个事件 pullingUp 上拉加载事件 pullingDown 下拉刷新事件

需要传递的参数是 高height 内置了插槽了位置,放内容

<vue-map>

地图组件 需要引入json 数据 在自己文件夹里找