Skip to content

Commit 4856332

Browse files
committed
update readme
1 parent 35a8a13 commit 4856332

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,33 @@ Reverse engineered from Excel spreadsheet files as a project.
1616
npm install @zurmokeeper/exceljs
1717
```
1818

19+
# V4.4.2 New Features!
20+
21+
Change Log:
22+
23+
* 1: Fixbug: [Internal hyperlink does not work on wps office](https://github.com/zurmokeeper/excelize/issues/4). (brank change) and support new internal linking methods。
24+
* 2:Add type definition for WorksheetModel.merges, Thank you <a href="https://github.com/ytjmt">ytjmt</a>, Merged <a href="https://github.com/exceljs/exceljs/pull/2281"> PR2281</a>.
25+
* 3:Add type definition for WorksheetProtection.spinCount,Thank you <a href="https://github.com/damingerdai">damingerdai</a>, Merged <a href="https://github.com/exceljs/exceljs/pull/2284"> PR2284</a>.
26+
27+
PS: Since V4.4.2 @zurmokeeper/exceljs new cell insertion internal links support `Sheet2!A1:B1` and `A1:B1` and other forms, the original only supports `Sheet2!A1`, use the following way::
28+
29+
30+
```
31+
const wb = new ExcelJS.Workbook();
32+
const ws1 = wb.addWorksheet('Sheet1');
33+
const ws2 = wb.addWorksheet('Sheet2');
34+
35+
'#' is required, @zurmokeeper/exceljs is to distinguish internal links by '#', the default will be considered non-internal links, older versions also need to manually add '#' , how not to add if
36+
// internal link
37+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1' };
38+
39+
// internal link
40+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1:B1' };
41+
42+
// internal link
43+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#A1:B1' };
44+
```
45+
1946
# V4.4.1 New Features!
2047

2148
Change Log:

README_zh.md

+27
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,33 @@
1414
npm install @zurmokeeper/exceljs
1515
```
1616

17+
# V4.4.2 新的功能!
18+
19+
变更日志:
20+
21+
* 1: Fixbug: [Internal hyperlink does not work on wps office](https://github.com/zurmokeeper/excelize/issues/4). (brank change) 和支持新的内部链接方式。
22+
* 2:Add type definition for WorksheetModel.merges, Thank you <a href="https://github.com/ytjmt">ytjmt</a>, Merged <a href="https://github.com/exceljs/exceljs/pull/2281"> PR2281</a>.
23+
* 3:Add type definition for WorksheetProtection.spinCount,Thank you <a href="https://github.com/damingerdai">damingerdai</a>, Merged <a href="https://github.com/exceljs/exceljs/pull/2284"> PR2284</a>.
24+
25+
PS: 自 V4.4.2 @zurmokeeper/exceljs 新增单元格插入内部链接支持 Sheet2!A1:B1 和 A1:B1等形式,原来只支持 Sheet2!A1,使用方式如下:
26+
27+
28+
```
29+
const wb = new ExcelJS.Workbook();
30+
const ws1 = wb.addWorksheet('Sheet1');
31+
const ws2 = wb.addWorksheet('Sheet2');
32+
33+
'#'是必须的,@zurmokeeper/exceljs 是通过'#'来区分内部链接的,默认会被认为是非内部链接,旧版本使用也要手动加上 '#' ,如何没加的话
34+
// internal link
35+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1' };
36+
37+
// internal link
38+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1:B1' };
39+
40+
// internal link
41+
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#A1:B1' };
42+
```
43+
1744
# V4.4.1 新的功能!
1845

1946
变更日志:

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "@zurmokeeper/exceljs",
3-
"version": "4.4.1",
3+
"version": "4.4.2",
44
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.",
55
"private": false,
66
"license": "MIT",
7+
"publishConfig": {
8+
"access": "public"
9+
},
710
"author": {
811
"name": "zurmokeeper",
912
"email": "3382272560@qq.com"
@@ -37,7 +40,6 @@
3740
"test:native": "npm run test:full",
3841
"test:unit": "mocha --require spec/config/setup --require spec/config/setup-unit spec/unit --recursive",
3942
"test:integration": "mocha --require spec/config/setup spec/integration --recursive",
40-
"test:hyperlink": "mocha --require spec/config/setup spec/unit/xlsx/xform/sheet/hyperlink-xform.spec.js",
4143
"test:end-to-end": "mocha --require spec/config/setup spec/end-to-end --recursive",
4244
"test:browser": "if [ ! -f .disable-test-browser ]; then npm run build && npm run test:jasmine; fi",
4345
"test:jasmine": "grunt jasmine",

0 commit comments

Comments
 (0)