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.

flush

jerry35047d3edbb8
diff --git a/packages/base-sheets/src/Model/index.ts b/packages/base-sheets/src/Model/index.ts
index fb4d55d691..a049f49b0a 100644
--- a/packages/base-sheets/src/Model/index.ts
+++ b/packages/base-sheets/src/Model/index.ts
@@ -1,8 +1,7 @@
// @index('./*.ts', f => `export * from '${f.path}'`)
export * from './AntLineModel';
-export * from './InfoBarModel';
export * from './RightMenuModel';
export * from './SelectionModel';
export * from './SheetBarModel';
-export * from './ToolbarModel';
+export * from './ToolBarModel';
// @endindex
diff --git a/packages/ui-plugin-sheets/src/Controller/CountBarUIController.ts b/packages/ui-plugin-sheets/src/Controller/CountBarUIController.ts
index ec4862223f..15d5ae0183 100644
--- a/packages/ui-plugin-sheets/src/Controller/CountBarUIController.ts
+++ b/packages/ui-plugin-sheets/src/Controller/CountBarUIController.ts
@@ -86,8 +86,9 @@ export class CountBarUIController {
}
// changeRatio
- onChange = (ratio: string) => {
- console.log(ratio);
+ onChange = (v: string) => {
+ console.log(v);
+ this._plugin.getContext().getUniver().getCurrentUniverSheetInstance().getWorkBook().getActiveSheet().setZoomRatio(Tools.numberFixed(v / 100, 2));
}
// 刷新组件