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

@wznpm/compontent

v0.1.7

Published

header: [ { type: '', 单元格显示类型 ['img', 'time', 'slot', 'custom', 'select'] label: '', 表头 value: '', 数据key fixed: '', col 定位 width: '', 单元格宽度 minWidth: '', 单元格最小宽度 sortable: false, 是否开启排序 默认不开启

Downloads

15

Readme

header: [ { type: '', 单元格显示类型 ['img', 'time', 'slot', 'custom', 'select'] label: '', 表头 value: '', 数据key fixed: '', col 定位 width: '', 单元格宽度 minWidth: '', 单元格最小宽度 sortable: false, 是否开启排序 默认不开启

<!-- 图片  type = img  -->
limit: '',  img 图片展示数量    默认全部展示
isArrObj: false,  img 图片数据为Array时里面的数据是否为Object  默认为 false 
imgKey: 'url', img 图片数据为数组对象(isArrObj=true)时  图片地址在Object中对应的key  默认为 'url'
prefixUrl: '',  img 图片地址的Ip或者其他前缀    默认为''

<!-- 时间  type = time -->
展示的时间格式: 1970/1/1 08:00:00

<!-- 插槽  type = slot -->
slot: 'name', 具名插槽的name

父组件实例展示
template #name="row">
  <div v-if="row.data.XXXXXX">
    {{row.data.XXXXXX}}
  </div>
  <span v-else>-</span>
</template>

<!-- 自定义  type = custom -->
custom: (data) => {} // data  行数据 

<!-- 数组对应  type = select -->
options: '', 要展示的数组数据

<!--  时间格式化 type = deleteHMS -->
只展示时间的 YYYY-MM-DD

<!--  html type = html -->
html: '',html片段 只支持 原生的HTML

<!-- 操作 type = handleBtn -->
操作列
btnArr: {   展示按钮的数组
  type: 'text', 按钮类型 默认是text
  name: '', 按钮的文本 
  disabled: false, 是否禁用 默认是false
  size: 'small', 按钮的大小 默认是small
}
按钮的点击事件 hanldeBtnClick(name,row) 的自定义方法触发 name 传入的name row 当前行数据

}, ]