Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(bind): fix bind mode loss text style (#4533)
VicKund724ad92f0f7
diff --git a/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts b/packages-experimental/sheets-source-binding/src/services/source-binding-service.tsindex 4d941f446f..5bd919ba8f 100644--- a/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts+++ b/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts@@ -262,6 +262,9 @@ export class SheetsSourceBindService extends Disposable {if (value !== null) {const defaultStyle = (typeof cell?.s === 'string' ? workbook.getStyles().get(cell?.s) : cell?.s) || {};const newStyle = { ...defaultStyle };+ if (value && value.s) {+ Object.assign(newStyle, value.s);+ }return next({ ...cell, ...value, s: newStyle });}