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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@code4x/import-xlsx

v0.1.0-beta8

Published

## 安装

Downloads

5

Readme

@code4x/import-xlsx

安装

推荐使用pnpm 安装

npm install @code4x/import-xlsx

or

pnpm add @code4x/import-xlsx

props

| 属性名称 | 描述 | 属性类型 | 默认值 | | ---------------- | ---------------------------------------------- | -------- | ------------- | | width | 弹出框宽度 | string | '50%' | | disabled | 禁用按钮 | boolean | false | | btnTitle | 导入按钮title | string | 导入 | | title | dialog 的title | string | 导入Excel数据 | | columns | 表头,作为导入数据的表头 | array | [] | | autoLoad | 是否自动读取数据,注意,仅当表格数据为空时有效 | boolean | true | | templateFileName | 导入模板文件名称 | string | 导入模板示例 | | getTemplateFile | 获取模板文件 | function | 获取模板文件 |

更新记录

2023-5-24

  • 新增弹出框宽度属性,可以与传入表头的attrs中的width属性结合使用避免导入数据显示不全的问题。
  • 修复空值在number,amount,date时为NaN的问题
  • 新增上传文件默认覆盖之前的文件

2023-5-18

  • feat(): 默认导入非格式化的内容
  • 删除日期单元格读取原始值的选项,只能读取格式化后的值(注:导入的值在js中会与实际值相差43秒,已处理)
  • 针对string和number,日期类型进行了读取的重新map,使其符合预期。

2023-5-15

  • 修复切换后表头没有自动更新的问题

2023年5月11日

  • 新增导入数据根据type进行转换并匹配,其中number和amount的字段将转换为number,date转为时间戳

2023年5月9日

  • 修复空行没有被过滤的问题