Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: toJSON({ diff: true })没有达到预期效果 #4297 #4299

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sites/x6-sites/docs/api/model/cell.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ toJSON(options?: Cell.ToJSONOptions): Object

| 选项 | 类型 | 默认值 | 必选 | 描述 |
|--------------|---------|---------|:----:|---------------------------------------|
| options.diff | boolean | `false` | | 是否返回与默认值相比具有差异的那些数据。 |
| options.diff | boolean | `false` | | 是否返回与默认值相比具有差异的那些数据(还是会导出整个画布的数据)。 |

- 当 `options.diff` 为 `false` 时,返回完整数据。
- 当 `options.diff` 为 `true` 时,返回差异数据。
- 当 `options.diff` 为 `true` 时,返回差异数据(剔除属性的默认值)

#### clone(...)

Expand Down
Loading