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-table-set

v1.1.2

Published

A Vue.js project

Readme

vue-table-set

基于elementUI Table组件开发的一个table设置插件。

主要功能为:

  1. 编辑表格的列显示,固定、排序、拖拽改变列顺序、在配置属性范围内增加和删减列字段等;

  2. 列对齐方式,是否显示索引,是否支持多选等;

  3. 支持elementUI Table组件的原生属性和事件。

install & Usage

# install dependencies
npm install vue-table-set

# Usage
import customTable from 'vue-table-set'
Vue.use(customTable)

# use in page
<custom-table :settingOpt="settingOpt" @updateTable="updateTable" @hiddenPanel="hiddenPanel"></custom-table>

Operation


鼠标右键单击表头可打开列表设置面板

Table Attributes

| 参数 | 说明 | 类型 | | ------------- |:-------------:| -----:| | settingOpt | 表格展示需要的表格参数 | Object |

settingOpt item

以下设置项均为必须项,缺少则不能正常运行

| item | 说明 | 类型 | | ------------- |:-------------| :-----:| | panelVisible | 列表设置面板是否显示 | Boolean | | tableIndex | 是否显示表格索引 | Boolean | | tableSelect | 是否显示表格多选 | Boolean | | tableAlign | 列表对齐方式 (left /center/right) | String | | allTitles | 可配置的所有列字段 | Array | | tableTitles | 当前已配置的可显示列字段(与当前表格显示字段值相同)| Array | | showTitles | 当前表格的显示字段(与当前可配置的可显示列字段值相同)| Array | | tableData | 表格数据 | Array |

settingOpt数据格式

settingOpt: {
    panelVisible: false, // 设置面板是否打开
    tableIndex: true, // 是否显示表格索引
    tableSelect: true, // 是否显示表格多选
    tableAlign: 'left', // left center right
    allTitles: [{
        prop: "name", // 列字段
        label: "姓名", // 列字段显示名称
        sortable: true, // 列字段是否支持排序
        width: "", // 列宽
        fixed: false // 当前列是否固定
    }],
    tableTitles: [{
        prop: "name", // 列字段
        label: "姓名", // 列字段显示名称
        sortable: true, // 列字段是否支持排序
        width: "", // 列宽
        fixed: false // 当前列是否固定
    }],
    showTitles: [{
        prop: "name", // 列字段
        label: "姓名", // 列字段显示名称
        sortable: true, // 列字段是否支持排序
        width: "", // 列宽
        fixed: false // 当前列是否固定
    }],
    tableData: [{...}], // 表格数据
}

#Table Events | 事件名 | 事件说明 | 参数 | 参数类型 | 参数说明 | | ------------- |:-------------| :-----|:-----|:-----| | updateTable | 更新列表数据 可用于新的设置提交 | newTitles |Object |修改后的表头数据 | | hiddenPanel | 关闭列表设置面板(自定义) | bool | Boolean | 面板隐藏/显示 |