Skip to content

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.

Merge branch 'dev' of https://github.com/dream-num/univer into dev

tonytonychopper123887c3eff6dbf
diff --cc packages/base-sheets/src/main.tsx
index 3e9619f8a4,3b2f9c1600..0c10e542f6
--- a/packages/base-sheets/src/main.tsx
+++ b/packages/base-sheets/src/main.tsx
@@@ -9,15 -9,13 +9,13 @@@ import { SheetPlugin } from './SheetPlu
const uiDefaultConfigUp = {
container: 'universheet-demo-up',
layout: {
- innerRight: false,
- outerLeft: false,
- toolBarConfig: {
- paintFormat: false,
- currencyFormat: false,
- percentageFormat: false,
- numberDecrease: false,
- numberIncrease: false,
- moreFormats: false,
- sheetContainerConfig:{
- infoBar:true,
- formulaBar:true,
- toolBar:true,
- sheetBar:true,
- countBar:true,
- rightMenu:true,
++ sheetContainerConfig: {
++ infoBar: true,
++ formulaBar: true,
++ toolBar: true,
++ sheetBar: true,
++ countBar: true,
++ rightMenu: true,
},
},
@@@ -107,6 -51,16 +53,16 @@@ univerSheetUp.refreshWorkbook(DEFAULT_W
const uiDefaultConfigDown = {
container: 'universheet-demo-down',
- layout:{
- sheetContainerConfig:{
- infoBar:true,
- formulaBar:true,
- toolBar:true,
- sheetBar:true,
- countBar:true,
- rightMenu:true,
++ layout: {
++ sheetContainerConfig: {
++ infoBar: true,
++ formulaBar: true,
++ toolBar: true,
++ sheetBar: true,
++ countBar: true,
++ rightMenu: true,
+ },
+ },
selections: {
'sheet-0001': [
{
diff --cc packages/core/src/Shared/Tools.ts
index e0e2109780,45e74f3300..377d5d22a0
--- a/packages/core/src/Shared/Tools.ts
+++ b/packages/core/src/Shared/Tools.ts
@@@ -665,12 -669,14 +669,23 @@@ export class Tools
return resultJsonObject as unknown as T;
}
+ static commonExtend1<T>(originJson: object, extendJson: object): T {
+ for (let attr in originJson) {
+ if (extendJson[attr] == null) {
+ extendJson[attr] = originJson[attr];
+ }
+ }
+ return extendJson as unknown as T;
+ }
++
+ static arrayToObject(array: IKeyValue[][]) {
+ const obj = {};
+ array.forEach((row, i) => {
+ obj[i] = {};
+ row.forEach((column, j) => {
+ obj[i][j] = column;
+ });
+ });
+ return obj;
+ }
}