Skip to content

需求 - 详情导航 ​

需求详情页导航扩展模块,允许在需求详情页的导航中自定义页面:

需求|详情导航.png

配置 ​

配置结构:

yaml
extensions []
├─ key (string) [Mandatory]
├─ target (string) [Mandatory]
├─ title (string | i18n) [Mandatory]
├─ resource (string) [Mandatory]
└─ resolver {} [Mandatory]

配置示例:

yaml
extensions:
  - key: example-idea-area
    target: "pcm:ship:idea:area"
    title: Area title
    resource: main
    resolver:
      function: resolver

属性 ​

配置属性:

属性类型必填描述
titlestring | i18nY定义扩展模块标题,显示在需求详情页的导航上
resourcestringY定义扩展模块所使用的资源,内容为 resources 节点的资源引用
resolver{ function: string } 或 { endpoint: string }Y定义扩展模块所使用的处理函数: - 指定后端处理函数时使用 function 属性 - 指定远程服务时使用 endpoint 属性

扩展数据 ​

当前模块可访问的扩展数据:

数据说明
product产品数据 product
idea需求数据 idea

限制 ​

每个扩展模块对应的数量限制:

限制项限制说明
扩展模块数量8单个应用可以声明的当前扩展模块最大数量

桥接方法 ​

当前扩展模块不支持以下桥接方法,详情请参考 view 。

桥接方法支持
view.setWindowTitle❌
view.createHistory❌
view.submit❌
view.emitReadyEvent❌
view.onSubmit❌

举报邮箱:abuse@worktile.com