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

@develop-plugins/excel-preview

v0.1.5

Published

一个基于 Vue3 的 Excel 预览和编辑组件,支持导入导出 Excel 文件,以及在线编辑表格数据。

Readme

Excel Preview 组件

一个基于 Vue3 的 Excel 预览和编辑组件,支持导入导出 Excel 文件,以及在线编辑表格数据。

特性

  • 支持导入导出 Excel 文件
  • 支持在线编辑表格数据
  • 支持多 Sheet 页切换
  • 支持单元格合并
  • 支持行列拖拽调整大小
  • 支持右键菜单操作
  • 支持表头下拉菜单

安装

npm install @develop-plugins/excel-preview

引用

import { XExcelPreviewInstall } from '@develop-plugins/excel-preview';
import '@develop-plugins/excel-preview/style.css';

app.use(XExcelPreviewInstall);

使用

<template>
  <ExcelPreview
    :data="excelData"
    :read-only="false"
    :show-toolbar="true"
    @export="handleExport"
    @save="handleSave"
  />
</template>

<script setup>
import { ExcelPreview } from '@develop-plugins/excel-preview';
import '@develop-plugins/excel-preview/style.css';

const excelData = ref(null);

// 处理导出事件
const handleExport = () => {
  console.log('导出成功');
};

// 处理保存事件
const handleSave = (data) => {
  console.log('保存数据', data);
};
</script>

属性

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | data | 表格数据,支持 Excel 文件(ArrayBuffer、Uint8Array)或表格数据(Array) | Array | ArrayBuffer | Uint8Array | Blob | {} | | dropdownMenu | 是否显示表头下拉菜单 | Boolean | Array | Object | true | | contextMenu | 是否显示右键菜单 | Boolean | Array | Object | true | | readOnly | 是否只读 | Boolean | false | | rowHeaders | 是否显示行标题 | Boolean | true | | colHeaders | 是否显示列标题 | Boolean | true | | manualRowResize | 是否允许手动调整行高 | Boolean | true | | manualColumnResize | 是否允许手动调整列宽 | Boolean | true | | width | 表格宽度 | String | Number | '100%' | | height | 表格高度 | String | Number | '400px' | | colWidths | 列宽度 | Number | Array | Function | 100 | | minSpareRows | 导入 Excel 时保留的最小行数 | Number | 0 | | minSpareCols | 导入 Excel 时保留的最小列数 | Number | 0 | | downloadFileName | 导出文件名 | String | 'export.xlsx' | | showToolbar | 是否显示工具栏 | Boolean | true |

事件

| 事件名 | 说明 | 回调参数 | | --- | --- | --- | | export | 导出 Excel 文件成功时触发 | - | | save | 保存数据时触发 | (data: Array) 当前表格数据 |

注意事项

  1. 导入 Excel 文件时,支持的格式为 .xlsx
  2. 在只读模式下,所有编辑功能将被禁用。
  3. 使用时需要同时引入组件的样式文件。