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 🙏

© 2025 – Pkg Stats / Ryan Hefner

wyh-element-table

v1.0.5

Published

基于element table 和lb-table 做的一个通用的业务列表组件

Readme

wyh-element-table

基于element table 和lb-table 做的一个通用的业务列表组件

原型

Live demo: https://github.com/qwe8511066/wyhElementTable/dist/index.html#/staticData

使用说明

npm install wyh-element-table --save

全局注册使用

main.js 文件中引入插件并注册 import wyhElementTable from 'wyh-element-table' Vue.use(wyhElementTable)

局部注册使用

在对应的文件中引入插件并注册 import wyhElementTable from 'wyh-element-table' components: { wyhElementTable, },

如何使用

在项目中用使用 wyhElementTable

组件属性参数

publicTabel | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | pageSizes | 分页数量的配置 | Array | [] | [10, 25, 50, 100] | | isPagination | 是否显示分页 | Boolean | true/false | true | | layout | 分页的种类 | string | 'total, sizes,prev, pager, next, jumper' | 'total, sizes,prev, pager, next, jumper' | | type | 类型 | string | ''/radio/checkbox | '' | | myPages | 动态参数 | Object | — | {} | | baseParams | 基本参数 | Object | — | {} | | checkboxDeleteValue | 每次刷新列表 清空已选的列表 | Boolean | true/false | true | | checkboxAttribute | 多选属性 | Object | — | {} | | radioAttribute | 单选属性 | Object | — | {} | | maxHeight | 最大高度 | number/string | - | null | | column | 列的设置 | Array | [] | [] | | listServe | 列表请求的url | String | - | '' | | list | 静态列表数据 | Array | - | [] | | definitionTotal | 分页的Total Key | String | | totalCount | | definitionData | 分页的Data Key | String | | list | | definitionPage | 分页的Page Key | String | | page | | definitionPageValue | 分页的Page的默认值 | Number | | 1 | | definitionPageSize | 分页的PageSize Key | String | | pageSize | | definitionPageSizeValue | 分页的PageSize的默认值 | Number | | 10 | | requestType | 请求开源工具的类型 | String | '$http' | '' |

组件方法

使用 this.$wyhElementTable.resetColumn() publicTabel | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | getList | 获取列表 | Function | null | null | | search | 搜索列表(会把页码改成1) | Function | null | null | | reset | 重置列表(把页码改成1并且初始化myPages的参数) | Function | null | null | | resetColumn | 重置列(根据列的iif判断渲染或者不渲染) | Function | null | null |

项目

# clone the project
git clone https://github.com/qwe8511066/wyhElementTable.git

# enter the project directory
cd wyhElementTable

# install dependency
npm install

# develop
npm run dev