@corbe30/fortune-excel 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -18
- package/fortuneExcelLogo.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img align="center" src="fortuneExcelLogo.png" width="150px" height="150px" />
|
|
3
|
+
</p>
|
|
4
|
+
<h1 align="center">FortuneExcel</h1>
|
|
5
|
+
<p align="center">FortuneExcel is an .xlsx import/export plugin for FortuneSheet.</p>
|
|
6
|
+
|
|
7
|
+
<div align="center">
|
|
2
8
|
|
|
3
9
|
<p>
|
|
4
10
|
<a href="http://npmjs.com/package/@corbe30/fortune-excel" alt="fortuneExcel on npm">
|
|
5
|
-
<img src="https://img.shields.io/npm/v/@corbe30/fortune-excel" /></a>
|
|
6
|
-
|
|
7
|
-
<a href="http://npmjs.com/package/@corbe30/fortune-excel" alt="fortuneExcel downloads">
|
|
11
|
+
<img src="https://img.shields.io/npm/v/@corbe30/fortune-excel" /></a> <a href="http://npmjs.com/package/@corbe30/fortune-excel" alt="fortuneExcel downloads">
|
|
8
12
|
<img src="https://img.shields.io/npm/d18m/%40corbe30%2Ffortune-excel" /></a>
|
|
9
13
|
</p>
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Features
|
|
14
|
-
|
|
15
|
-
Supports the following spreadsheet features in import/export:
|
|
16
|
-
|
|
17
|
-
- Cell style
|
|
18
|
-
- Cell border
|
|
19
|
-
- Cell format, such as number format, date, percentage, etc.
|
|
20
|
-
- Formula
|
|
15
|
+
</div>
|
|
21
16
|
|
|
22
17
|
## Usage
|
|
23
18
|
|
|
@@ -31,7 +26,7 @@ npm i @corbe30/fortune-excel
|
|
|
31
26
|
2. Add import/export toolbar item in fortune-sheet
|
|
32
27
|
> `<ImportHelper />` is a hidden component and only required when using `importToolBarItem()`.
|
|
33
28
|
```js
|
|
34
|
-
import {
|
|
29
|
+
import { ImportHelper, importToolBarItem, exportToolBarItem } from "fortune-excel";
|
|
35
30
|
|
|
36
31
|
function App() {
|
|
37
32
|
const workbookRef = useRef();
|
|
@@ -42,9 +37,7 @@ function App() {
|
|
|
42
37
|
<>
|
|
43
38
|
<ImportHelper setKey={setKey} setSheets={setSheets} sheetRef={workbookRef} />
|
|
44
39
|
<Workbook
|
|
45
|
-
key={key}
|
|
46
|
-
data={sheets}
|
|
47
|
-
ref={workbookRef}
|
|
40
|
+
key={key} data={sheets} ref={workbookRef}
|
|
48
41
|
customToolbarItems={[exportToolBarItem(workbookRef), importToolBarItem()]}
|
|
49
42
|
/>
|
|
50
43
|
</>
|
|
@@ -55,6 +48,8 @@ function App() {
|
|
|
55
48
|
## Authors and acknowledgment
|
|
56
49
|
|
|
57
50
|
- [@Corbe30](https://github.com/Corbe30)
|
|
51
|
+
|
|
52
|
+
Developers of [FortuneSheetExcel](https://github.com/zenmrp/FortuneSheetExcel):
|
|
58
53
|
- [@wbfsa](https://github.com/wbfsa)
|
|
59
54
|
- [@wpxp123456](https://github.com/wpxp123456)
|
|
60
55
|
- [@Dushusir](https://github.com/Dushusir)
|
|
Binary file
|