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(paste): fix copy-paste issue with merged cell borders introduced in version 0.14.0 (#6429)
wpxp123456e6dac104f9f8
diff --git a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts b/packages/sheets-ui/src/services/clipboard/clipboard.service.tsindex a78020975e..b098655bc1 100644--- a/packages/sheets-ui/src/services/clipboard/clipboard.service.ts+++ b/packages/sheets-ui/src/services/clipboard/clipboard.service.ts@@ -675,7 +675,8 @@ export class SheetClipboardService extends Disposable implements ISheetClipboard* Conditional formatting, data validation, and number format are not included here because they will be applied automatically after pasting.* So here we use `getComposedCellStyleByCellData` to get the final style of the cell raw data.*/- const style = worksheet?.getComposedCellStyleByCellData(actualRow, actualColumn, value);+ const cellData = worksheet?.getCellRaw(actualRow, actualColumn);+ const style = worksheet?.getComposedCellStyleByCellData(actualRow, actualColumn, cellData);const newValue = cloneCellDataWithSpanInfo(value)!;newValue.s = style;cellMatrix.setValue(row, col, newValue);