@corbe30/fortune-excel 1.0.7 → 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 CHANGED
@@ -1,15 +1,18 @@
1
- # FortuneExcel
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>
2
6
 
3
- FortuneExcel is an import/export library for [FortuneSheet](https://github.com/ruilisi/fortune-sheet/). It only supports .xlsx files (not .xls).
7
+ <div align="center">
4
8
 
5
- ## Features
9
+ <p>
10
+ <a href="http://npmjs.com/package/@corbe30/fortune-excel" alt="fortuneExcel on npm">
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">
12
+ <img src="https://img.shields.io/npm/d18m/%40corbe30%2Ffortune-excel" /></a>
13
+ </p>
6
14
 
7
- Supports the following spreadsheet features in import/export:
8
-
9
- - Cell style
10
- - Cell border
11
- - Cell format, such as number format, date, percentage, etc.
12
- - Formula
15
+ </div>
13
16
 
14
17
  ## Usage
15
18
 
@@ -23,7 +26,7 @@ npm i @corbe30/fortune-excel
23
26
  2. Add import/export toolbar item in fortune-sheet
24
27
  > `<ImportHelper />` is a hidden component and only required when using `importToolBarItem()`.
25
28
  ```js
26
- import { importToolBarItem, ImportHelper, exportToolBarItem } from "fortune-excel";
29
+ import { ImportHelper, importToolBarItem, exportToolBarItem } from "fortune-excel";
27
30
 
28
31
  function App() {
29
32
  const workbookRef = useRef();
@@ -34,9 +37,7 @@ function App() {
34
37
  <>
35
38
  <ImportHelper setKey={setKey} setSheets={setSheets} sheetRef={workbookRef} />
36
39
  <Workbook
37
- key={key}
38
- data={sheets}
39
- ref={workbookRef}
40
+ key={key} data={sheets} ref={workbookRef}
40
41
  customToolbarItems={[exportToolBarItem(workbookRef), importToolBarItem()]}
41
42
  />
42
43
  </>
@@ -47,6 +48,8 @@ function App() {
47
48
  ## Authors and acknowledgment
48
49
 
49
50
  - [@Corbe30](https://github.com/Corbe30)
51
+
52
+ Developers of [FortuneSheetExcel](https://github.com/zenmrp/FortuneSheetExcel):
50
53
  - [@wbfsa](https://github.com/wbfsa)
51
54
  - [@wpxp123456](https://github.com/wpxp123456)
52
55
  - [@Dushusir](https://github.com/Dushusir)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corbe30/fortune-excel",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "An Excel import/export import library for FortuneSheet",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",