@univerjs/ui v0.5.0-beta.1Docs


Function: mergeMenuConfigs()

function mergeMenuConfigs<T>(baseConfig, additionalConfig): T

Type Parameters

Type ParameterDefault type
TMenuConfig

Parameters

ParameterType
baseConfigT
additionalConfignull | Partial<Omit<IMenuItem, | "id" | "subId" | "value$" | "hidden$" | "disabled$" | "activated$" | "icon$"> & { activated: boolean; disabled: boolean; hidden: boolean; }>

Returns

T

Defined in

submodules/univer/packages/ui/src/common/menu-merge-configs.ts:20