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(sheet): support read default style when create editor #4540

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

VicKun4937
Copy link
Contributor

  • in editor , the default style should be read

Copy link

github-actions bot commented Jan 21, 2025

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

Copy link

Playwright test results

passed  23 passed

Details

stats  23 tests across 10 suites
duration  5 minutes, 8 seconds
commit  f13c202
info  For more information, see full report

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 32.61%. Comparing base (bae758f) to head (f13c202).
Report is 19 commits behind head on dev.

Files with missing lines Patch % Lines
packages/core/src/sheets/worksheet.ts 0.00% 8 Missing ⚠️
...ine-render/src/components/sheets/sheet-skeleton.ts 0.00% 4 Missing ⚠️
...es/sheets-ui/src/services/editor-bridge.service.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4540      +/-   ##
==========================================
- Coverage   32.61%   32.61%   -0.01%     
==========================================
  Files        2597     2597              
  Lines      134822   134833      +11     
  Branches    30000    30002       +2     
==========================================
  Hits        43976    43976              
- Misses      90846    90857      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -1532,7 +1538,7 @@ export class SpreadsheetSkeleton extends Skeleton {
...options,
};

const style = this._styles.getStyleByCell(cell);
const style = { ...options.cellDefaultStyle, ...this._styles.getStyleByCell(cell) };
Copy link
Member

@wzhudev wzhudev Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When should we use composeStyles, and when to use the extend operator?


documentLayoutObject = cell && skeleton.getCellDocumentModelWithFormula(cell);
documentLayoutObject = cell && skeleton.getCellDocumentModelWithFormula(cell, cellDefaultStyle);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only place that cellDefaultStyle should be passed? getCellDocumentModelWithFormula are called in other situations such as removing cell hyperlink.

@wzhudev wzhudev added the qa:untested This PR is ready to be tested label Jan 24, 2025
@zhaolixin7 zhaolixin7 removed the qa:untested This PR is ready to be tested label Feb 6, 2025
@VicKun4937
Copy link
Contributor Author

this pr seems not necessary one, considering close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants