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

lcy-umd

v1.0.4

Published

| 参数名 | 必选 | 类型 | 说明 | | :----------- | :--- | :------ | --------------------- | | field | 是 | Boolean | table prop 的标识 | | label | 是 | Array | table 标题 | | placeholder | 是 | Array | 提示语

Downloads

24

Readme

传递的数组解释

| 参数名 | 必选 | 类型 | 说明 | | :----------- | :--- | :------ | --------------------- | | field | 是 | Boolean | table prop 的标识 | | label | 是 | Array | table 标题 | | placeholder | 是 | Array | 提示语 | | width | 是 | 方法 | table 列宽 | | value | 是 | 方法 | 搜索、新增入参 | | type | 是 | 方法 | 搜索、新增的类型 | | props | 是 | 方法 | tree 类型的时候 props | | isShowSearch | 是 | 方法 | 是否搜索 | | isAdd | 是 | 方法 | 是否新增 | | defaultValue | 是 | 方法 | 默认值 | | disabled | 是 | 方法 | 是否禁用 |

头部搜索 FromSearch

<form-search v-model:showSearch="showSearch" ref="queryFormArea" :searchArr="hadleCol()" :queryParams="queryParams" @handleQuery="queryForm" @resetQuery="resetQuery"></form-search>

const hadleCol = () => {
return tableColumns.value.filter((item) => item.isShowSearch);
};

// 搜索条件的查询
const queryForm = (obj) => {
queryParams.value = { ...obj };
getList();
};

| 参数名 | 必选 | 类型 | 说明 | | :---------- | :--- | :------ | --------------------- | | showSearch | 是 | Boolean | 是否显示 头部搜索组件 | | searchArr | 是 | Array | 搜索数据选项的数组 | | queryParams | 是 | Array | 搜索数据入参 | | queryForm | 是 | 方法 | 查询数据方法 | | resetQuery | 是 | 方法 | 重置方法 |

新增弹框

 <addOrEditDialog :addOrEditForm="form" :dialog="showAddOrEditDialog" :searchArr="searchArr" :rules="rules" :addFun="addType" :editFun="editDept" @closeAddOrEdit="closeAddOrEdit" @changeAe="changeAe" />

自定义表格工具组件 RightToolbar

<right-toolbar v-model:showSearch="showSearch" :hideList="['setting', 'download']" @changeQueryForm="changeQueryForm" @queryTable="resetQuery" :searchArr="hadleCol()" ></right-toolbar>

// rightbar 查询
const changeQueryForm = (obj) => {
reset();
queryParams.value[obj.key] = obj.value;
getList();
};

const hadleCol = () => {
return tableColumns.value.filter((item) => item.isShowSearch);
};

分页组件 Pagination

<pagination :page-sizes="[20, 50, 100]" v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />

穿梭框选择组件

<tree-transfer :dialogVisible="dialogVisible" @confirmBind="confirmBind" @close="close" />

const confirmBind = (msg) => {
  console.log(msg, 11123);
  close();
};
const close = () => {
  dialogVisible.value = false;
};