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

youdi_w

v0.1.0

Published

------

Readme

youdi_w 常用的web端组件和方法


安装 yarn add youdi_w 或者 npm install youdi_w ##全局引入

   import YoudiW from 'youdi_w'
   Vue.use(YoudiW);

1. 图片预览组件

    <ImgPreview
      :imgStyle="{'width':'80px','height':'80px'}"
      :previewSrcList="preList"
      src="https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg"
    ></ImgPreview>

2. 搜索组件

   <SearchFIlter @searchOk="search">
      <template slot="searchDeal">
        <el-form-item label="fasd">
          <el-input size="mini" clearable />
        </el-form-item>
      </template>
      <div slot="operation">fasdfs</div>
    </SearchFIlter>
  #接收的props参数
> formArray
   [
          {
            type: "input",
            label: "手机号",
            attr: "phone",
            placeholder: "请输入手机号"
          },
          {
            type: "time",
            label: "日期",
            attr: "time",
            placeholder: "请选择日期"
          },
          {
            type: "timerange",
            label: "选择日期",
            attr: "timerange",
            placeholder: "请选择日期"
          },
          {
            type: "select",
            label: "选择",
            attr: "type",
            placeholder: "请选择",
            options: [
              {
                label: "haode",
                value: "4"
              }
            ]
          }
        ]
> isReset
是否有重置按钮
> haveLimit
是否有查看更多
    

3. tableList组件

    <MyTable ref="myTable" :queryParams="fieldParams" :req="ceshiFunc">
      <template v-slot:tableList="tableList">
        <el-table
          v-loading="tableList.isLoading"
          :data="tableList.data"
          style="width: 100%"
          ref="tableList"
        >
          <el-table-column
            v-for="(item,index)  in columns"
            :key="index"
            :prop="item.field"
            :label="item.title"
          ></el-table-column>
        </el-table>
      </template>
    </MyTable>
     //样式统一
    .my_table {
      .tableBody {
        height: calc(100vh - 257px);
        overflow-y: scroll;
      }
    }
    
#queryParams 是搜索的时候需要传递的参数
#req 是向后台请求的接口

4. 上传组件

     <YdUploadImg
      :limit='4'
      :initList="initList"
      @imgChange="imgChange"
      action="http://192.168.100.199:8081/upload/save/file"
    ></YdUploadImg>
    //initList  必须有url
    [
        {
          url:
            "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg",
        },
      ]