Socket
Book a DemoInstallSign in
Socket

@azhena/exportexcel

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azhena/exportexcel

[使用的demo](https://azhen98.github.io/export-table-ts/)

1.1.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

使用的demo

使用示例(支持多级 Header)

import {
    exportData
} from '@azhena/exportexcel'

/**
 * @description:
 * @param {*} list
 * @param {*} revealList 表头对应的数据属性
 * @param {*} 测试 文件名
 * @return {*}
 */
exportData(list, revealList, '测试') //

// 

const list = [{
        name: '张三',
        js: '熟练',
        css: '一般',
        nio: '了解',
        basic: '精通',
        springboot: '熟练',
        mybatis: '了解'
    },
    {
        name: '张三',
        js: '熟练',
        css: '一般',
        nio: '了解',
        basic: '精通',
        springboot: '熟练',
        mybatis: '了解'
    },
    {
        name: '张三',
        js: '熟练',
        css: '一般',
        nio: '了解',
        basic: '精通',
        springboot: '熟练',
        mybatis: '了解'
    },
    {
        name: '张三',
        js: '熟练',
        css: '一般',
        nio: '了解',
        basic: '精通',
        springboot: '熟练',
        mybatis: '了解'
    }
]
const revealList = [{
        name: '姓名',
        prop: 'name'
    },
    {
        name: '专业技能',
        child: [{
                name: '前端',
                child: [{
                        name: 'JavaScript',
                        prop: 'js'
                    },
                    {
                        name: 'CSS',
                        prop: 'css'
                    }
                ]
            },
            {
                name: '后端',
                child: [{
                        name: 'java',
                        child: [{
                                name: 'nio',
                                prop: 'nio'
                            },
                            {
                                name: '基础',
                                prop: 'basic'
                            }
                        ]
                    },
                    {
                        name: '框架',
                        child: [{
                                name: 'SpringBoot',
                                prop: 'springboot'
                            },
                            {
                                name: 'MyBatis',
                                prop: 'mybatis'
                            }
                        ]
                    }
                ]
            }
        ]
    }
]

Keywords

exportTable

FAQs

Package last updated on 26 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.