Skip to content

Commit

Permalink
fix: toJSON({ diff: true })没有达到预期效果 #4297 (#4299)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 authored Jun 6, 2024
1 parent 13cd329 commit a431f52
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit a431f52

Please sign in to comment.