Skip to content

Commit

Permalink
chore: 更新文档和单测
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Dec 4, 2024
1 parent e854c41 commit caba4be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ describe('Interaction Hover Tests', () => {
hideSummary: true,
isTotals: undefined,
onlyShowCellText: true,
operator: {
menu: {
items: [],
},
},
},
];

Expand Down
2 changes: 1 addition & 1 deletion s2-site/docs/common/development.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pnpm build
pnpm core:start

# 调试 s2-react 和 s2-core(推荐)
pnpm core:build-esm # 首次运行需要先执行一次
pnpm core:build-esm # 首次运行需要先执行一次(安装依赖后自动执行)
pnpm react:playground

# 调试 s2-react-components
Expand Down
6 changes: 5 additions & 1 deletion s2-site/docs/manual/contribution.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ tag: Updated

### 调试功能

根目录运行 `pnpm react:playground`(如果是首次运行,需要先执行一次 `pnpm core:build-esm`) 来运行 `S2`, 可用于调试 `@antv/s2``@antv/s2-react`, 提供了一些常用的图表场景和配置。
:::info{title="提示"}
安装依赖后,会自动构建 `@antv/s2`, 如果是首次运行,并且自动构建失败,提示找不到 `@antv/s2/esm` 之类的报错,手动执行一次 `pnpm core:build-esm` 即可。
:::

根目录运行 `pnpm react:playground` 来运行 `S2`, 可用于调试 `@antv/s2``@antv/s2-react`, 提供了一些常用的图表场景和配置。

<img alt="preview" height="600" src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*6t8RRbg5x_kAAAAAAAAAAAAADmJ7AQ/original" />

Expand Down

0 comments on commit caba4be

Please sign in to comment.