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

v1.0.0

Published

## 直接在项目中使用

Readme

vue-h5-table

直接在项目中使用

下载包

npm i vue-h5-table

main.js引入

import VueH5Table from 'vue-h5-table';
import 'vue-h5-table/lib/vue-h5-table.css';

Vue.use(VueH5Table)

在vue中使用

<my-table
  :data="list"
>
  <my-table-column label="排名" >
    <template slot-scope="scope">
      {{ scope.$index + 1 }}
    </template>
  </my-table-column>
  <my-table-column label="说明" prop="mark">
  </my-table-column>
</my-table>

参数

Table参数

| 参数 | 类型 | 说明 | 是否必填 | | ---- | ---- | ---- | ---- | | data | Array | 表格数据 | 必填 | | headerRowClass | Function({column, columnIndex, rowIndex})/String | 表头行的className的回调方法,也可以使用字符串为所有表头行设置一个固定的className | 非必填 | | cellStyle | Function({rowIndex, columnIndex, row, column})/Object | 单元格的style的回调方法,也可以使用一个固定的Oject为所有表头行设置一样的Style | 非必填 | | cellClass | Function({rowIndex, columnIndex, row, column})/String | 单元格的className的回调方法,也可以使用字符串为所有单元格设置一个固定的className | 非必填 | | rowStyle | Function({row, rowIndex})/Object | 行的style的回调方法,也可以使用一个固定的Object为所有行设置一样的Style | 非必填 | | rowClass | Function({row, rowIndex})/String | 行的className的回调方法,也可以使用字符串为所有行设置一个固定的className | 非必填 | | height | Number | Table的最大高度,如果超过了这个高度会出现滚动条并固定表头 | 非必填 | | spanMethod | Function({row, column, rowIndex, columnIndex}) | 合并行或列的计算方法 | 非必填 | | stripe | Boolean | 是否为斑马纹table | 非必填 | | cellClick | Function({rowIndex, columnIndex, row, column}) | 行的点击事件 | 非必填 | | footerCellStyle | Object | 表尾合计行单元格的style | 非必填 | | showFooter | Boolean | 是否显示表尾合计行 | 非必填 | | footerSpan | Function({row, column, rowIndex, columnIndex}) | 表尾合计的合并行或列的计算方法 | 非必填 | | footerData | Array | 表尾数据 | 非必填 | | footerEqual | Boolean | 表尾数据是否采用插槽 | 非必填 | | fixVer | Boolean | 是否水平固定(左右不滚动) | 非必填 |

Table-column参数

| 参数 | 类型 | 说明 | 是否必填 | | ---- | ---- | ---- | ---- | | fixed | Boolean | 是否固定列 | 非必填 | | label | String | 显示的标题 | 非必填 | | minWidth | String/Number | 列的最小宽度 | 非必填 | | prop | String | 对应列内容的字段名 | 非必填 | | align | String | 对齐方式 | 非必填 | | className | String | 列的className | 非必填 |