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(docs): wrong header footer icon (#3689)
Ran Luo0cfeecee9603
diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.tsindex 366a85131b..10ea8cb030 100644--- a/packages/docs-ui/src/controllers/menu/menu.ts+++ b/packages/docs-ui/src/controllers/menu/menu.ts@@ -14,6 +14,9 @@* limitations under the License.*/+import type { IAccessor, PresetListType } from '@univerjs/core';+import type { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';+import type { Subscription } from 'rxjs';import {BaselineOffset,BooleanNumber,@@ -36,11 +39,8 @@ import {getMenuHiddenObservable,MenuItemType,} from '@univerjs/ui';-import { combineLatest, map, Observable } from 'rxjs';-import type { IAccessor, PresetListType } from '@univerjs/core';-import type { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';-import type { Subscription } from 'rxjs';+import { combineLatest, map, Observable } from 'rxjs';import { OpenHeaderFooterPanelCommand } from '../../commands/commands/doc-header-footer.command';import { ResetInlineFormatTextBackgroundColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand } from '../../commands/commands/inline-format.command';import { BulletListCommand, CheckListCommand, getParagraphsInRange, OrderListCommand } from '../../commands/commands/list.command';@@ -526,7 +526,7 @@ export function HeaderFooterMenuItemFactory(accessor: IAccessor): IMenuButtonItereturn {id: OpenHeaderFooterPanelCommand.id,type: MenuItemType.BUTTON,- icon: 'FreezeRowSingle',+ icon: 'HeaderFooterSingle',tooltip: 'toolbar.headerFooter',hidden$: combineLatest(getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC), getHeaderFooterMenuHiddenObservable(accessor), (one, two) => {return one || two;diff --git a/packages/ui/src/common/component-manager.ts b/packages/ui/src/common/component-manager.tsindex 9641148329..6eab080032 100644--- a/packages/ui/src/common/component-manager.ts+++ b/packages/ui/src/common/component-manager.ts@@ -14,7 +14,11 @@* limitations under the License.*/+import type { IDisposable } from '@univerjs/core';+import type React from 'react';+import type { defineComponent } from 'vue';import { toDisposable } from '@univerjs/core';+import {AddDigitsSingle,AdjustHeight,@@ -58,6 +62,7 @@ import {FreezeToSelectedSingle,FunctionSingle,GridSingle,+ HeaderFooterSingle,Hide,HorizontalBorder,HorizontallySingle,@@ -118,10 +123,6 @@ import {VerticalIntegrationSingle,VerticalTextSingle,} from '@univerjs/icons';-import type { IDisposable } from '@univerjs/core';-import type { defineComponent } from 'vue';--import type React from 'react';import { cloneElement, createElement, useEffect, useRef } from 'react';type ComponentFramework = 'vue3' | 'react';@@ -230,6 +231,7 @@ export class ComponentManager {FreezeColumnSingle,FreezeRowSingle,GridSingle,+ HeaderFooterSingle,FreezeToSelectedSingle,CodeSingle,FontSizeIncreaseSingle,