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

more-tree-table

v0.1.9

Published

*MoreTreeTable is a table header with a horizontal and a vertical header that supports tree structure data to form a table with a tree header*

Readme

moreTreeTable是一个具有横向表头和纵向表头的表头,切横向表头和纵向表头均支持树形结构数据,形成树形表头的表格

MoreTreeTable is a table header with a horizontal and a vertical header that supports tree structure data to form a table with a tree header

moreTreeTabel支持多向表头,并且支持横向和纵向的树形结构的表头

moreTreeTabel纵向表头表格

moreTreeTabel横向表头表格

启动该项目

npm run serve

下载该组件

npm install more-tree-table

使用该组件

多表头表格

    <more-tree-table :colData="colHead" :rowData="rowHead" :tableValue="tableValue1"></more-tree-table>

colData: 为Array,是指竖向表头的数据,可以是树形结构的表头

rowData: 为Array,是指横向表头的数据

tableValue: 为Object,是指表格的数据,tableValue中的key为 ’横向表头的id__纵向表头的id

colData的值和rowData的值

rowData: [
        {
            id: "1111",
            name: "测试1",
            children: [
                {
                    id: "1111-1",
                    name: "测试1-1",
                    children: [
                        {
                            id: "1111-1-2",
                            name: "测试1-1-2",
                        },
                        {
                            id: "1111-1-3",
                            name: "测试1-1-4",
                        },
                    ]
                },
                {
                    id: "1111-2",
                    name: "测试1-2",
                    children: [
                        {
                            id: "1111-2-2",
                            name: "测试1-2-2",
                        },
                        {
                            id: "1111-2-3",
                            name: "测试1-2-4",
                        },
                    ]
                },
                {
                    id: "1111-3",
                    name: "测试1-3",
                    children: [
                        {
                            id: "1111-3-2",
                            name: "测试1-3-2",
                        },
                        {
                            id: "1111-3-3",
                            name: "测试1-3-4",
                        },
                    ]
                },
                {
                    id: "1111-4",
                    name: "测试1-4",
                },
                
            ]
        },
        {
            id: "2222",
            name: "测试1",
            children: [
                {
                    id: "2222-1",
                    name: "测试1-1",
                    children: [
                        {
                            id: "2222-1-2",
                            name: "测试1-1-2",
                        },
                        {
                            id: "2222-1-3",
                            name: "测试1-1-4",
                        },
                    ]
                },
                {
                    id: "2222-2",
                    name: "测试1-2",
                    children: [
                        {
                            id: "2222-2-2",
                            name: "测试1-2-2",
                        },
                        {
                            id: "2222-2-3",
                            name: "测试1-2-4",
                        },
                    ]
                },
                {
                    id: "2222-3",
                    name: "测试1-3",
                    children: [
                        {
                            id: "2222-3-2",
                            name: "测试1-3-2",
                        },
                        {
                            id: "2222-3-3",
                            name: "测试1-3-4",
                        },
                    ]
                },
                {
                    id: "2222-4",
                    name: "测试1-4",
                },
                
            ]
        },
    ],
    colData: [
        {
            id: "1111",
            name: "测试1",
            children: [
                {
                    id: "1111-1",
                    name: "测试1-1",
                    children: [
                        {
                            id: "1111-1-2",
                            name: "测试1-1-2",
                        },
                        {
                            id: "1111-1-3",
                            name: "测试1-1-4",
                        },
                    ]
                },
                {
                    id: "1111-2",
                    name: "测试1-2",
                    children: [
                        {
                            id: "1111-2-2",
                            name: "测试1-2-2",
                        },
                        {
                            id: "1111-2-3",
                            name: "测试1-2-4",
                        },
                    ]
                },
                {
                    id: "1111-3",
                    name: "测试1-3",
                    children: [
                        {
                            id: "1111-3-2",
                            name: "测试1-3-2",
                        },
                        {
                            id: "1111-3-3",
                            name: "测试1-3-4",
                        },
                    ]
                },
                {
                    id: "1111-4",
                    name: "测试1-4",
                },
                
            ]
        },
        {
            id: "2222",
            name: "测试1",
            children: [
                {
                    id: "2222-1",
                    name: "测试1-1",
                    children: [
                        {
                            id: "2222-1-2",
                            name: "测试1-1-2",
                        },
                        {
                            id: "2222-1-3",
                            name: "测试1-1-4",
                        },
                    ]
                },
                {
                    id: "2222-2",
                    name: "测试1-2",
                    children: [
                        {
                            id: "2222-2-2",
                            name: "测试1-2-2",
                        },
                        {
                            id: "2222-2-3",
                            name: "测试1-2-4",
                            children: [
                                {
                                    id: "2222-2-3-1",
                                    name: "测试1-2-2",
                                },
                                {
                                    id: "2222-2-3-2",
                                    name: "测试1-2-2",
                                },
                            ]
                        },
                    ]
                },
                {
                    id: "2222-3",
                    name: "测试1-3",
                    children: [
                        {
                            id: "2222-3-2",
                            name: "测试1-3-2",
                        },
                        {
                            id: "2222-3-3",
                            name: "测试1-3-4",
                        },
                    ]
                },
                {
                    id: "2222-4",
                    name: "测试1-4",
                },
                
            ]
        },
    ],

tableValue的值

//多项表头的数据
    tableValue1: {
        '1111-1-2__1111-1-2': '测试数据1',
        '1111-1-3__1111-1-3': '测试数据2',
        '1111-2-2__1111-2-2': '测试数据3',
        '1111-2-3__1111-2-3': '测试数据4',
        '1111-3-2__1111-3-2': '测试数据5',
        '2222-3-3__2222-3-3': "测试数据6",
        '2222-4__2222-4': '测试数据7'
    },

纵向表头表格

    <more-tree-table :colData="colHead" :tableValue="tableValue2"></more-tree-table>

colData: 为Array,是指竖向表头的数据,可以是树形结构的表头

tableValue: 为Array,数组的每一项为对象,对象中的key和纵向的id对应

colData的值同上

tableValue的值

    //纵向表头数据
    tableValue2: [
        {
            '1111-1-2': "1",
            '1111-1-3': "2",
            '1111-2-2': "3",
            '1111-2-3': "4",
            '1111-3-2': "5",
            '2222-3-3': "6",
            '2222-4': "7"
        },
    ],

横向表头表格

    <more-tree-table :rowData="rowHead" :tableValue="tableValue2"></more-tree-table>

rowData: 为Array,是指横向向表头的数据,可以是树形结构的表头

tableValue: 为Array,数组的每一项为对象,对象中的key和横向的id对应

rowData的值同上

tableValue的值

    //横向表头数据
    tableValue3: [
        {
            '1111-1-2': "1",
            '1111-1-3': "2",
            '1111-2-2': "3",
            '1111-2-3': "4",
            '1111-3-2': "5",
            '2222-3-3': "6",
            '2222-4': "7"
        },
    ],