-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let y3 = require('y3-helper') | ||
|
||
export async function 多维表() { | ||
y3.excel.setBaseDir(y3.env.pluginUri) | ||
|
||
let excel = await y3.excel.loadFile('6-更多的演示/6.1-多维表') | ||
let table = excel.makeMultiTable() | ||
|
||
y3.assert(table['风暴之锤']['字段1'][0] === '伤害') | ||
y3.assert(table['风暴之锤']['字段1'][1] === '100|200|300') | ||
|
||
y3.assert(table['雷霆一击']['编号'][0] === '1002') | ||
|
||
y3.assert(table['重击']['名字'][0] === '重击') | ||
|
||
y3.print('多维表读取成功!') | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"6.1.js": "6.1-多维表.js", | ||
"6.1.xlsx": "6.1-多维表.xlsx" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters