Skip to content

Commit

Permalink
chore: save should clone snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhudev committed Dec 26, 2023
1 parent 76bb1d6 commit d72132f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/sheets/workbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class Workbook extends Disposable {
}

save(): IWorkbookData {
return this._snapshot;
return Tools.deepClone(this._snapshot);
}

static isIRangeType(range: IRangeType | IRangeType[]): Boolean {
Expand Down
16 changes: 8 additions & 8 deletions packages/sheets-ui/src/locale/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,14 @@ export default {
},
},
statusbar: {
sum: 'sum',
average: 'average',
min: 'min',
max: 'max',
count: 'numerical count',
countA: 'count',
clickToCopy: 'click to copy',
copied: 'copied!',
sum: 'Sum',
average: 'Average',
min: 'Min',
max: 'Max',
count: 'Numerical Count',
countA: 'Count',
clickToCopy: 'Click to Copy',
copied: 'Copied',
},
autoFill: {
copy: 'Copy Cell',
Expand Down
2 changes: 1 addition & 1 deletion packages/sheets-ui/src/locale/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default {
count: '数值计数',
countA: '计数',
clickToCopy: '点击复制数值',
copied: '数据复制成功,快去粘贴数据吧!',
copied: '已复制',
},
autoFill: {
copy: '复制单元格',
Expand Down

0 comments on commit d72132f

Please sign in to comment.