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(formula): subtotal count #2452

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
fix(formula): paste formula only with no style
  • Loading branch information
Dushusir committed Jun 17, 2024
commit 977270387709a985ab4f5cb10ea3582dff301bb5
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ export function getSetCellFormulaMutations(
const originalFormulaId = value.si || '';

let valueObject: ICellDataWithSpanInfo = {};
// Paste the formula only, you also need to process some regular values
// Paste the formula only, you also need to process some regular values, but style information is not needed
if (isSpecialPaste) {
valueObject = Tools.deepClone(value);
valueObject.s = null;
}

if (!copyRowLength || !copyColumnLength) {
Expand All @@ -194,8 +195,6 @@ export function getSetCellFormulaMutations(
valueObject.f = shiftedFormula;
valueObject.v = null;
valueObject.p = null;

// TODO handle as normal formula string
} else {
valueObject.si = originalFormulaId;
valueObject.f = null;
Expand Down