Version action
This module supports the application to display the operation entry in the version actions and perform related operations.
Manifest example
modules:
proxima:versionAction:
- key: version-action
title: 编辑
loadType: Micro
route: /admin
resource: main
- key: version-action-link
title: 跳转链接
loadType: Link
linkHref: '/[tenant]/[workspaceKey]/[version.key]?versionId=[version.objectId]'
linkTarget: _blank
resources:
- key: main
path: ./dist/
Properties
name | type | required | description |
---|---|---|---|
key | String | Yes | A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: ^[a-zA-Z0-9_-]+$ |
resource | String | Yes for Micro | A reference to the static resources entry that your item panel wants to display. See resources for more details. |
title | String | Yes | The title of the version action, which is displayed as the version action |
loadType | Micro | Link | Yes | The app's rendering method, Micro would display in the modal |
route | String | false | The app route, default / |
linkHref | String | false | The router path of link, and use context variables with [context ]. |
linkTarget | _blank |_self |_parent |_top |framename | false | The link's Target property specifies where to open the linked document as a in Html5 , default: _blank . |
context
In your application you can use the following parameters
Property | Type | Description |
---|---|---|
workspaceKey | string | The key of the current workspace |
version | version | The row data of the current version |