-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
base: dev
Are you sure you want to change the base?
Conversation
VicKun4937
commented
Jan 21, 2025
- in editor , the default style should be read
View Deployment
|
Playwright test resultsDetails
|
Codecov ReportAttention: Patch coverage is
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. |
@@ -1532,7 +1538,7 @@ export class SpreadsheetSkeleton extends Skeleton { | |||
...options, | |||
}; | |||
|
|||
const style = this._styles.getStyleByCell(cell); | |||
const style = { ...options.cellDefaultStyle, ...this._styles.getStyleByCell(cell) }; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
this pr seems not necessary one, considering close it. |