mirror of
https://github.com/halo-dev/docs.git
synced 2026-01-18 04:04:01 +08:00
完善主题开发文档关于 VO 字段的描述。 /kind documentation Fixes https://github.com/halo-dev/docs/issues/122 ```release-note None ```
35 lines
1.3 KiB
Markdown
35 lines
1.3 KiB
Markdown
```json title="MenuItemVo"
|
||
{
|
||
"metadata": {
|
||
"name": "string", // 唯一标识
|
||
"labels": {
|
||
"additionalProp1": "string"
|
||
},
|
||
"annotations": {
|
||
"additionalProp1": "string"
|
||
},
|
||
"creationTimestamp": "2022-11-20T14:44:58.984Z", // 创建时间
|
||
},
|
||
"spec": {
|
||
"displayName": "string", // 显示名称,但是不要直接使用这个字段进行显示,最终字段为 status.displayName
|
||
"href": "string", // 链接,同样不要直接使用这个字段,最终字段为 status.href
|
||
"priority": 0, // 排序字段
|
||
"children": [ // 下级菜单项,菜单项的 metadata.name 集合
|
||
"string"
|
||
],
|
||
"targetRef": { // 与其他资源比如文章的关联,一般无需直接使用
|
||
"group": "string",
|
||
"version": "string",
|
||
"kind": "string",
|
||
"name": "string"
|
||
}
|
||
},
|
||
"status": {
|
||
"displayName": "string", // 显示名称
|
||
"href": "string" // 链接
|
||
},
|
||
"children": "List<#MenuItemVo>", // 下级菜单项,MenuItemVo 的集合
|
||
"parentName": "string",
|
||
}
|
||
```
|