Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
b84f198e
Commit
b84f198e
authored
Apr 06, 2021
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Excel表格组件
parent
7789cad8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
README.md
packages/ExportExcel/README.md
+1
-1
ExportExcel.md
packages/ExportExcel/src/ExportExcel.md
+9
-1
base.tsx
packages/ExportExcel/src/demos/base.tsx
+1
-1
No files found.
packages/ExportExcel/README.md
View file @
b84f198e
...
...
@@ -5,7 +5,7 @@
## Usage
```
const
exportExcel
= require('@wisdom-components/ExportExcel');
const
{ExportExcel, ExportExcelZip}
= require('@wisdom-components/ExportExcel');
// TODO: DEMONSTRATE API
```
packages/ExportExcel/src/ExportExcel.md
View file @
b84f198e
...
...
@@ -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 文件 |
packages/ExportExcel/src/demos/base.tsx
View file @
b84f198e
import
React
,
{
useEffect
}
from
'react'
;
import
{
ExportExcel
,
ExportExcelZip
}
from
'../
ExportExcel
'
;
import
{
ExportExcel
,
ExportExcelZip
}
from
'../
index
'
;
import
{
Button
}
from
'antd'
;
const
ExportExcelDemo
=
(
props
)
=>
{
const
exportExcelBtn
=
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment