Commit b84f198e authored by 李纪文's avatar 李纪文

fix: Excel表格组件

parent 7789cad8
......@@ -5,7 +5,7 @@
## Usage
```
const exportExcel = require('@wisdom-components/ExportExcel');
const {ExportExcel, ExportExcelZip} = require('@wisdom-components/ExportExcel');
// TODO: DEMONSTRATE API
```
......@@ -18,7 +18,7 @@ group:
| name | Excel 表格名称 | string | 'excel' |
| content | Excel 表格内容,支持多个 sheet[{},{}] | array | [] |
## content 每一项内容
## content
| 名称 | 描述 | 类型 |
| ------------ | ------------------- | ------- |
......@@ -27,3 +27,11 @@ group:
| sheetFilter | 列过滤 | array[] |
| sheetHeader | 表头 | array[] |
| columnWidths | 列宽 需与列顺序对应 | array[] |
## 方法
| 名称 | 描述 |
| ----------------------------- | ------------------- |
| {ExportExcel, ExportExcelZip} | -- |
| ExportExcel | 导出 Excel 表格 |
| ExportExcelZip | 导出压缩 Excel 文件 |
import React, { useEffect } from 'react';
import { ExportExcel, ExportExcelZip } from '../ExportExcel';
import { ExportExcel, ExportExcelZip } from '../index';
import { Button } from 'antd';
const ExportExcelDemo = (props) => {
const exportExcelBtn = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment