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

miniprogram_stock_table

v1.0.3

Published

微信小程序自定义表格组件,支持样式自定义,可高度定制化。

Readme

stock-table

股票表格组件

  • author: Nobita
  • update: 2021-08-23

引入方法

// json文件
{
    "usingComponents": {
        "stock-table": "/components/stock-table/stock-table"
    }
}
<!-- 简单示例 -->
<stock-table
    list="{{[...]}}"
    config="{{[...]}}"
></stock-table>

Properties

| 参数 | 类型 | 默认值 | 必填 | 说明 | |-----|------|------|------|-----| |list|Array|[]|true|表格数据源| |deploy|Object|{}||参数配置| |config|Array||true|表格配置| |cls|Object|||自定义样式名|

表格数据源(行)[ list ]

| 参数 | 类型 | 说明 | |---|---|---| |class|String|单行独立的class|

参数配置[ deploy ]

| 参数 | 类型 | 说明 | |---|---|---| |showEmpty|Boolean|是否显示无数据的提示| |emptyText|String|空数据提示|

表格(列)配置[ config ]

| 参数 | 类型 | 默认值 | 说明 | |---|---|---|---| |name|String||列名称,thead显示的名称| |align|String|'right'|列对齐方式| |width|Number|200|列宽| |needSort|Boolean|false|是否需要排序| |params|Array|[]|多数据输出参数| |-attr|String||输出参数的属性| |-class|String||此参数对应的class| |-isSortItem|Boolean|false|是否排序字段,此项若不填,默认第1项为排序字段| |-toPercentage|Boolean|false|是否转化为百分比| |-toPercentageHasPrefix|Boolean|false|百分比数值是否要+-前缀,此参数为toPercentage后置参数| |-toPercentageMultiple|Number|1|转化为百分比的倍数| |-toDate|Boolean|false|转化为时间格式| |-dateFormat|String|'Y-M-D'|日期格式化,此参数为toDate后置参数(示例:Y-M-D h:m:s)|

未完待续...