launchpad-config
Insider
<nav.launchpad-config>
构件 nav.launchpad-config
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
menuGroups | ConfigMenuGroup[] | |||
actions | MenuAction[] |
Events
Name | Description | Event Detail |
---|---|---|
action.click | MenuActionEventDetail |
Type references
ConfigMenuGroup
extends ConfigMenuBase
Name | Type | Required | Description |
---|---|---|---|
order | number | ||
items | ConfigMenuItem[] | ✅ |
ConfigMenuItemApp
extends ConfigMenuItemBase
Name | Type | Required | Description |
---|---|---|---|
type | "app" | ✅ | |
url | string | ✅ | |
locales | AppLocales |
ConfigMenuItemBase
extends ConfigMenuBase
Name | Type | Required | Description |
---|---|---|---|
type | "app" | "custom" | "dir" | ✅ | |
menuIcon | Exclude<MenuIcon, LegacyAntdIcon> | ||
position | number |
ConfigMenuBase
Name | Type | Required | Description |
---|---|---|---|
id | string | ✅ | |
name | string | ✅ | |
instanceId | string | ✅ |
ConfigMenuItemCustom
extends ConfigMenuItemBase
Name | Type | Required | Description |
---|---|---|---|
type | "custom" | ✅ | |
url | string | ✅ |
ConfigMenuItemDir
extends ConfigMenuItemBase
Name | Type | Required | Description |
---|---|---|---|
type | "dir" | ✅ | |
items | ConfigMenuItemNormal[] | ✅ |
MenuSimpleAction
Name | Type | Required | Description |
---|---|---|---|
text | string | ✅ | |
event | string | ||
if | unknown | ||
danger | boolean |
MenuActionDivider
Name | Type | Required | Description |
---|---|---|---|
if | unknown | ||
type | "divider" | ✅ |
MenuActionEventDetail
Name | Type | Required | Description |
---|---|---|---|
data | ConfigMenuGroup | ConfigMenuItem | ✅ | |
action | MenuSimpleAction | ✅ |
ConfigMenuItem
ConfigMenuItemNormal | ConfigMenuItemDir
ConfigMenuItemNormal
ConfigMenuItemApp | ConfigMenuItemCustom
MenuAction
MenuSimpleAction | MenuActionDivider