# xlsx2handson **Repository Path**: bomwu/xlsx2handson ## Basic Information - **Project Name**: xlsx2handson - **Description**: 将Excel xlsx 文件转为 Handsontable 的配置(option)。 可以使用做纯前端的Excel导入或Excel文件预览 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-07-13 - **Last Updated**: 2022-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 一个将XLSX文件转换为Handsontable配置的工具 可以做Excel导入或预览工具 ## 如何使用 ```javascript import { xlsx2handson } from 'xlsx2handson' // excelFile可以是前端上传选择的文件,也可以是下载的文件流 xlsx2handson(excelFile).then(options=>{ // options 是一个数组,每个 Sheet 对应一个 hot.updateSettings(options[0]) }) ``` 可参考 `dist/index.html`