space-workbench
<ai-portal.space-workbench>构件 ai-portal.space-workbench
空间工作台构件,用于展示空间的顶部导航栏,包括空间信息、成员管理、消息通知等功能。
Examples
基础使用
无消息通知
Properties
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
notices | NoticeItem[] | |||
knowledges | KnowledgeItem[] | |||
spaceDetail | SpaceDetail | |||
notifyCenterUrl | string | |||
uploadOptions | UploadOptions |
Events
| Name | Description | Event Detail |
|---|---|---|
go.back | void | |
members.click | void | |
notice.click | NoticeItem | |
mark.all.read | void | |
space.edit | void | |
knowledge.click | KnowledgeItem | |
knowledge.add | void |
Type references
NoticeItem
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
id | string | ✅ | ||
type | string | ✅ | ||
isRead | boolean | ✅ | ||
title | string | ✅ | ||
description | string | |||
time | number | ✅ | ||
url | 单个消息详情链接,优先级高于 urlTemplate | string |
KnowledgeItem
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
instanceId | 文档实例ID(主键) | string | ||
name | 文档名称 | string | ||
description | 文档描述 | string | ||
projectId | 所属elevo项目ID | string | ||
content | 文档内容(与openApiUrl二选一) | string | ||
openApiUrl | OpenAPI文档URL(与content二选一) | string | ||
useCondition | 何时使用该知识的描述 | string | ||
state | 状态,可选值:active, inactive | string | ||
knowledgeCount | 知识片段数量 | number | ||
creator | 创建者 | string | ||
ctime | 创建时间 | string | ||
mtime | 修改时间 | string | ||
modifier | 修改者 | string |
SpaceDetail
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
name | string | ✅ | ||
instanceId | string | ✅ | ||
description | string | ✅ |
UploadOptions
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
enabled | boolean | |||
dragDisabled | boolean | |||
dragTips | string | |||
accept | string | |||
maxFiles | number | |||
maxSize | In bytes | number | ||
readableAccept | string | |||
readableMaxSize | string |