# vue-table-export **Repository Path**: xin3316/vue-table-export ## Basic Information - **Project Name**: vue-table-export - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-19 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## vue-table-export 一个轻量级、使用简单的表格导出插件。压缩后仅有 7k。 ## 使用 目前仅支持全局引入 ```html ``` ## 依赖 - xlsx - blob - FileSaver - vue(2.0以上版本) - bootstrapCSS样式库(可选依赖。组件默认依赖的是它的样式) 组件所依赖的文件都在 `dist` 目录。 ## 示例 全局引入 ```html ``` ```html ...
... ``` ## API 以下是组件所有的参数列表: | Props | 类型 | 默认值 | 必填 | 描述 | |:-----:|:----:|:------:|:----:|:---| | :data | Array | `[]` | 是 | 一个二维数组,表示要导出的数据。 | | :columns | Array | `[]` | 否 | 表格头部,用来做为 Excel 的头部。| | filename | String | `时间戳` | 否 | 文件名。缺省值为当前时间的时间戳。| | type | String | `xlsx` | 否 | 导出类型。==当前版本仅支持导出Excel==| | button-text | String | `导出Excel` | 否 | 按钮文本。| | class-name | String | `btn-success` | 否 | 按钮样式。| ## LICENSE Copyright(c) 2016 [gongph](https://github.com/gongph)