@next-bricks/ai-portal 0.70.4 → 0.70.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +49 -49
- package/dist/chunks/{6450.9e9165f9.js → 6450.3e0a0900.js} +2 -2
- package/dist/chunks/{6450.9e9165f9.js.map → 6450.3e0a0900.js.map} +1 -1
- package/dist/chunks/6773.239d3ea4.js +2 -0
- package/dist/chunks/6773.239d3ea4.js.map +1 -0
- package/dist/chunks/{main.c83b3727.js → main.f9ed8020.js} +2 -2
- package/dist/chunks/{main.c83b3727.js.map → main.f9ed8020.js.map} +1 -1
- package/dist/examples.json +15 -15
- package/dist/index.d9596ec7.js +2 -0
- package/dist/{index.10454d21.js.map → index.d9596ec7.js.map} +1 -1
- package/dist/manifest.json +1048 -1048
- package/dist/types.json +383 -383
- package/package.json +5 -2
- package/dist/chunks/6773.afd27a30.js +0 -2
- package/dist/chunks/6773.afd27a30.js.map +0 -1
- package/dist/index.10454d21.js +0 -2
package/dist/manifest.json
CHANGED
|
@@ -4,125 +4,155 @@
|
|
|
4
4
|
"name": "ai-portal",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "ai-portal.
|
|
7
|
+
"name": "ai-portal.chat-box",
|
|
8
8
|
"properties": [
|
|
9
9
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"
|
|
12
|
-
"type": "string"
|
|
10
|
+
"name": "disabled",
|
|
11
|
+
"type": "boolean"
|
|
13
12
|
},
|
|
14
13
|
{
|
|
15
|
-
"name": "
|
|
16
|
-
"
|
|
17
|
-
"attribute": false,
|
|
18
|
-
"type": "RequestStore | null"
|
|
14
|
+
"name": "placeholder",
|
|
15
|
+
"type": "string"
|
|
19
16
|
},
|
|
20
17
|
{
|
|
21
|
-
"name": "
|
|
22
|
-
"description": "是否启用回放。仅初始设置有效。",
|
|
18
|
+
"name": "autoFocus",
|
|
23
19
|
"type": "boolean"
|
|
24
20
|
},
|
|
25
21
|
{
|
|
26
|
-
"name": "
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"type": "number"
|
|
22
|
+
"name": "aiEmployees",
|
|
23
|
+
"attribute": false,
|
|
24
|
+
"type": "AIEmployee[]"
|
|
30
25
|
},
|
|
31
26
|
{
|
|
32
|
-
"name": "
|
|
33
|
-
"description": "功能开关配置,键为功能名,值为是否启用",
|
|
27
|
+
"name": "commands",
|
|
34
28
|
"attribute": false,
|
|
35
|
-
"type": "
|
|
29
|
+
"type": "Command[]"
|
|
36
30
|
},
|
|
37
31
|
{
|
|
38
|
-
"name": "
|
|
39
|
-
"
|
|
40
|
-
"type": "
|
|
32
|
+
"name": "uploadOptions",
|
|
33
|
+
"attribute": false,
|
|
34
|
+
"type": "UploadOptions"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"events": [
|
|
38
|
+
{
|
|
39
|
+
"name": "message.submit",
|
|
40
|
+
"description": "",
|
|
41
|
+
"deprecated": "Use `chat.submit` event instead",
|
|
42
|
+
"detail": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
41
45
|
},
|
|
42
46
|
{
|
|
43
|
-
"name": "
|
|
44
|
-
"
|
|
45
|
-
|
|
47
|
+
"name": "chat.submit",
|
|
48
|
+
"detail": {
|
|
49
|
+
"type": "ChatPayload"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"slots": [],
|
|
54
|
+
"methods": [
|
|
55
|
+
{
|
|
56
|
+
"name": "setValue",
|
|
57
|
+
"params": [
|
|
58
|
+
{
|
|
59
|
+
"name": "value",
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
46
63
|
},
|
|
47
64
|
{
|
|
48
|
-
"name": "
|
|
49
|
-
"
|
|
50
|
-
"type": "boolean"
|
|
65
|
+
"name": "getValue",
|
|
66
|
+
"params": []
|
|
51
67
|
},
|
|
52
68
|
{
|
|
53
|
-
"name": "
|
|
54
|
-
"
|
|
55
|
-
|
|
69
|
+
"name": "focusOnInput",
|
|
70
|
+
"params": []
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"parts": [],
|
|
74
|
+
"description": "大型聊天输入框,用于首页"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "ai-portal.elevo-sidebar",
|
|
78
|
+
"properties": [
|
|
79
|
+
{
|
|
80
|
+
"name": "userInstanceId",
|
|
81
|
+
"type": "string"
|
|
56
82
|
},
|
|
57
83
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"
|
|
60
|
-
"type": "boolean"
|
|
84
|
+
"name": "behavior",
|
|
85
|
+
"type": "\"default\" | \"drawer\""
|
|
61
86
|
},
|
|
62
87
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"
|
|
65
|
-
"type": "boolean"
|
|
88
|
+
"name": "logoUrl",
|
|
89
|
+
"type": "string"
|
|
66
90
|
},
|
|
67
91
|
{
|
|
68
|
-
"name": "
|
|
69
|
-
"
|
|
70
|
-
"type": "boolean"
|
|
92
|
+
"name": "newChatUrl",
|
|
93
|
+
"type": "string"
|
|
71
94
|
},
|
|
72
95
|
{
|
|
73
|
-
"name": "
|
|
74
|
-
"description": "是否显示 JSX 编辑器按钮",
|
|
96
|
+
"name": "newChatLinkWhenCollapsed",
|
|
75
97
|
"type": "boolean"
|
|
76
98
|
},
|
|
77
99
|
{
|
|
78
|
-
"name": "
|
|
79
|
-
"description": "生成视图预览页的 URL 模板,支持 {viewId} 等字段插值",
|
|
100
|
+
"name": "historyUrlTemplate",
|
|
80
101
|
"type": "string"
|
|
81
102
|
},
|
|
82
103
|
{
|
|
83
|
-
"name": "
|
|
84
|
-
"description": "示例场景列表,用于在空对话时展示快速入口",
|
|
104
|
+
"name": "historyActions",
|
|
85
105
|
"attribute": false,
|
|
86
|
-
"type": "
|
|
106
|
+
"type": "ActionType[]"
|
|
87
107
|
},
|
|
88
108
|
{
|
|
89
|
-
"name": "
|
|
90
|
-
"
|
|
91
|
-
"attribute": false,
|
|
92
|
-
"type": "ExampleProject[]"
|
|
109
|
+
"name": "showProjects",
|
|
110
|
+
"type": "boolean"
|
|
93
111
|
},
|
|
94
112
|
{
|
|
95
|
-
"name": "
|
|
96
|
-
"description": "\"试一试\"跳转 URL",
|
|
113
|
+
"name": "projectUrlTemplate",
|
|
97
114
|
"type": "string"
|
|
98
115
|
},
|
|
99
116
|
{
|
|
100
|
-
"name": "
|
|
101
|
-
"
|
|
102
|
-
"type": "
|
|
117
|
+
"name": "projectActions",
|
|
118
|
+
"attribute": false,
|
|
119
|
+
"type": "ActionType[]"
|
|
103
120
|
},
|
|
104
121
|
{
|
|
105
|
-
"name": "
|
|
106
|
-
"description": "可 @ 提及的数字人列表",
|
|
122
|
+
"name": "personalActions",
|
|
107
123
|
"attribute": false,
|
|
108
|
-
"type": "
|
|
124
|
+
"type": "ActionType[]"
|
|
109
125
|
},
|
|
110
126
|
{
|
|
111
|
-
"name": "
|
|
112
|
-
"description": "命令列表,支持通过 / 或搜索触发联想",
|
|
127
|
+
"name": "links",
|
|
113
128
|
"attribute": false,
|
|
114
|
-
"type": "
|
|
129
|
+
"type": "SidebarLink[]"
|
|
115
130
|
},
|
|
116
131
|
{
|
|
117
|
-
"name": "
|
|
118
|
-
"
|
|
132
|
+
"name": "canAddProject",
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"default": "true"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "myLinks",
|
|
119
138
|
"attribute": false,
|
|
120
|
-
"type": "
|
|
139
|
+
"type": "SidebarLink[]"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "scope",
|
|
143
|
+
"description": "",
|
|
144
|
+
"default": "\"default\"",
|
|
145
|
+
"type": "\"default\" | \"space\""
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "spaceNav",
|
|
149
|
+
"attribute": false,
|
|
150
|
+
"type": "SpaceNavProps"
|
|
121
151
|
}
|
|
122
152
|
],
|
|
123
153
|
"events": [
|
|
124
154
|
{
|
|
125
|
-
"name": "
|
|
155
|
+
"name": "logout",
|
|
126
156
|
"description": "",
|
|
127
157
|
"detail": {
|
|
128
158
|
"description": "void",
|
|
@@ -130,318 +160,338 @@
|
|
|
130
160
|
}
|
|
131
161
|
},
|
|
132
162
|
{
|
|
133
|
-
"name": "
|
|
134
|
-
"description": "",
|
|
163
|
+
"name": "action.click",
|
|
164
|
+
"description": "点击对话历史操作按钮时触发",
|
|
135
165
|
"detail": {
|
|
136
|
-
"description": "
|
|
137
|
-
"type": "
|
|
166
|
+
"description": "{ action: 点击的操作项(含 project 等扩展字段), item: 当前对话历史记录项, project: 关联的项目(可选) }",
|
|
167
|
+
"type": "ActionClickDetail"
|
|
138
168
|
}
|
|
139
169
|
},
|
|
140
170
|
{
|
|
141
|
-
"name": "
|
|
142
|
-
"description": "",
|
|
171
|
+
"name": "project.action.click",
|
|
172
|
+
"description": "点击项目操作按钮时触发",
|
|
143
173
|
"detail": {
|
|
144
|
-
"description": "{
|
|
145
|
-
"type": "
|
|
174
|
+
"description": "{ action: 点击的操作项, project: 当前项目对象 }",
|
|
175
|
+
"type": "ProjectActionClickDetail"
|
|
146
176
|
}
|
|
147
177
|
},
|
|
148
178
|
{
|
|
149
|
-
"name": "
|
|
179
|
+
"name": "add.project",
|
|
150
180
|
"description": "",
|
|
151
181
|
"detail": {
|
|
152
|
-
"description": "
|
|
153
|
-
"type": "
|
|
182
|
+
"description": "void",
|
|
183
|
+
"type": "void"
|
|
154
184
|
}
|
|
155
185
|
},
|
|
156
186
|
{
|
|
157
|
-
"name": "
|
|
187
|
+
"name": "add.serviceflow",
|
|
158
188
|
"description": "",
|
|
159
189
|
"detail": {
|
|
160
|
-
"description": "
|
|
161
|
-
"type": "
|
|
190
|
+
"description": "void",
|
|
191
|
+
"type": "void"
|
|
162
192
|
}
|
|
163
193
|
},
|
|
164
194
|
{
|
|
165
|
-
"name": "
|
|
166
|
-
"description": "",
|
|
195
|
+
"name": "personal.action.click",
|
|
196
|
+
"description": "点击个人操作按钮时触发",
|
|
167
197
|
"detail": {
|
|
168
|
-
"description": "{
|
|
169
|
-
"type": "
|
|
198
|
+
"description": "{ action: 点击的操作项 }",
|
|
199
|
+
"type": "PersonalActionClickDetail"
|
|
170
200
|
}
|
|
171
201
|
}
|
|
172
202
|
],
|
|
173
203
|
"slots": [],
|
|
174
204
|
"methods": [
|
|
175
205
|
{
|
|
176
|
-
"name": "
|
|
177
|
-
"params": [
|
|
178
|
-
|
|
206
|
+
"name": "pullHistory",
|
|
207
|
+
"params": [
|
|
208
|
+
{
|
|
209
|
+
"name": "delay",
|
|
210
|
+
"description": "拉取前的等待时长(毫秒),用于等待任务标题生成完成",
|
|
211
|
+
"type": "number"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"description": "延迟一段时间后拉取最新对话历史",
|
|
179
215
|
"returns": {}
|
|
180
216
|
},
|
|
181
217
|
{
|
|
182
|
-
"name": "
|
|
218
|
+
"name": "open",
|
|
183
219
|
"params": [],
|
|
184
|
-
"description": "
|
|
220
|
+
"description": "展开侧边栏(behavior 为 drawer 时有效)",
|
|
185
221
|
"returns": {}
|
|
186
222
|
},
|
|
187
223
|
{
|
|
188
|
-
"name": "
|
|
224
|
+
"name": "close",
|
|
189
225
|
"params": [],
|
|
190
|
-
"description": "
|
|
226
|
+
"description": "折叠侧边栏(behavior 为 drawer 时有效)",
|
|
191
227
|
"returns": {}
|
|
192
228
|
},
|
|
193
229
|
{
|
|
194
|
-
"name": "
|
|
230
|
+
"name": "removeProject",
|
|
195
231
|
"params": [
|
|
196
232
|
{
|
|
197
|
-
"name": "
|
|
198
|
-
"description": "
|
|
233
|
+
"name": "projectId",
|
|
234
|
+
"description": "要移除的项目 instanceId",
|
|
199
235
|
"type": "string"
|
|
200
236
|
}
|
|
201
237
|
],
|
|
202
|
-
"description": "
|
|
238
|
+
"description": "从历史列表中移除指定项目及其对话",
|
|
239
|
+
"returns": {}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "addProject",
|
|
243
|
+
"params": [
|
|
244
|
+
{
|
|
245
|
+
"name": "project",
|
|
246
|
+
"description": "要追加的项目对象",
|
|
247
|
+
"type": "Project"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"description": "向项目列表中追加一个新项目",
|
|
251
|
+
"returns": {}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "moveConversation",
|
|
255
|
+
"params": [
|
|
256
|
+
{
|
|
257
|
+
"name": "conversationId",
|
|
258
|
+
"description": "要移动的对话 ID",
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"description": "将指定对话标记为已移入项目,从历史列表中隐藏",
|
|
203
263
|
"returns": {}
|
|
204
264
|
}
|
|
205
265
|
],
|
|
206
266
|
"parts": [],
|
|
207
|
-
"description": "AI
|
|
208
|
-
"category": "
|
|
267
|
+
"description": "Elevo AI 侧边栏,包含 Logo 导航、新建对话、历史记录、项目列表及个人账户操作,支持折叠和抽屉两种行为模式。",
|
|
268
|
+
"category": "layout-component"
|
|
209
269
|
},
|
|
210
270
|
{
|
|
211
|
-
"name": "ai-portal.
|
|
271
|
+
"name": "ai-portal.icon-button",
|
|
212
272
|
"properties": [
|
|
213
273
|
{
|
|
214
|
-
"name": "
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
274
|
+
"name": "icon",
|
|
275
|
+
"attribute": false,
|
|
276
|
+
"type": "(GeneralIconProps & HTMLAttributes<GeneralIcon>)"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "tooltip",
|
|
219
280
|
"type": "string"
|
|
220
281
|
},
|
|
221
282
|
{
|
|
222
|
-
"name": "
|
|
283
|
+
"name": "tooltipHoist",
|
|
223
284
|
"type": "boolean"
|
|
224
285
|
},
|
|
225
286
|
{
|
|
226
|
-
"name": "
|
|
227
|
-
"
|
|
228
|
-
"type": "AIEmployee[]"
|
|
287
|
+
"name": "active",
|
|
288
|
+
"type": "boolean"
|
|
229
289
|
},
|
|
230
290
|
{
|
|
231
|
-
"name": "
|
|
232
|
-
"
|
|
233
|
-
"type": "Command[]"
|
|
291
|
+
"name": "disabled",
|
|
292
|
+
"type": "boolean"
|
|
234
293
|
},
|
|
235
294
|
{
|
|
236
|
-
"name": "
|
|
237
|
-
"
|
|
238
|
-
"type": "UploadOptions"
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
"events": [
|
|
242
|
-
{
|
|
243
|
-
"name": "message.submit",
|
|
244
|
-
"description": "",
|
|
245
|
-
"deprecated": "Use `chat.submit` event instead",
|
|
246
|
-
"detail": {
|
|
247
|
-
"type": "string"
|
|
248
|
-
}
|
|
295
|
+
"name": "variant",
|
|
296
|
+
"type": "IconButtonVariant"
|
|
249
297
|
},
|
|
250
298
|
{
|
|
251
|
-
"name": "
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
}
|
|
299
|
+
"name": "reduceIconSize",
|
|
300
|
+
"description": "是否缩小图标尺寸(部分 easyops 图标过大)",
|
|
301
|
+
"type": "boolean"
|
|
255
302
|
}
|
|
256
303
|
],
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
{
|
|
260
|
-
"name": "setValue",
|
|
261
|
-
"params": [
|
|
262
|
-
{
|
|
263
|
-
"name": "value",
|
|
264
|
-
"type": "string"
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "getValue",
|
|
270
|
-
"params": []
|
|
271
|
-
},
|
|
304
|
+
"events": [],
|
|
305
|
+
"slots": [
|
|
272
306
|
{
|
|
273
|
-
"name": "
|
|
274
|
-
"
|
|
307
|
+
"name": "default",
|
|
308
|
+
"description": "图标旁边的文字内容(可选)"
|
|
275
309
|
}
|
|
276
310
|
],
|
|
311
|
+
"methods": [],
|
|
277
312
|
"parts": [],
|
|
278
|
-
"description": "
|
|
313
|
+
"description": "图标按钮,支持多种视觉变体、禁用状态、Tooltip 提示及文字插槽。",
|
|
314
|
+
"category": "interact-basic"
|
|
279
315
|
},
|
|
280
316
|
{
|
|
281
|
-
"name": "ai-portal.
|
|
317
|
+
"name": "ai-portal.show-cases",
|
|
282
318
|
"properties": [
|
|
283
319
|
{
|
|
284
|
-
"name": "
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
"slots": [
|
|
320
|
+
"name": "list",
|
|
321
|
+
"description": "案例数据列表,每项可包含 scenario 字段用于分组筛选",
|
|
322
|
+
"attribute": false,
|
|
323
|
+
"type": "ShowCaseType[]"
|
|
324
|
+
},
|
|
290
325
|
{
|
|
291
|
-
"name": "
|
|
292
|
-
"description": "
|
|
326
|
+
"name": "limit",
|
|
327
|
+
"description": "每个场景分组下最多显示的案例数量",
|
|
328
|
+
"type": "number"
|
|
293
329
|
}
|
|
294
330
|
],
|
|
331
|
+
"events": [],
|
|
332
|
+
"slots": [],
|
|
295
333
|
"methods": [],
|
|
296
334
|
"parts": [],
|
|
297
|
-
"description": "
|
|
298
|
-
"category": "layout-component"
|
|
335
|
+
"description": "构件 `ai-portal.show-cases`\n\n案例列表展示构件,支持按场景分组筛选,展示多个优秀案例卡片。"
|
|
299
336
|
},
|
|
300
337
|
{
|
|
301
|
-
"name": "ai-portal.
|
|
338
|
+
"name": "ai-portal.mcp-tools",
|
|
302
339
|
"properties": [
|
|
303
340
|
{
|
|
304
|
-
"name": "
|
|
305
|
-
"
|
|
306
|
-
"type": "
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"name": "value",
|
|
310
|
-
"description": "统计数值文本",
|
|
311
|
-
"type": "string"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "size",
|
|
315
|
-
"description": "展示尺寸,medium 时图表高度为 92px,small 时为 55px",
|
|
316
|
-
"default": "\"medium\"",
|
|
317
|
-
"type": "\"medium\" | \"small\""
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "lineColor",
|
|
321
|
-
"description": "折线颜色",
|
|
322
|
-
"default": "\"var(--color-brand)\"",
|
|
323
|
-
"type": "string"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"name": "showArea",
|
|
327
|
-
"description": "是否在折线下方显示渐变填充区域",
|
|
328
|
-
"type": "boolean"
|
|
341
|
+
"name": "list",
|
|
342
|
+
"attribute": false,
|
|
343
|
+
"type": "McpTool[]"
|
|
329
344
|
},
|
|
330
345
|
{
|
|
331
|
-
"name": "
|
|
332
|
-
"description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
|
|
346
|
+
"name": "stickyTop",
|
|
333
347
|
"type": "number"
|
|
334
|
-
}
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"events": [],
|
|
351
|
+
"slots": [],
|
|
352
|
+
"methods": [],
|
|
353
|
+
"parts": [],
|
|
354
|
+
"description": "MCP 工具列表组件,按服务分组展示工具信息,支持按平台分类过滤和吸顶标签栏。",
|
|
355
|
+
"category": "display-component"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "ai-portal.ai-employees",
|
|
359
|
+
"properties": [
|
|
335
360
|
{
|
|
336
|
-
"name": "
|
|
337
|
-
"description": "
|
|
338
|
-
"
|
|
361
|
+
"name": "list",
|
|
362
|
+
"description": "数字人列表数据",
|
|
363
|
+
"attribute": false,
|
|
364
|
+
"type": "Employee[]"
|
|
339
365
|
},
|
|
340
366
|
{
|
|
341
|
-
"name": "
|
|
342
|
-
"description": "
|
|
343
|
-
"
|
|
344
|
-
"type": "string"
|
|
367
|
+
"name": "industries",
|
|
368
|
+
"description": "行业列表,用于指定 Tab 的顺序,未在此列表中的行业将按出现顺序附加在末尾",
|
|
369
|
+
"attribute": false,
|
|
370
|
+
"type": "string[]"
|
|
345
371
|
},
|
|
346
372
|
{
|
|
347
|
-
"name": "
|
|
348
|
-
"description": "
|
|
349
|
-
"default": "\"1\"",
|
|
373
|
+
"name": "urlTemplate",
|
|
374
|
+
"description": "跳转到数字人详情页的 URL 模板,支持 {name} 等数字人字段插值",
|
|
350
375
|
"type": "string"
|
|
351
376
|
},
|
|
352
377
|
{
|
|
353
|
-
"name": "
|
|
354
|
-
"description": "
|
|
355
|
-
"
|
|
356
|
-
"type": "Record<string, number>[]"
|
|
378
|
+
"name": "stickyTop",
|
|
379
|
+
"description": "行业 Tab 栏吸顶时距顶部的距离(px),不设置则不吸顶",
|
|
380
|
+
"type": "number"
|
|
357
381
|
}
|
|
358
382
|
],
|
|
359
383
|
"events": [],
|
|
360
384
|
"slots": [],
|
|
361
385
|
"methods": [],
|
|
362
386
|
"parts": [],
|
|
363
|
-
"description": "
|
|
387
|
+
"description": "AI 数字人卡片列表,按行业和角色分组展示,支持 Tab 切换行业和点击跳转。",
|
|
388
|
+
"category": "ai-portal"
|
|
364
389
|
},
|
|
365
390
|
{
|
|
366
|
-
"name": "ai-portal.
|
|
391
|
+
"name": "ai-portal.chat-stream",
|
|
367
392
|
"properties": [
|
|
368
393
|
{
|
|
369
|
-
"name": "
|
|
394
|
+
"name": "conversationId",
|
|
395
|
+
"description": "对话 ID",
|
|
370
396
|
"type": "string"
|
|
371
397
|
},
|
|
372
398
|
{
|
|
373
|
-
"name": "
|
|
374
|
-
"
|
|
399
|
+
"name": "initialRequest",
|
|
400
|
+
"description": "初始请求数据。仅初始设置有效。",
|
|
401
|
+
"attribute": false,
|
|
402
|
+
"type": "RequestStore | null"
|
|
375
403
|
},
|
|
376
404
|
{
|
|
377
|
-
"name": "
|
|
378
|
-
"
|
|
405
|
+
"name": "replay",
|
|
406
|
+
"description": "是否启用回放。仅初始设置有效。",
|
|
407
|
+
"type": "boolean"
|
|
379
408
|
},
|
|
380
409
|
{
|
|
381
|
-
"name": "
|
|
382
|
-
"
|
|
410
|
+
"name": "replayDelay",
|
|
411
|
+
"description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
|
|
412
|
+
"default": "2",
|
|
413
|
+
"type": "number"
|
|
383
414
|
},
|
|
384
415
|
{
|
|
385
|
-
"name": "
|
|
416
|
+
"name": "supports",
|
|
417
|
+
"description": "功能开关配置,键为功能名,值为是否启用",
|
|
418
|
+
"attribute": false,
|
|
419
|
+
"type": "Record<string, boolean>"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "showHumanActions",
|
|
423
|
+
"description": "是否显示 Human-in-the-loop 操作按钮",
|
|
386
424
|
"type": "boolean"
|
|
387
425
|
},
|
|
388
426
|
{
|
|
389
|
-
"name": "
|
|
390
|
-
"
|
|
427
|
+
"name": "showFeedback",
|
|
428
|
+
"description": "是否显示反馈按钮",
|
|
429
|
+
"type": "boolean"
|
|
391
430
|
},
|
|
392
431
|
{
|
|
393
|
-
"name": "
|
|
394
|
-
"
|
|
395
|
-
"type": "
|
|
432
|
+
"name": "showFeedbackAfterFailed",
|
|
433
|
+
"description": "是否在任务失败时也显示反馈按钮",
|
|
434
|
+
"type": "boolean"
|
|
396
435
|
},
|
|
397
436
|
{
|
|
398
|
-
"name": "
|
|
437
|
+
"name": "showFeedbackOnView",
|
|
438
|
+
"description": "是否在查看生成视图时显示反馈按钮",
|
|
399
439
|
"type": "boolean"
|
|
400
440
|
},
|
|
401
441
|
{
|
|
402
|
-
"name": "
|
|
403
|
-
"
|
|
442
|
+
"name": "showUiSwitch",
|
|
443
|
+
"description": "是否显示切换到画布视图的按钮",
|
|
444
|
+
"type": "boolean"
|
|
404
445
|
},
|
|
405
446
|
{
|
|
406
|
-
"name": "
|
|
407
|
-
"
|
|
408
|
-
"type": "
|
|
447
|
+
"name": "hideMermaid",
|
|
448
|
+
"description": "是否隐藏 Mermaid 图表渲染,通过 CSS 属性选择器控制样式",
|
|
449
|
+
"type": "boolean"
|
|
409
450
|
},
|
|
410
451
|
{
|
|
411
|
-
"name": "
|
|
452
|
+
"name": "previewUrlTemplate",
|
|
453
|
+
"description": "生成视图预览页的 URL 模板,支持 {viewId} 等字段插值",
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "showCases",
|
|
458
|
+
"description": "示例场景列表,用于在空对话时展示快速入口",
|
|
412
459
|
"attribute": false,
|
|
413
|
-
"type": "
|
|
460
|
+
"type": "ShowCaseType[]"
|
|
414
461
|
},
|
|
415
462
|
{
|
|
416
|
-
"name": "
|
|
463
|
+
"name": "exampleProjects",
|
|
464
|
+
"description": "示例项目列表,用于展示可参考的已有项目",
|
|
417
465
|
"attribute": false,
|
|
418
|
-
"type": "
|
|
466
|
+
"type": "ExampleProject[]"
|
|
419
467
|
},
|
|
420
468
|
{
|
|
421
|
-
"name": "
|
|
422
|
-
"
|
|
423
|
-
"
|
|
469
|
+
"name": "tryItOutUrl",
|
|
470
|
+
"description": "\"试一试\"跳转 URL",
|
|
471
|
+
"type": "string"
|
|
424
472
|
},
|
|
425
473
|
{
|
|
426
|
-
"name": "
|
|
474
|
+
"name": "aiEmployees",
|
|
475
|
+
"description": "可 @ 提及的数字人列表",
|
|
427
476
|
"attribute": false,
|
|
428
|
-
"type": "
|
|
477
|
+
"type": "AIEmployee[]"
|
|
429
478
|
},
|
|
430
479
|
{
|
|
431
|
-
"name": "
|
|
432
|
-
"description": "",
|
|
433
|
-
"
|
|
434
|
-
"type": "
|
|
480
|
+
"name": "commands",
|
|
481
|
+
"description": "命令列表,支持通过 / 或搜索触发联想",
|
|
482
|
+
"attribute": false,
|
|
483
|
+
"type": "Command[]"
|
|
435
484
|
},
|
|
436
485
|
{
|
|
437
|
-
"name": "
|
|
486
|
+
"name": "uploadOptions",
|
|
487
|
+
"description": "文件上传配置",
|
|
438
488
|
"attribute": false,
|
|
439
|
-
"type": "
|
|
489
|
+
"type": "UploadOptions"
|
|
440
490
|
}
|
|
441
491
|
],
|
|
442
492
|
"events": [
|
|
443
493
|
{
|
|
444
|
-
"name": "
|
|
494
|
+
"name": "share",
|
|
445
495
|
"description": "",
|
|
446
496
|
"detail": {
|
|
447
497
|
"description": "void",
|
|
@@ -449,620 +499,635 @@
|
|
|
449
499
|
}
|
|
450
500
|
},
|
|
451
501
|
{
|
|
452
|
-
"name": "
|
|
453
|
-
"description": "
|
|
502
|
+
"name": "terminate",
|
|
503
|
+
"description": "",
|
|
454
504
|
"detail": {
|
|
455
|
-
"description": "
|
|
456
|
-
"type": "
|
|
505
|
+
"description": "void",
|
|
506
|
+
"type": "void"
|
|
457
507
|
}
|
|
458
508
|
},
|
|
459
509
|
{
|
|
460
|
-
"name": "
|
|
461
|
-
"description": "
|
|
510
|
+
"name": "feedback.submit",
|
|
511
|
+
"description": "",
|
|
462
512
|
"detail": {
|
|
463
|
-
"description": "{
|
|
464
|
-
"type": "
|
|
513
|
+
"description": "{ plan: 计划步骤列表, result: 结果列表, feedback: 反馈文本 }",
|
|
514
|
+
"type": "FeedbackDetail"
|
|
465
515
|
}
|
|
466
516
|
},
|
|
467
517
|
{
|
|
468
|
-
"name": "
|
|
518
|
+
"name": "feedback.on.view",
|
|
469
519
|
"description": "",
|
|
470
520
|
"detail": {
|
|
471
|
-
"description": "
|
|
472
|
-
"type": "
|
|
521
|
+
"description": "生成视图的 viewId",
|
|
522
|
+
"type": "string"
|
|
473
523
|
}
|
|
474
524
|
},
|
|
475
525
|
{
|
|
476
|
-
"name": "
|
|
526
|
+
"name": "ui.switch",
|
|
477
527
|
"description": "",
|
|
478
528
|
"detail": {
|
|
479
|
-
"description": "
|
|
480
|
-
"type": "
|
|
529
|
+
"description": "切换目标 UI 模式,值为 \"canvas\"",
|
|
530
|
+
"type": "\"canvas\""
|
|
481
531
|
}
|
|
482
532
|
},
|
|
483
533
|
{
|
|
484
|
-
"name": "
|
|
485
|
-
"description": "
|
|
534
|
+
"name": "detail.change",
|
|
535
|
+
"description": "",
|
|
486
536
|
"detail": {
|
|
487
|
-
"description": "{
|
|
488
|
-
"type": "
|
|
537
|
+
"description": "{ projectId: 关联的项目 ID }",
|
|
538
|
+
"type": "ConversationDetail"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "split.change",
|
|
543
|
+
"description": "",
|
|
544
|
+
"detail": {
|
|
545
|
+
"description": "是否已切换到分屏模式",
|
|
546
|
+
"type": "boolean"
|
|
489
547
|
}
|
|
490
548
|
}
|
|
491
549
|
],
|
|
492
550
|
"slots": [],
|
|
493
551
|
"methods": [
|
|
494
552
|
{
|
|
495
|
-
"name": "
|
|
496
|
-
"params": [
|
|
497
|
-
{
|
|
498
|
-
"name": "delay",
|
|
499
|
-
"description": "拉取前的等待时长(毫秒),用于等待任务标题生成完成",
|
|
500
|
-
"type": "number"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"description": "延迟一段时间后拉取最新对话历史",
|
|
504
|
-
"returns": {}
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"name": "open",
|
|
553
|
+
"name": "resumed",
|
|
508
554
|
"params": [],
|
|
509
|
-
"description": "
|
|
555
|
+
"description": "通知组件任务已恢复,用于继续中断的对话",
|
|
510
556
|
"returns": {}
|
|
511
557
|
},
|
|
512
558
|
{
|
|
513
|
-
"name": "
|
|
559
|
+
"name": "feedbackSubmitDone",
|
|
514
560
|
"params": [],
|
|
515
|
-
"description": "
|
|
516
|
-
"returns": {}
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"name": "removeProject",
|
|
520
|
-
"params": [
|
|
521
|
-
{
|
|
522
|
-
"name": "projectId",
|
|
523
|
-
"description": "要移除的项目 instanceId",
|
|
524
|
-
"type": "string"
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
"description": "从历史列表中移除指定项目及其对话",
|
|
561
|
+
"description": "通知组件反馈提交成功",
|
|
528
562
|
"returns": {}
|
|
529
563
|
},
|
|
530
564
|
{
|
|
531
|
-
"name": "
|
|
532
|
-
"params": [
|
|
533
|
-
|
|
534
|
-
"name": "project",
|
|
535
|
-
"description": "要追加的项目对象",
|
|
536
|
-
"type": "Project"
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"description": "向项目列表中追加一个新项目",
|
|
565
|
+
"name": "feedbackSubmitFailed",
|
|
566
|
+
"params": [],
|
|
567
|
+
"description": "通知组件反馈提交失败",
|
|
540
568
|
"returns": {}
|
|
541
569
|
},
|
|
542
570
|
{
|
|
543
|
-
"name": "
|
|
571
|
+
"name": "feedbackOnViewDone",
|
|
544
572
|
"params": [
|
|
545
573
|
{
|
|
546
|
-
"name": "
|
|
547
|
-
"description": "
|
|
574
|
+
"name": "viewId",
|
|
575
|
+
"description": "对应的视图 ID",
|
|
548
576
|
"type": "string"
|
|
549
577
|
}
|
|
550
578
|
],
|
|
551
|
-
"description": "
|
|
579
|
+
"description": "通知组件查看视图的反馈处理完成",
|
|
552
580
|
"returns": {}
|
|
553
581
|
}
|
|
554
582
|
],
|
|
555
583
|
"parts": [],
|
|
556
|
-
"description": "
|
|
557
|
-
"category": "
|
|
584
|
+
"description": "AI 对话流视图,以聊天气泡形式展示对话过程,支持文件上传、命令联想、回放及用户反馈等功能。",
|
|
585
|
+
"category": "ai-portal"
|
|
558
586
|
},
|
|
559
587
|
{
|
|
560
|
-
"name": "ai-portal.
|
|
588
|
+
"name": "ai-portal.ai-agents",
|
|
561
589
|
"properties": [
|
|
562
590
|
{
|
|
563
|
-
"name": "
|
|
591
|
+
"name": "list",
|
|
592
|
+
"description": "AI Agent 列表数据",
|
|
564
593
|
"attribute": false,
|
|
565
|
-
"type": "
|
|
594
|
+
"type": "Agent[]"
|
|
566
595
|
},
|
|
567
596
|
{
|
|
568
|
-
"name": "
|
|
597
|
+
"name": "urlTemplate",
|
|
598
|
+
"description": "跳转到 Agent 详情页的 URL 模板,支持 {name} 等 Agent 字段插值",
|
|
569
599
|
"type": "string"
|
|
570
600
|
},
|
|
571
601
|
{
|
|
572
|
-
"name": "
|
|
573
|
-
"
|
|
602
|
+
"name": "withContainer",
|
|
603
|
+
"description": "",
|
|
604
|
+
"deprecated": true,
|
|
605
|
+
"default": "true"
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"events": [],
|
|
609
|
+
"slots": [],
|
|
610
|
+
"methods": [],
|
|
611
|
+
"parts": [],
|
|
612
|
+
"description": "AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。",
|
|
613
|
+
"category": "ai-portal"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "ai-portal.page-container",
|
|
617
|
+
"properties": [
|
|
618
|
+
{
|
|
619
|
+
"name": "pageTitle",
|
|
620
|
+
"description": "页面标题,同时会调用 applyPageTitle 更新浏览器标签页标题",
|
|
621
|
+
"type": "string"
|
|
574
622
|
},
|
|
575
623
|
{
|
|
576
|
-
"name": "
|
|
577
|
-
"
|
|
624
|
+
"name": "breadcrumbs",
|
|
625
|
+
"description": "面包屑导航配置,每项包含 text 和 url",
|
|
626
|
+
"attribute": false,
|
|
627
|
+
"type": "Breadcrumb[]"
|
|
578
628
|
},
|
|
579
629
|
{
|
|
580
|
-
"name": "
|
|
581
|
-
"
|
|
630
|
+
"name": "size",
|
|
631
|
+
"description": "内容区域宽度模式,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
632
|
+
"type": "\"medium\" | \"small\" | \"full\""
|
|
582
633
|
},
|
|
583
634
|
{
|
|
584
635
|
"name": "variant",
|
|
585
|
-
"
|
|
636
|
+
"description": "页面变体,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
637
|
+
"type": "\"default\" | \"form\""
|
|
586
638
|
},
|
|
587
639
|
{
|
|
588
|
-
"name": "
|
|
589
|
-
"description": "
|
|
640
|
+
"name": "sticky",
|
|
641
|
+
"description": "是否固定头部(含面包屑和标题)到页面顶部",
|
|
590
642
|
"type": "boolean"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "textContent",
|
|
646
|
+
"type": "string",
|
|
647
|
+
"description": "文本内容"
|
|
591
648
|
}
|
|
592
649
|
],
|
|
593
650
|
"events": [],
|
|
594
651
|
"slots": [
|
|
595
652
|
{
|
|
596
|
-
"name":
|
|
597
|
-
"description": "
|
|
653
|
+
"name": null,
|
|
654
|
+
"description": "内容"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "toolbar",
|
|
658
|
+
"description": "工具栏"
|
|
598
659
|
}
|
|
599
660
|
],
|
|
600
661
|
"methods": [],
|
|
601
662
|
"parts": [],
|
|
602
|
-
"description": "
|
|
603
|
-
"category": "interact-basic"
|
|
663
|
+
"description": "构件 `ai-portal.page-container`\n\n页面容器构件,提供统一的页面布局,包含面包屑导航、页面标题和内容区域。"
|
|
604
664
|
},
|
|
605
665
|
{
|
|
606
|
-
"name": "ai-portal.
|
|
666
|
+
"name": "ai-portal.tab-list",
|
|
607
667
|
"properties": [
|
|
608
668
|
{
|
|
609
|
-
"name": "
|
|
610
|
-
"description": "
|
|
669
|
+
"name": "tabs",
|
|
670
|
+
"description": "标签页配置列表,每项包含 id 和 label",
|
|
611
671
|
"attribute": false,
|
|
612
|
-
"type": "
|
|
672
|
+
"type": "Tab[]"
|
|
613
673
|
},
|
|
614
674
|
{
|
|
615
|
-
"name": "
|
|
616
|
-
"description": "
|
|
617
|
-
"
|
|
675
|
+
"name": "activeTab",
|
|
676
|
+
"description": "当前激活的标签页 id",
|
|
677
|
+
"attribute": false,
|
|
678
|
+
"type": "string"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"events": [
|
|
682
|
+
{
|
|
683
|
+
"name": "tab.click",
|
|
684
|
+
"description": "",
|
|
685
|
+
"detail": {
|
|
686
|
+
"description": "{ id: 标签页ID, label: 标签页标题 }",
|
|
687
|
+
"type": "Tab"
|
|
688
|
+
}
|
|
618
689
|
}
|
|
619
690
|
],
|
|
620
|
-
"events": [],
|
|
621
691
|
"slots": [],
|
|
622
692
|
"methods": [],
|
|
623
|
-
"parts": [
|
|
624
|
-
"description": "构件 `ai-portal.show-cases`\n\n案例列表展示构件,支持按场景分组筛选,展示多个优秀案例卡片。"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"name": "ai-portal.mcp-tools",
|
|
628
|
-
"properties": [
|
|
693
|
+
"parts": [
|
|
629
694
|
{
|
|
630
|
-
"name": "
|
|
631
|
-
"
|
|
632
|
-
"type": "McpTool[]"
|
|
695
|
+
"name": "tabs",
|
|
696
|
+
"description": "The tab list container"
|
|
633
697
|
},
|
|
634
698
|
{
|
|
635
|
-
"name": "
|
|
636
|
-
"
|
|
699
|
+
"name": "tab",
|
|
700
|
+
"description": "The individual tab"
|
|
637
701
|
}
|
|
638
702
|
],
|
|
639
|
-
"
|
|
640
|
-
"slots": [],
|
|
641
|
-
"methods": [],
|
|
642
|
-
"parts": [],
|
|
643
|
-
"description": "MCP 工具列表组件,按服务分组展示工具信息,支持按平台分类过滤和吸顶标签栏。",
|
|
644
|
-
"category": "display-component"
|
|
703
|
+
"description": "构件 `ai-portal.tab-list`\n\n标签页列表构件,展示可切换的标签页,点击后触发事件并自动更新选中状态。"
|
|
645
704
|
},
|
|
646
705
|
{
|
|
647
|
-
"name": "ai-portal.
|
|
706
|
+
"name": "ai-portal.dropdown-select",
|
|
648
707
|
"properties": [
|
|
649
708
|
{
|
|
650
|
-
"name": "
|
|
651
|
-
"description": "对话 ID",
|
|
709
|
+
"name": "value",
|
|
652
710
|
"type": "string"
|
|
653
711
|
},
|
|
654
712
|
{
|
|
655
|
-
"name": "
|
|
656
|
-
"description": "初始请求数据。仅初始设置有效。",
|
|
713
|
+
"name": "options",
|
|
657
714
|
"attribute": false,
|
|
658
|
-
"type": "
|
|
715
|
+
"type": "DropdownOptions[]"
|
|
659
716
|
},
|
|
660
717
|
{
|
|
661
|
-
"name": "
|
|
662
|
-
"
|
|
663
|
-
"type": "
|
|
718
|
+
"name": "labelMaxWidth",
|
|
719
|
+
"attribute": false,
|
|
720
|
+
"type": "string | number"
|
|
664
721
|
},
|
|
665
722
|
{
|
|
666
|
-
"name": "
|
|
667
|
-
"
|
|
668
|
-
"default": "2",
|
|
669
|
-
"type": "number"
|
|
723
|
+
"name": "loading",
|
|
724
|
+
"type": "boolean"
|
|
670
725
|
},
|
|
671
726
|
{
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "功能开关配置,键为功能名,值为是否启用",
|
|
727
|
+
"name": "searchPlaceholder",
|
|
674
728
|
"attribute": false,
|
|
675
|
-
"type": "
|
|
729
|
+
"type": "string"
|
|
676
730
|
},
|
|
677
731
|
{
|
|
678
|
-
"name": "
|
|
679
|
-
"
|
|
680
|
-
"type": "
|
|
732
|
+
"name": "dropdownContentStyle",
|
|
733
|
+
"attribute": false,
|
|
734
|
+
"type": "React.CSSProperties"
|
|
681
735
|
},
|
|
682
736
|
{
|
|
683
|
-
"name": "
|
|
684
|
-
"description": "
|
|
685
|
-
"
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
"name": "showFeedbackAfterFailed",
|
|
689
|
-
"description": "是否在任务失败时也显示反馈按钮",
|
|
690
|
-
"type": "boolean"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"name": "showFeedbackOnView",
|
|
694
|
-
"description": "是否在查看生成视图时显示反馈按钮",
|
|
695
|
-
"type": "boolean"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"name": "showUiSwitch",
|
|
699
|
-
"description": "是否显示切换到画布视图的按钮",
|
|
700
|
-
"type": "boolean"
|
|
737
|
+
"name": "dropdownMaxWidth",
|
|
738
|
+
"description": "",
|
|
739
|
+
"default": "\"500px\"",
|
|
740
|
+
"attribute": false,
|
|
741
|
+
"type": "string | number"
|
|
701
742
|
},
|
|
702
743
|
{
|
|
703
|
-
"name": "
|
|
704
|
-
"description": "
|
|
744
|
+
"name": "showSearch",
|
|
745
|
+
"description": "是否展示搜索框",
|
|
705
746
|
"type": "boolean"
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
"description": "生成视图预览页的 URL 模板,支持 {viewId} 等字段插值",
|
|
710
|
-
"type": "string"
|
|
711
|
-
},
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
"events": [
|
|
712
750
|
{
|
|
713
|
-
"name": "
|
|
714
|
-
"description": "
|
|
715
|
-
"
|
|
716
|
-
|
|
717
|
-
|
|
751
|
+
"name": "change",
|
|
752
|
+
"description": "",
|
|
753
|
+
"detail": {
|
|
754
|
+
"description": "{ label: 选项标签, value: 选项值 }",
|
|
755
|
+
"type": "DropdownOptions"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"slots": [],
|
|
760
|
+
"methods": [],
|
|
761
|
+
"parts": [],
|
|
762
|
+
"description": "下拉选择器,提供选项列表供用户选择,支持搜索过滤功能。",
|
|
763
|
+
"category": "interact-basic"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "ai-portal.preview-container",
|
|
767
|
+
"properties": [
|
|
718
768
|
{
|
|
719
|
-
"name": "
|
|
720
|
-
"description": "
|
|
769
|
+
"name": "source",
|
|
770
|
+
"description": "TSX 源码字符串,将被解析并渲染为页面视图",
|
|
721
771
|
"attribute": false,
|
|
722
|
-
"type": "ExampleProject[]"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"name": "tryItOutUrl",
|
|
726
|
-
"description": "\"试一试\"跳转 URL",
|
|
727
772
|
"type": "string"
|
|
728
773
|
},
|
|
729
774
|
{
|
|
730
|
-
"name": "
|
|
731
|
-
"description": "
|
|
732
|
-
"
|
|
733
|
-
|
|
734
|
-
|
|
775
|
+
"name": "url",
|
|
776
|
+
"description": "渲染上下文中可访问的 URL,传入后可在视图内通过路由相关 API 使用",
|
|
777
|
+
"type": "string"
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
"events": [],
|
|
781
|
+
"slots": [],
|
|
782
|
+
"methods": [],
|
|
783
|
+
"parts": [],
|
|
784
|
+
"description": "构件 `ai-portal.preview-container`\n\nTSX 源码预览容器,将 TSX 源码字符串解析并渲染为完整的页面视图。"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "ai-portal.action-buttons",
|
|
788
|
+
"properties": [
|
|
735
789
|
{
|
|
736
|
-
"name": "
|
|
737
|
-
"description": "
|
|
790
|
+
"name": "items",
|
|
791
|
+
"description": "按钮列表配置,每项包含文本、唯一键值及可选图标",
|
|
738
792
|
"attribute": false,
|
|
739
|
-
"type": "
|
|
793
|
+
"type": "ActionItem[]"
|
|
740
794
|
},
|
|
741
795
|
{
|
|
742
|
-
"name": "
|
|
743
|
-
"description": "
|
|
744
|
-
"
|
|
745
|
-
"type": "UploadOptions"
|
|
796
|
+
"name": "activeKey",
|
|
797
|
+
"description": "当前选中按钮的键值,选中后显示删除图标,再次点击可取消选中",
|
|
798
|
+
"type": "string | null"
|
|
746
799
|
}
|
|
747
800
|
],
|
|
748
801
|
"events": [
|
|
749
802
|
{
|
|
750
|
-
"name": "
|
|
803
|
+
"name": "change",
|
|
751
804
|
"description": "",
|
|
752
805
|
"detail": {
|
|
753
|
-
"description": "
|
|
754
|
-
"type": "
|
|
806
|
+
"description": "{ key: 按钮键值, text: 按钮文本, icon: 按钮图标 } | null — 选中时为选中的 ActionItem,取消选中时为 null",
|
|
807
|
+
"type": "ActionItem | null"
|
|
755
808
|
}
|
|
756
|
-
}
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
"slots": [],
|
|
812
|
+
"methods": [],
|
|
813
|
+
"parts": [],
|
|
814
|
+
"description": "动作按钮组,支持选中状态切换,用于聊天框的功能入口。",
|
|
815
|
+
"category": "ai-portal"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"name": "ai-portal.goal-card-list",
|
|
819
|
+
"properties": [
|
|
757
820
|
{
|
|
758
|
-
"name": "
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"description": "void",
|
|
762
|
-
"type": "void"
|
|
763
|
-
}
|
|
821
|
+
"name": "goalList",
|
|
822
|
+
"attribute": false,
|
|
823
|
+
"type": "GoalItem[]"
|
|
764
824
|
},
|
|
765
825
|
{
|
|
766
|
-
"name": "
|
|
767
|
-
"
|
|
768
|
-
"
|
|
769
|
-
"description": "{ plan: 计划步骤列表, result: 结果列表, feedback: 反馈文本 }",
|
|
770
|
-
"type": "FeedbackDetail"
|
|
771
|
-
}
|
|
826
|
+
"name": "cardStyle",
|
|
827
|
+
"attribute": false,
|
|
828
|
+
"type": "React.CSSProperties"
|
|
772
829
|
},
|
|
773
830
|
{
|
|
774
|
-
"name": "
|
|
831
|
+
"name": "activeKey",
|
|
832
|
+
"type": "string"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"events": [
|
|
836
|
+
{
|
|
837
|
+
"name": "item.click",
|
|
775
838
|
"description": "",
|
|
776
839
|
"detail": {
|
|
777
|
-
"description": "
|
|
778
|
-
"type": "
|
|
840
|
+
"description": "{ title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
841
|
+
"type": "GoalItem"
|
|
779
842
|
}
|
|
780
843
|
},
|
|
781
844
|
{
|
|
782
|
-
"name": "
|
|
845
|
+
"name": "item.status.change",
|
|
783
846
|
"description": "",
|
|
784
847
|
"detail": {
|
|
785
|
-
"description": "
|
|
786
|
-
"type": "
|
|
848
|
+
"description": "{ title: 目标标题, state: 更新后的目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
849
|
+
"type": "GoalItem"
|
|
787
850
|
}
|
|
788
851
|
},
|
|
789
852
|
{
|
|
790
|
-
"name": "
|
|
853
|
+
"name": "item.title.change",
|
|
791
854
|
"description": "",
|
|
792
855
|
"detail": {
|
|
793
|
-
"description": "{
|
|
794
|
-
"type": "
|
|
856
|
+
"description": "{ title: 更新后的标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
857
|
+
"type": "GoalItem"
|
|
795
858
|
}
|
|
796
859
|
},
|
|
797
860
|
{
|
|
798
|
-
"name": "
|
|
861
|
+
"name": "item.new.chat",
|
|
799
862
|
"description": "",
|
|
800
863
|
"detail": {
|
|
801
|
-
"description": "
|
|
802
|
-
"type": "
|
|
864
|
+
"description": "{ title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
865
|
+
"type": "GoalItem"
|
|
803
866
|
}
|
|
804
867
|
}
|
|
805
868
|
],
|
|
806
869
|
"slots": [],
|
|
807
870
|
"methods": [
|
|
808
871
|
{
|
|
809
|
-
"name": "
|
|
810
|
-
"params": [],
|
|
811
|
-
"description": "通知组件任务已恢复,用于继续中断的对话",
|
|
812
|
-
"returns": {}
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
"name": "feedbackSubmitDone",
|
|
816
|
-
"params": [],
|
|
817
|
-
"description": "通知组件反馈提交成功",
|
|
818
|
-
"returns": {}
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "feedbackSubmitFailed",
|
|
822
|
-
"params": [],
|
|
823
|
-
"description": "通知组件反馈提交失败",
|
|
824
|
-
"returns": {}
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"name": "feedbackOnViewDone",
|
|
872
|
+
"name": "appendChildDone",
|
|
828
873
|
"params": [
|
|
829
874
|
{
|
|
830
|
-
"name": "
|
|
831
|
-
"description": "
|
|
875
|
+
"name": "pendingId",
|
|
876
|
+
"description": "待定子目标的临时 instanceId",
|
|
832
877
|
"type": "string"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "newItem",
|
|
881
|
+
"description": "创建完成后的真实目标数据",
|
|
882
|
+
"type": "GoalItem"
|
|
833
883
|
}
|
|
834
884
|
],
|
|
835
|
-
"description": "
|
|
885
|
+
"description": "将待定子目标提交为正式目标项",
|
|
836
886
|
"returns": {}
|
|
837
887
|
}
|
|
838
888
|
],
|
|
839
889
|
"parts": [],
|
|
840
|
-
"description": "
|
|
841
|
-
"category": "
|
|
890
|
+
"description": "目标卡片列表,以分层卡片形式展示目标项,支持内联编辑标题、状态切换、新建对话及追加子目标。",
|
|
891
|
+
"category": "display-component"
|
|
842
892
|
},
|
|
843
893
|
{
|
|
844
|
-
"name": "ai-portal.
|
|
894
|
+
"name": "ai-portal.project-conversations",
|
|
845
895
|
"properties": [
|
|
846
896
|
{
|
|
847
897
|
"name": "list",
|
|
848
|
-
"description": "数字人列表数据",
|
|
849
898
|
"attribute": false,
|
|
850
|
-
"type": "
|
|
899
|
+
"type": "Conversation[]"
|
|
851
900
|
},
|
|
852
901
|
{
|
|
853
|
-
"name": "
|
|
854
|
-
"
|
|
902
|
+
"name": "urlTemplate",
|
|
903
|
+
"type": "string"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"name": "actions",
|
|
855
907
|
"attribute": false,
|
|
856
|
-
"type": "
|
|
908
|
+
"type": "ActionType[]"
|
|
857
909
|
},
|
|
858
910
|
{
|
|
859
|
-
"name": "
|
|
860
|
-
"
|
|
861
|
-
"type": "
|
|
911
|
+
"name": "goals",
|
|
912
|
+
"attribute": false,
|
|
913
|
+
"type": "Goal[]"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"events": [
|
|
917
|
+
{
|
|
918
|
+
"name": "goal.click",
|
|
919
|
+
"detail": {
|
|
920
|
+
"type": "Conversation"
|
|
921
|
+
}
|
|
862
922
|
},
|
|
863
923
|
{
|
|
864
|
-
"name": "
|
|
865
|
-
"
|
|
866
|
-
|
|
924
|
+
"name": "action.click",
|
|
925
|
+
"detail": {
|
|
926
|
+
"type": "ActionClickDetail"
|
|
927
|
+
}
|
|
867
928
|
}
|
|
868
929
|
],
|
|
869
|
-
"events": [],
|
|
870
930
|
"slots": [],
|
|
871
931
|
"methods": [],
|
|
872
932
|
"parts": [],
|
|
873
|
-
"description": "
|
|
874
|
-
"category": "ai-portal"
|
|
933
|
+
"description": "构件 `ai-portal.project-conversations`"
|
|
875
934
|
},
|
|
876
935
|
{
|
|
877
|
-
"name": "ai-portal.
|
|
936
|
+
"name": "ai-portal.project-knowledges",
|
|
878
937
|
"properties": [
|
|
879
938
|
{
|
|
880
939
|
"name": "list",
|
|
881
|
-
"description": "
|
|
940
|
+
"description": "知识列表数据,为 undefined 时显示加载状态",
|
|
882
941
|
"attribute": false,
|
|
883
|
-
"type": "
|
|
942
|
+
"type": "Knowledge[]"
|
|
884
943
|
},
|
|
885
944
|
{
|
|
886
945
|
"name": "urlTemplate",
|
|
887
|
-
"description": "
|
|
946
|
+
"description": "知识详情链接模板,支持使用知识字段插值",
|
|
888
947
|
"type": "string"
|
|
889
948
|
},
|
|
890
949
|
{
|
|
891
|
-
"name": "
|
|
892
|
-
"description": "",
|
|
893
|
-
"
|
|
894
|
-
"
|
|
950
|
+
"name": "actions",
|
|
951
|
+
"description": "操作菜单配置,每条知识行尾显示可操作的菜单项",
|
|
952
|
+
"attribute": false,
|
|
953
|
+
"type": "ActionType[]"
|
|
895
954
|
}
|
|
896
955
|
],
|
|
897
|
-
"events": [
|
|
898
|
-
"slots": [],
|
|
899
|
-
"methods": [],
|
|
900
|
-
"parts": [],
|
|
901
|
-
"description": "AI Agents 卡片列表,展示可用的 AI 智能体,支持点击跳转到对应详情页。",
|
|
902
|
-
"category": "ai-portal"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "ai-portal.page-container",
|
|
906
|
-
"properties": [
|
|
907
|
-
{
|
|
908
|
-
"name": "pageTitle",
|
|
909
|
-
"description": "页面标题,同时会调用 applyPageTitle 更新浏览器标签页标题",
|
|
910
|
-
"type": "string"
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
"name": "breadcrumbs",
|
|
914
|
-
"description": "面包屑导航配置,每项包含 text 和 url",
|
|
915
|
-
"attribute": false,
|
|
916
|
-
"type": "Breadcrumb[]"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"name": "size",
|
|
920
|
-
"description": "内容区域宽度模式,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
921
|
-
"type": "\"medium\" | \"small\" | \"full\""
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"name": "variant",
|
|
925
|
-
"description": "页面变体,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
926
|
-
"type": "\"default\" | \"form\""
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"name": "sticky",
|
|
930
|
-
"description": "是否固定头部(含面包屑和标题)到页面顶部",
|
|
931
|
-
"type": "boolean"
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
"name": "textContent",
|
|
935
|
-
"type": "string",
|
|
936
|
-
"description": "文本内容"
|
|
937
|
-
}
|
|
938
|
-
],
|
|
939
|
-
"events": [],
|
|
940
|
-
"slots": [
|
|
956
|
+
"events": [
|
|
941
957
|
{
|
|
942
|
-
"name":
|
|
943
|
-
"description": "
|
|
958
|
+
"name": "action.click",
|
|
959
|
+
"description": "",
|
|
960
|
+
"detail": {
|
|
961
|
+
"description": "{ action: 操作项配置, item: 所属知识数据 }",
|
|
962
|
+
"type": "ActionClickDetail"
|
|
963
|
+
}
|
|
944
964
|
},
|
|
945
965
|
{
|
|
946
|
-
"name": "
|
|
947
|
-
"description": "
|
|
966
|
+
"name": "item.click",
|
|
967
|
+
"description": "",
|
|
968
|
+
"detail": {
|
|
969
|
+
"description": "{ instanceId: 知识ID, name: 知识名称, description: 描述, time: 时间戳, user: 创建人 }",
|
|
970
|
+
"type": "Knowledge"
|
|
971
|
+
}
|
|
948
972
|
}
|
|
949
973
|
],
|
|
974
|
+
"slots": [],
|
|
950
975
|
"methods": [],
|
|
951
976
|
"parts": [],
|
|
952
|
-
"description": "构件 `ai-portal.
|
|
977
|
+
"description": "构件 `ai-portal.project-knowledges`\n\n项目知识库列表构件,展示项目中的知识条目,支持操作菜单和点击跳转。"
|
|
953
978
|
},
|
|
954
979
|
{
|
|
955
|
-
"name": "ai-portal.
|
|
980
|
+
"name": "ai-portal.activity-timeline",
|
|
956
981
|
"properties": [
|
|
957
982
|
{
|
|
958
|
-
"name": "
|
|
959
|
-
"description": "
|
|
983
|
+
"name": "list",
|
|
984
|
+
"description": "活动记录列表",
|
|
960
985
|
"attribute": false,
|
|
961
|
-
"type": "
|
|
986
|
+
"type": "Activity[]"
|
|
962
987
|
},
|
|
963
988
|
{
|
|
964
|
-
"name": "
|
|
965
|
-
"description": "
|
|
966
|
-
"attribute": false,
|
|
989
|
+
"name": "chatUrlTemplate",
|
|
990
|
+
"description": "跳转到对话详情页的 URL 模板,支持 {conversation_id} 等活动记录字段插值",
|
|
967
991
|
"type": "string"
|
|
968
992
|
}
|
|
969
993
|
],
|
|
970
|
-
"events": [
|
|
971
|
-
{
|
|
972
|
-
"name": "tab.click",
|
|
973
|
-
"description": "",
|
|
974
|
-
"detail": {
|
|
975
|
-
"description": "{ id: 标签页ID, label: 标签页标题 }",
|
|
976
|
-
"type": "Tab"
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
],
|
|
994
|
+
"events": [],
|
|
980
995
|
"slots": [],
|
|
981
996
|
"methods": [],
|
|
982
|
-
"parts": [
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
"description": "The tab list container"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"name": "tab",
|
|
989
|
-
"description": "The individual tab"
|
|
990
|
-
}
|
|
991
|
-
],
|
|
992
|
-
"description": "构件 `ai-portal.tab-list`\n\n标签页列表构件,展示可切换的标签页,点击后触发事件并自动更新选中状态。"
|
|
997
|
+
"parts": [],
|
|
998
|
+
"description": "活动时间线,展示目标的操作历史记录,支持多种动作类型的可视化展示。",
|
|
999
|
+
"category": "ai-portal"
|
|
993
1000
|
},
|
|
994
1001
|
{
|
|
995
|
-
"name": "ai-portal.
|
|
1002
|
+
"name": "ai-portal.chat-input",
|
|
996
1003
|
"properties": [
|
|
997
1004
|
{
|
|
998
|
-
"name": "
|
|
1005
|
+
"name": "placeholder",
|
|
1006
|
+
"description": "输入框占位文字",
|
|
999
1007
|
"type": "string"
|
|
1000
1008
|
},
|
|
1001
1009
|
{
|
|
1002
|
-
"name": "
|
|
1003
|
-
"
|
|
1004
|
-
"type": "
|
|
1010
|
+
"name": "autoFocus",
|
|
1011
|
+
"description": "是否自动聚焦",
|
|
1012
|
+
"type": "boolean"
|
|
1005
1013
|
},
|
|
1006
1014
|
{
|
|
1007
|
-
"name": "
|
|
1008
|
-
"
|
|
1009
|
-
"type": "
|
|
1015
|
+
"name": "submitDisabled",
|
|
1016
|
+
"description": "是否禁用发送按钮,通常在 AI 正在处理时设为 true",
|
|
1017
|
+
"type": "boolean"
|
|
1010
1018
|
},
|
|
1011
1019
|
{
|
|
1012
|
-
"name": "
|
|
1020
|
+
"name": "supportsTerminate",
|
|
1021
|
+
"description": "是否显示终止任务按钮,需与 submitDisabled 配合使用",
|
|
1013
1022
|
"type": "boolean"
|
|
1014
1023
|
},
|
|
1015
1024
|
{
|
|
1016
|
-
"name": "
|
|
1025
|
+
"name": "terminating",
|
|
1026
|
+
"description": "是否正在终止任务,为 true 时显示加载状态",
|
|
1027
|
+
"type": "boolean"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"name": "autoFade",
|
|
1031
|
+
"description": "是否在输入框为空时自动淡出,通过 CSS 属性选择器控制样式",
|
|
1032
|
+
"type": "boolean"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "uploadOptions",
|
|
1036
|
+
"description": "文件上传配置",
|
|
1017
1037
|
"attribute": false,
|
|
1018
|
-
"type": "
|
|
1038
|
+
"type": "UploadOptions"
|
|
1019
1039
|
},
|
|
1020
1040
|
{
|
|
1021
|
-
"name": "
|
|
1041
|
+
"name": "aiEmployees",
|
|
1042
|
+
"description": "可 @ 提及的数字人列表",
|
|
1022
1043
|
"attribute": false,
|
|
1023
|
-
"type": "
|
|
1044
|
+
"type": "AIEmployee[]"
|
|
1024
1045
|
},
|
|
1025
1046
|
{
|
|
1026
|
-
"name": "
|
|
1027
|
-
"description": "",
|
|
1028
|
-
"default": "\"500px\"",
|
|
1047
|
+
"name": "commands",
|
|
1048
|
+
"description": "命令列表,支持通过 / 或搜索触发联想",
|
|
1029
1049
|
"attribute": false,
|
|
1030
|
-
"type": "
|
|
1050
|
+
"type": "Command[]"
|
|
1031
1051
|
},
|
|
1032
1052
|
{
|
|
1033
|
-
"name": "
|
|
1034
|
-
"description": "
|
|
1035
|
-
"
|
|
1053
|
+
"name": "suggestionsPlacement",
|
|
1054
|
+
"description": "命令/提及联想弹出层的显示位置",
|
|
1055
|
+
"default": "\"bottom\"",
|
|
1056
|
+
"type": "\"top\" | \"bottom\""
|
|
1036
1057
|
}
|
|
1037
1058
|
],
|
|
1038
1059
|
"events": [
|
|
1039
1060
|
{
|
|
1040
|
-
"name": "
|
|
1061
|
+
"name": "message.submit",
|
|
1041
1062
|
"description": "",
|
|
1063
|
+
"deprecated": "Use `chat.submit` event instead",
|
|
1042
1064
|
"detail": {
|
|
1043
|
-
"description": "
|
|
1044
|
-
"type": "
|
|
1065
|
+
"description": "用户输入的消息文本内容",
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"name": "chat.submit",
|
|
1071
|
+
"description": "",
|
|
1072
|
+
"detail": {
|
|
1073
|
+
"description": "{ content: 消息内容, files: 上传的文件列表, cmd: 命令载荷, aiEmployeeId: @提及的数字人 ID }",
|
|
1074
|
+
"type": "ChatPayload"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "terminate",
|
|
1079
|
+
"description": "",
|
|
1080
|
+
"detail": {
|
|
1081
|
+
"description": "void",
|
|
1082
|
+
"type": "void"
|
|
1045
1083
|
}
|
|
1046
1084
|
}
|
|
1047
1085
|
],
|
|
1048
1086
|
"slots": [],
|
|
1087
|
+
"methods": [
|
|
1088
|
+
{
|
|
1089
|
+
"name": "setValue",
|
|
1090
|
+
"params": [
|
|
1091
|
+
{
|
|
1092
|
+
"name": "value",
|
|
1093
|
+
"description": "要设置的文本内容",
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
"description": "设置输入框的值并聚焦",
|
|
1098
|
+
"returns": {}
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
"parts": [],
|
|
1102
|
+
"description": "小型聊天输入框,用于对话等页面,支持命令联想、@提及数字人、文件上传及终止任务等功能。",
|
|
1103
|
+
"category": "ai-portal"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"name": "ai-portal.elevo-logo",
|
|
1107
|
+
"properties": [],
|
|
1108
|
+
"events": [],
|
|
1109
|
+
"slots": [],
|
|
1049
1110
|
"methods": [],
|
|
1050
1111
|
"parts": [],
|
|
1051
|
-
"description": "
|
|
1052
|
-
"category": "
|
|
1112
|
+
"description": "Elevo 品牌 Logo 图片组件,固定展示 Elevo logo(95×28px)。",
|
|
1113
|
+
"category": "display-component"
|
|
1053
1114
|
},
|
|
1054
1115
|
{
|
|
1055
|
-
"name": "ai-portal.
|
|
1116
|
+
"name": "ai-portal.show-case",
|
|
1056
1117
|
"properties": [
|
|
1057
1118
|
{
|
|
1058
|
-
"name": "
|
|
1059
|
-
"description": "
|
|
1060
|
-
"
|
|
1119
|
+
"name": "caseTitle",
|
|
1120
|
+
"description": "案例标题,同时用于计算卡片背景色",
|
|
1121
|
+
"type": "string"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "summary",
|
|
1125
|
+
"description": "案例摘要描述",
|
|
1061
1126
|
"type": "string"
|
|
1062
1127
|
},
|
|
1063
1128
|
{
|
|
1064
1129
|
"name": "url",
|
|
1065
|
-
"description": "
|
|
1130
|
+
"description": "点击卡片跳转的目标链接",
|
|
1066
1131
|
"type": "string"
|
|
1067
1132
|
}
|
|
1068
1133
|
],
|
|
@@ -1070,558 +1135,204 @@
|
|
|
1070
1135
|
"slots": [],
|
|
1071
1136
|
"methods": [],
|
|
1072
1137
|
"parts": [],
|
|
1073
|
-
"description": "构件 `ai-portal.
|
|
1138
|
+
"description": "构件 `ai-portal.show-case`\n\n案例展示卡片构件,以彩色背景卡片展示单个优秀案例,点击可跳转到案例详情。"
|
|
1074
1139
|
},
|
|
1075
1140
|
{
|
|
1076
|
-
"name": "ai-portal.
|
|
1141
|
+
"name": "ai-portal.blank-state",
|
|
1077
1142
|
"properties": [
|
|
1078
1143
|
{
|
|
1079
|
-
"name": "
|
|
1080
|
-
"description": "
|
|
1081
|
-
"
|
|
1082
|
-
"type": "ActionItem[]"
|
|
1144
|
+
"name": "illustration",
|
|
1145
|
+
"description": "插画类型,可选 \"goals\"、\"activities\"、\"collaboration-spaces\"、\"serviceflows\",默认使用 activities 插画",
|
|
1146
|
+
"type": "BlankStateIllustration"
|
|
1083
1147
|
},
|
|
1084
1148
|
{
|
|
1085
|
-
"name": "
|
|
1086
|
-
"description": "
|
|
1087
|
-
"type": "string
|
|
1088
|
-
}
|
|
1089
|
-
],
|
|
1090
|
-
"events": [
|
|
1091
|
-
{
|
|
1092
|
-
"name": "change",
|
|
1093
|
-
"description": "",
|
|
1094
|
-
"detail": {
|
|
1095
|
-
"description": "{ key: 按钮键值, text: 按钮文本, icon: 按钮图标 } | null — 选中时为选中的 ActionItem,取消选中时为 null",
|
|
1096
|
-
"type": "ActionItem | null"
|
|
1097
|
-
}
|
|
1149
|
+
"name": "description",
|
|
1150
|
+
"description": "描述文字",
|
|
1151
|
+
"type": "string"
|
|
1098
1152
|
}
|
|
1099
1153
|
],
|
|
1154
|
+
"events": [],
|
|
1100
1155
|
"slots": [],
|
|
1101
1156
|
"methods": [],
|
|
1102
1157
|
"parts": [],
|
|
1103
|
-
"description": "
|
|
1158
|
+
"description": "空状态展示组件,提供预置插画和描述文字,并支持通过默认插槽插入自定义内容。",
|
|
1104
1159
|
"category": "ai-portal"
|
|
1105
1160
|
},
|
|
1106
1161
|
{
|
|
1107
|
-
"name": "ai-portal.
|
|
1162
|
+
"name": "ai-portal.sticky-container",
|
|
1108
1163
|
"properties": [
|
|
1109
1164
|
{
|
|
1110
|
-
"name": "
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1165
|
+
"name": "variant",
|
|
1166
|
+
"description": "变体风格,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
1167
|
+
"default": "\"default\"",
|
|
1168
|
+
"type": "StickyContainerVariant"
|
|
1113
1169
|
},
|
|
1114
1170
|
{
|
|
1115
|
-
"name": "
|
|
1116
|
-
"type": "string"
|
|
1117
|
-
|
|
1118
|
-
{
|
|
1119
|
-
"name": "actions",
|
|
1120
|
-
"attribute": false,
|
|
1121
|
-
"type": "ActionType[]"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
"name": "goals",
|
|
1125
|
-
"attribute": false,
|
|
1126
|
-
"type": "Goal[]"
|
|
1171
|
+
"name": "textContent",
|
|
1172
|
+
"type": "string",
|
|
1173
|
+
"description": "文本内容"
|
|
1127
1174
|
}
|
|
1128
1175
|
],
|
|
1129
|
-
"events": [
|
|
1176
|
+
"events": [],
|
|
1177
|
+
"slots": [
|
|
1130
1178
|
{
|
|
1131
|
-
"name":
|
|
1132
|
-
"
|
|
1133
|
-
"type": "Conversation"
|
|
1134
|
-
}
|
|
1179
|
+
"name": null,
|
|
1180
|
+
"description": "内容"
|
|
1135
1181
|
},
|
|
1136
1182
|
{
|
|
1137
|
-
"name": "
|
|
1138
|
-
"
|
|
1139
|
-
|
|
1140
|
-
|
|
1183
|
+
"name": "header",
|
|
1184
|
+
"description": "头部"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "toolbar",
|
|
1188
|
+
"description": "工具栏"
|
|
1141
1189
|
}
|
|
1142
1190
|
],
|
|
1143
|
-
"slots": [],
|
|
1144
1191
|
"methods": [],
|
|
1145
1192
|
"parts": [],
|
|
1146
|
-
"description": "构件 `ai-portal.
|
|
1193
|
+
"description": "构件 `ai-portal.sticky-container`\n\n粘性容器构件,使内容在页面滚动时固定在顶部。"
|
|
1147
1194
|
},
|
|
1148
1195
|
{
|
|
1149
|
-
"name": "ai-portal.
|
|
1196
|
+
"name": "ai-portal.elevo-card",
|
|
1150
1197
|
"properties": [
|
|
1151
1198
|
{
|
|
1152
|
-
"name": "
|
|
1153
|
-
"
|
|
1154
|
-
"type": "GoalItem[]"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "cardStyle",
|
|
1158
|
-
"attribute": false,
|
|
1159
|
-
"type": "React.CSSProperties"
|
|
1199
|
+
"name": "cardTitle",
|
|
1200
|
+
"type": "string"
|
|
1160
1201
|
},
|
|
1161
1202
|
{
|
|
1162
|
-
"name": "
|
|
1203
|
+
"name": "description",
|
|
1163
1204
|
"type": "string"
|
|
1164
|
-
}
|
|
1165
|
-
],
|
|
1166
|
-
"events": [
|
|
1167
|
-
{
|
|
1168
|
-
"name": "item.click",
|
|
1169
|
-
"description": "",
|
|
1170
|
-
"detail": {
|
|
1171
|
-
"description": "{ title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
1172
|
-
"type": "GoalItem"
|
|
1173
|
-
}
|
|
1174
1205
|
},
|
|
1175
1206
|
{
|
|
1176
|
-
"name": "
|
|
1177
|
-
"
|
|
1178
|
-
"detail": {
|
|
1179
|
-
"description": "{ title: 目标标题, state: 更新后的目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
1180
|
-
"type": "GoalItem"
|
|
1181
|
-
}
|
|
1207
|
+
"name": "url",
|
|
1208
|
+
"type": "string"
|
|
1182
1209
|
},
|
|
1183
1210
|
{
|
|
1184
|
-
"name": "
|
|
1185
|
-
"
|
|
1186
|
-
"
|
|
1187
|
-
"description": "{ title: 更新后的标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
1188
|
-
"type": "GoalItem"
|
|
1189
|
-
}
|
|
1211
|
+
"name": "avatar",
|
|
1212
|
+
"attribute": false,
|
|
1213
|
+
"type": "string | GeneralIconProps"
|
|
1190
1214
|
},
|
|
1191
1215
|
{
|
|
1192
|
-
"name": "
|
|
1193
|
-
"
|
|
1194
|
-
"detail": {
|
|
1195
|
-
"description": "{ title: 目标标题, state: 目标状态, id: 序号, instanceId: 实例ID, level: 层级 }",
|
|
1196
|
-
"type": "GoalItem"
|
|
1197
|
-
}
|
|
1216
|
+
"name": "avatarType",
|
|
1217
|
+
"type": "\"icon\" | \"image\""
|
|
1198
1218
|
}
|
|
1199
1219
|
],
|
|
1200
|
-
"
|
|
1201
|
-
"
|
|
1220
|
+
"events": [],
|
|
1221
|
+
"slots": [
|
|
1202
1222
|
{
|
|
1203
|
-
"name": "
|
|
1204
|
-
"
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"name": "newItem",
|
|
1212
|
-
"description": "创建完成后的真实目标数据",
|
|
1213
|
-
"type": "GoalItem"
|
|
1214
|
-
}
|
|
1215
|
-
],
|
|
1216
|
-
"description": "将待定子目标提交为正式目标项",
|
|
1217
|
-
"returns": {}
|
|
1223
|
+
"name": "actions",
|
|
1224
|
+
"description": "卡片右上角操作区域"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"name": "footer",
|
|
1228
|
+
"description": "卡片底部操作区域"
|
|
1218
1229
|
}
|
|
1219
1230
|
],
|
|
1231
|
+
"methods": [],
|
|
1220
1232
|
"parts": [],
|
|
1221
|
-
"description": "
|
|
1233
|
+
"description": "Elevo 风格的卡片组件,支持图标或图片头像、标题、描述、操作按钮及底部插槽。",
|
|
1222
1234
|
"category": "display-component"
|
|
1223
1235
|
},
|
|
1224
1236
|
{
|
|
1225
|
-
"name": "ai-portal.
|
|
1237
|
+
"name": "ai-portal.flow-tabs",
|
|
1226
1238
|
"properties": [
|
|
1227
1239
|
{
|
|
1228
|
-
"name": "
|
|
1229
|
-
"description": "知识列表数据,为 undefined 时显示加载状态",
|
|
1240
|
+
"name": "tabs",
|
|
1230
1241
|
"attribute": false,
|
|
1231
|
-
"type": "
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
"name": "urlTemplate",
|
|
1235
|
-
"description": "知识详情链接模板,支持使用知识字段插值",
|
|
1236
|
-
"type": "string"
|
|
1242
|
+
"type": "Tab[]"
|
|
1237
1243
|
},
|
|
1238
1244
|
{
|
|
1239
|
-
"name": "
|
|
1240
|
-
"description": "操作菜单配置,每条知识行尾显示可操作的菜单项",
|
|
1245
|
+
"name": "activeTab",
|
|
1241
1246
|
"attribute": false,
|
|
1242
|
-
"type": "
|
|
1247
|
+
"type": "string"
|
|
1243
1248
|
}
|
|
1244
1249
|
],
|
|
1245
1250
|
"events": [
|
|
1246
1251
|
{
|
|
1247
|
-
"name": "
|
|
1248
|
-
"description": "",
|
|
1249
|
-
"detail": {
|
|
1250
|
-
"description": "{ action: 操作项配置, item: 所属知识数据 }",
|
|
1251
|
-
"type": "ActionClickDetail"
|
|
1252
|
-
}
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"name": "item.click",
|
|
1252
|
+
"name": "tab.click",
|
|
1256
1253
|
"description": "",
|
|
1257
1254
|
"detail": {
|
|
1258
|
-
"description": "{
|
|
1259
|
-
"type": "
|
|
1255
|
+
"description": "{ id: 标签 ID, label: 标签显示文本 }",
|
|
1256
|
+
"type": "Tab"
|
|
1260
1257
|
}
|
|
1261
1258
|
}
|
|
1262
1259
|
],
|
|
1263
|
-
"slots": [
|
|
1264
|
-
"methods": [],
|
|
1265
|
-
"parts": [],
|
|
1266
|
-
"description": "构件 `ai-portal.project-knowledges`\n\n项目知识库列表构件,展示项目中的知识条目,支持操作菜单和点击跳转。"
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
"name": "ai-portal.activity-timeline",
|
|
1270
|
-
"properties": [
|
|
1260
|
+
"slots": [
|
|
1271
1261
|
{
|
|
1272
|
-
"name": "
|
|
1273
|
-
"description": "
|
|
1274
|
-
"attribute": false,
|
|
1275
|
-
"type": "Activity[]"
|
|
1262
|
+
"name": "toolbar",
|
|
1263
|
+
"description": "标签栏右侧工具栏区域"
|
|
1276
1264
|
},
|
|
1277
1265
|
{
|
|
1278
|
-
"name": "
|
|
1279
|
-
"description": "
|
|
1280
|
-
"type": "string"
|
|
1266
|
+
"name": "default",
|
|
1267
|
+
"description": "标签页内容区域"
|
|
1281
1268
|
}
|
|
1282
1269
|
],
|
|
1283
|
-
"events": [],
|
|
1284
|
-
"slots": [],
|
|
1285
1270
|
"methods": [],
|
|
1286
1271
|
"parts": [],
|
|
1287
|
-
"description": "
|
|
1288
|
-
"category": "
|
|
1272
|
+
"description": "流程标签页组件,提供带背景画布动效的标签导航,支持工具栏插槽和默认内容插槽。",
|
|
1273
|
+
"category": "navigate"
|
|
1289
1274
|
},
|
|
1290
1275
|
{
|
|
1291
|
-
"name": "ai-portal.
|
|
1276
|
+
"name": "ai-portal.stage-flow",
|
|
1292
1277
|
"properties": [
|
|
1293
1278
|
{
|
|
1294
|
-
"name": "
|
|
1295
|
-
"description": "
|
|
1296
|
-
"type": "string"
|
|
1297
|
-
},
|
|
1298
|
-
{
|
|
1299
|
-
"name": "autoFocus",
|
|
1300
|
-
"description": "是否自动聚焦",
|
|
1301
|
-
"type": "boolean"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
"name": "submitDisabled",
|
|
1305
|
-
"description": "是否禁用发送按钮,通常在 AI 正在处理时设为 true",
|
|
1306
|
-
"type": "boolean"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
"name": "supportsTerminate",
|
|
1310
|
-
"description": "是否显示终止任务按钮,需与 submitDisabled 配合使用",
|
|
1311
|
-
"type": "boolean"
|
|
1312
|
-
},
|
|
1313
|
-
{
|
|
1314
|
-
"name": "terminating",
|
|
1315
|
-
"description": "是否正在终止任务,为 true 时显示加载状态",
|
|
1316
|
-
"type": "boolean"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
"name": "autoFade",
|
|
1320
|
-
"description": "是否在输入框为空时自动淡出,通过 CSS 属性选择器控制样式",
|
|
1321
|
-
"type": "boolean"
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
"name": "uploadOptions",
|
|
1325
|
-
"description": "文件上传配置",
|
|
1279
|
+
"name": "spec",
|
|
1280
|
+
"description": "阶段流程配置数据,每个阶段包含名称和活动列表",
|
|
1326
1281
|
"attribute": false,
|
|
1327
|
-
"type": "
|
|
1282
|
+
"type": "Stage[]"
|
|
1328
1283
|
},
|
|
1329
1284
|
{
|
|
1330
1285
|
"name": "aiEmployees",
|
|
1331
|
-
"description": "
|
|
1286
|
+
"description": "AI 员工列表,用于在活动中显示分配的员工名称",
|
|
1332
1287
|
"attribute": false,
|
|
1333
1288
|
"type": "AIEmployee[]"
|
|
1334
1289
|
},
|
|
1335
1290
|
{
|
|
1336
|
-
"name": "
|
|
1337
|
-
"description": "
|
|
1338
|
-
"
|
|
1339
|
-
"type": "Command[]"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
"name": "suggestionsPlacement",
|
|
1343
|
-
"description": "命令/提及联想弹出层的显示位置",
|
|
1344
|
-
"default": "\"bottom\"",
|
|
1345
|
-
"type": "\"top\" | \"bottom\""
|
|
1291
|
+
"name": "readOnly",
|
|
1292
|
+
"description": "是否为只读模式,只读时不显示编辑、添加、删除操作",
|
|
1293
|
+
"type": "boolean"
|
|
1346
1294
|
}
|
|
1347
1295
|
],
|
|
1348
1296
|
"events": [
|
|
1349
1297
|
{
|
|
1350
|
-
"name": "
|
|
1298
|
+
"name": "change",
|
|
1351
1299
|
"description": "",
|
|
1352
|
-
"deprecated": "Use `chat.submit` event instead",
|
|
1353
1300
|
"detail": {
|
|
1354
|
-
"description": "
|
|
1355
|
-
"type": "
|
|
1301
|
+
"description": "更新后的阶段列表",
|
|
1302
|
+
"type": "Stage[]"
|
|
1356
1303
|
}
|
|
1357
1304
|
},
|
|
1358
1305
|
{
|
|
1359
|
-
"name": "
|
|
1306
|
+
"name": "add.activity",
|
|
1360
1307
|
"description": "",
|
|
1361
1308
|
"detail": {
|
|
1362
|
-
"description": "{
|
|
1363
|
-
"type": "
|
|
1309
|
+
"description": "{ stage: 所属阶段数据 }",
|
|
1310
|
+
"type": "{ stage: Stage }"
|
|
1364
1311
|
}
|
|
1365
1312
|
},
|
|
1366
1313
|
{
|
|
1367
|
-
"name": "
|
|
1314
|
+
"name": "edit.activity",
|
|
1368
1315
|
"description": "",
|
|
1369
1316
|
"detail": {
|
|
1370
|
-
"description": "
|
|
1371
|
-
"type": "
|
|
1317
|
+
"description": "{ stage: 所属阶段, activity: 活动数据, activityIndex: 活动索引 }",
|
|
1318
|
+
"type": "EditActivityDetail"
|
|
1372
1319
|
}
|
|
1373
1320
|
}
|
|
1374
1321
|
],
|
|
1375
1322
|
"slots": [],
|
|
1376
1323
|
"methods": [
|
|
1377
1324
|
{
|
|
1378
|
-
"name": "
|
|
1325
|
+
"name": "addActivity",
|
|
1379
1326
|
"params": [
|
|
1380
1327
|
{
|
|
1381
|
-
"name": "
|
|
1382
|
-
"description": "
|
|
1383
|
-
"type": "
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
],
|
|
1390
|
-
"parts": [],
|
|
1391
|
-
"description": "小型聊天输入框,用于对话等页面,支持命令联想、@提及数字人、文件上传及终止任务等功能。",
|
|
1392
|
-
"category": "ai-portal"
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
"name": "ai-portal.elevo-logo",
|
|
1396
|
-
"properties": [],
|
|
1397
|
-
"events": [],
|
|
1398
|
-
"slots": [],
|
|
1399
|
-
"methods": [],
|
|
1400
|
-
"parts": [],
|
|
1401
|
-
"description": "Elevo 品牌 Logo 图片组件,固定展示 Elevo logo(95×28px)。",
|
|
1402
|
-
"category": "display-component"
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
"name": "ai-portal.show-case",
|
|
1406
|
-
"properties": [
|
|
1407
|
-
{
|
|
1408
|
-
"name": "caseTitle",
|
|
1409
|
-
"description": "案例标题,同时用于计算卡片背景色",
|
|
1410
|
-
"type": "string"
|
|
1411
|
-
},
|
|
1412
|
-
{
|
|
1413
|
-
"name": "summary",
|
|
1414
|
-
"description": "案例摘要描述",
|
|
1415
|
-
"type": "string"
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
"name": "url",
|
|
1419
|
-
"description": "点击卡片跳转的目标链接",
|
|
1420
|
-
"type": "string"
|
|
1421
|
-
}
|
|
1422
|
-
],
|
|
1423
|
-
"events": [],
|
|
1424
|
-
"slots": [],
|
|
1425
|
-
"methods": [],
|
|
1426
|
-
"parts": [],
|
|
1427
|
-
"description": "构件 `ai-portal.show-case`\n\n案例展示卡片构件,以彩色背景卡片展示单个优秀案例,点击可跳转到案例详情。"
|
|
1428
|
-
},
|
|
1429
|
-
{
|
|
1430
|
-
"name": "ai-portal.blank-state",
|
|
1431
|
-
"properties": [
|
|
1432
|
-
{
|
|
1433
|
-
"name": "illustration",
|
|
1434
|
-
"description": "插画类型,可选 \"goals\"、\"activities\"、\"collaboration-spaces\"、\"serviceflows\",默认使用 activities 插画",
|
|
1435
|
-
"type": "BlankStateIllustration"
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"name": "description",
|
|
1439
|
-
"description": "描述文字",
|
|
1440
|
-
"type": "string"
|
|
1441
|
-
}
|
|
1442
|
-
],
|
|
1443
|
-
"events": [],
|
|
1444
|
-
"slots": [],
|
|
1445
|
-
"methods": [],
|
|
1446
|
-
"parts": [],
|
|
1447
|
-
"description": "空状态展示组件,提供预置插画和描述文字,并支持通过默认插槽插入自定义内容。",
|
|
1448
|
-
"category": "ai-portal"
|
|
1449
|
-
},
|
|
1450
|
-
{
|
|
1451
|
-
"name": "ai-portal.sticky-container",
|
|
1452
|
-
"properties": [
|
|
1453
|
-
{
|
|
1454
|
-
"name": "variant",
|
|
1455
|
-
"description": "变体风格,通过 CSS attribute selector 控制样式,不触发重新渲染",
|
|
1456
|
-
"default": "\"default\"",
|
|
1457
|
-
"type": "StickyContainerVariant"
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
"name": "textContent",
|
|
1461
|
-
"type": "string",
|
|
1462
|
-
"description": "文本内容"
|
|
1463
|
-
}
|
|
1464
|
-
],
|
|
1465
|
-
"events": [],
|
|
1466
|
-
"slots": [
|
|
1467
|
-
{
|
|
1468
|
-
"name": null,
|
|
1469
|
-
"description": "内容"
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
"name": "header",
|
|
1473
|
-
"description": "头部"
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
"name": "toolbar",
|
|
1477
|
-
"description": "工具栏"
|
|
1478
|
-
}
|
|
1479
|
-
],
|
|
1480
|
-
"methods": [],
|
|
1481
|
-
"parts": [],
|
|
1482
|
-
"description": "构件 `ai-portal.sticky-container`\n\n粘性容器构件,使内容在页面滚动时固定在顶部。"
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"name": "ai-portal.elevo-card",
|
|
1486
|
-
"properties": [
|
|
1487
|
-
{
|
|
1488
|
-
"name": "cardTitle",
|
|
1489
|
-
"type": "string"
|
|
1490
|
-
},
|
|
1491
|
-
{
|
|
1492
|
-
"name": "description",
|
|
1493
|
-
"type": "string"
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"name": "url",
|
|
1497
|
-
"type": "string"
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"name": "avatar",
|
|
1501
|
-
"attribute": false,
|
|
1502
|
-
"type": "string | GeneralIconProps"
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
"name": "avatarType",
|
|
1506
|
-
"type": "\"icon\" | \"image\""
|
|
1507
|
-
}
|
|
1508
|
-
],
|
|
1509
|
-
"events": [],
|
|
1510
|
-
"slots": [
|
|
1511
|
-
{
|
|
1512
|
-
"name": "actions",
|
|
1513
|
-
"description": "卡片右上角操作区域"
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
"name": "footer",
|
|
1517
|
-
"description": "卡片底部操作区域"
|
|
1518
|
-
}
|
|
1519
|
-
],
|
|
1520
|
-
"methods": [],
|
|
1521
|
-
"parts": [],
|
|
1522
|
-
"description": "Elevo 风格的卡片组件,支持图标或图片头像、标题、描述、操作按钮及底部插槽。",
|
|
1523
|
-
"category": "display-component"
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
"name": "ai-portal.flow-tabs",
|
|
1527
|
-
"properties": [
|
|
1528
|
-
{
|
|
1529
|
-
"name": "tabs",
|
|
1530
|
-
"attribute": false,
|
|
1531
|
-
"type": "Tab[]"
|
|
1532
|
-
},
|
|
1533
|
-
{
|
|
1534
|
-
"name": "activeTab",
|
|
1535
|
-
"attribute": false,
|
|
1536
|
-
"type": "string"
|
|
1537
|
-
}
|
|
1538
|
-
],
|
|
1539
|
-
"events": [
|
|
1540
|
-
{
|
|
1541
|
-
"name": "tab.click",
|
|
1542
|
-
"description": "",
|
|
1543
|
-
"detail": {
|
|
1544
|
-
"description": "{ id: 标签 ID, label: 标签显示文本 }",
|
|
1545
|
-
"type": "Tab"
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
],
|
|
1549
|
-
"slots": [
|
|
1550
|
-
{
|
|
1551
|
-
"name": "toolbar",
|
|
1552
|
-
"description": "标签栏右侧工具栏区域"
|
|
1553
|
-
},
|
|
1554
|
-
{
|
|
1555
|
-
"name": "default",
|
|
1556
|
-
"description": "标签页内容区域"
|
|
1557
|
-
}
|
|
1558
|
-
],
|
|
1559
|
-
"methods": [],
|
|
1560
|
-
"parts": [],
|
|
1561
|
-
"description": "流程标签页组件,提供带背景画布动效的标签导航,支持工具栏插槽和默认内容插槽。",
|
|
1562
|
-
"category": "navigate"
|
|
1563
|
-
},
|
|
1564
|
-
{
|
|
1565
|
-
"name": "ai-portal.stage-flow",
|
|
1566
|
-
"properties": [
|
|
1567
|
-
{
|
|
1568
|
-
"name": "spec",
|
|
1569
|
-
"description": "阶段流程配置数据,每个阶段包含名称和活动列表",
|
|
1570
|
-
"attribute": false,
|
|
1571
|
-
"type": "Stage[]"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"name": "aiEmployees",
|
|
1575
|
-
"description": "AI 员工列表,用于在活动中显示分配的员工名称",
|
|
1576
|
-
"attribute": false,
|
|
1577
|
-
"type": "AIEmployee[]"
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
"name": "readOnly",
|
|
1581
|
-
"description": "是否为只读模式,只读时不显示编辑、添加、删除操作",
|
|
1582
|
-
"type": "boolean"
|
|
1583
|
-
}
|
|
1584
|
-
],
|
|
1585
|
-
"events": [
|
|
1586
|
-
{
|
|
1587
|
-
"name": "change",
|
|
1588
|
-
"description": "",
|
|
1589
|
-
"detail": {
|
|
1590
|
-
"description": "更新后的阶段列表",
|
|
1591
|
-
"type": "Stage[]"
|
|
1592
|
-
}
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
"name": "add.activity",
|
|
1596
|
-
"description": "",
|
|
1597
|
-
"detail": {
|
|
1598
|
-
"description": "{ stage: 所属阶段数据 }",
|
|
1599
|
-
"type": "{ stage: Stage }"
|
|
1600
|
-
}
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
"name": "edit.activity",
|
|
1604
|
-
"description": "",
|
|
1605
|
-
"detail": {
|
|
1606
|
-
"description": "{ stage: 所属阶段, activity: 活动数据, activityIndex: 活动索引 }",
|
|
1607
|
-
"type": "EditActivityDetail"
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
],
|
|
1611
|
-
"slots": [],
|
|
1612
|
-
"methods": [
|
|
1613
|
-
{
|
|
1614
|
-
"name": "addActivity",
|
|
1615
|
-
"params": [
|
|
1616
|
-
{
|
|
1617
|
-
"name": "stage",
|
|
1618
|
-
"description": "目标阶段",
|
|
1619
|
-
"type": "Stage"
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
"name": "activity",
|
|
1623
|
-
"description": "要添加的活动数据",
|
|
1624
|
-
"type": "FlowActivity"
|
|
1328
|
+
"name": "stage",
|
|
1329
|
+
"description": "目标阶段",
|
|
1330
|
+
"type": "Stage"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "activity",
|
|
1334
|
+
"description": "要添加的活动数据",
|
|
1335
|
+
"type": "FlowActivity"
|
|
1625
1336
|
}
|
|
1626
1337
|
],
|
|
1627
1338
|
"description": "向指定阶段添加活动",
|
|
@@ -2076,26 +1787,315 @@
|
|
|
2076
1787
|
"methods": [],
|
|
2077
1788
|
"parts": [],
|
|
2078
1789
|
"description": "构件 `ai-portal.space-workbench`\n\n协作空间工作台,集成顶部导航、侧边栏(知识库、业务实例)、聊天区域和服务流等核心功能的一体化工作台构件。"
|
|
2079
|
-
}
|
|
2080
|
-
],
|
|
2081
|
-
"providers": [
|
|
2082
|
-
{
|
|
2083
|
-
"name": "ai-portal.call-tool"
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
"name": "ai-portal.save-request-store"
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
"name": "ai-portal.load-request-store"
|
|
2090
1790
|
},
|
|
2091
1791
|
{
|
|
2092
|
-
"name": "ai-portal.
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
1792
|
+
"name": "ai-portal.home-container",
|
|
1793
|
+
"properties": [
|
|
1794
|
+
{
|
|
1795
|
+
"name": "sticky",
|
|
1796
|
+
"type": "boolean"
|
|
1797
|
+
}
|
|
1798
|
+
],
|
|
1799
|
+
"events": [],
|
|
1800
|
+
"slots": [
|
|
1801
|
+
{
|
|
1802
|
+
"name": "default",
|
|
1803
|
+
"description": "页面内容区域"
|
|
1804
|
+
}
|
|
1805
|
+
],
|
|
1806
|
+
"methods": [],
|
|
1807
|
+
"parts": [],
|
|
1808
|
+
"description": "AI Portal 首页容器,通过 sticky 属性控制顶部吸附行为,内容通过默认插槽传入。",
|
|
1809
|
+
"category": "layout-component"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"name": "ai-portal.cruise-canvas",
|
|
1813
|
+
"properties": [
|
|
1814
|
+
{
|
|
1815
|
+
"name": "conversationId",
|
|
1816
|
+
"description": "对话 ID",
|
|
1817
|
+
"type": "string"
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"name": "initialRequest",
|
|
1821
|
+
"description": "初始请求数据。仅初始设置有效。",
|
|
1822
|
+
"attribute": false,
|
|
1823
|
+
"type": "RequestStore | null"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "replay",
|
|
1827
|
+
"description": "是否启用回放。仅初始设置有效。",
|
|
1828
|
+
"type": "boolean"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"name": "replayDelay",
|
|
1832
|
+
"description": "设置回放时消息之间的时间间隔,单位为秒。仅初始设置有效。",
|
|
1833
|
+
"default": "2",
|
|
1834
|
+
"type": "number"
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"name": "supports",
|
|
1838
|
+
"description": "功能开关配置,键为功能名,值为是否启用",
|
|
1839
|
+
"attribute": false,
|
|
1840
|
+
"type": "Record<string, boolean>"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"name": "showHiddenJobs",
|
|
1844
|
+
"description": "是否显示隐藏的 Job 节点",
|
|
1845
|
+
"type": "boolean"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"name": "showHumanActions",
|
|
1849
|
+
"description": "是否显示 Human-in-the-loop 操作按钮",
|
|
1850
|
+
"type": "boolean"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"name": "showFeedback",
|
|
1854
|
+
"description": "是否显示反馈按钮",
|
|
1855
|
+
"type": "boolean"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "showFeedbackAfterFailed",
|
|
1859
|
+
"description": "是否在任务失败时也显示反馈按钮",
|
|
1860
|
+
"type": "boolean"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"name": "showFeedbackOnView",
|
|
1864
|
+
"description": "是否在查看生成视图时显示反馈按钮",
|
|
1865
|
+
"type": "boolean"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "showUiSwitch",
|
|
1869
|
+
"description": "是否显示切换到对话流视图的按钮",
|
|
1870
|
+
"type": "boolean"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"name": "hideMermaid",
|
|
1874
|
+
"description": "是否隐藏 Mermaid 图表渲染,通过 CSS 属性选择器控制样式",
|
|
1875
|
+
"type": "boolean"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "showJsxEditor",
|
|
1879
|
+
"description": "是否显示 JSX 编辑器按钮",
|
|
1880
|
+
"type": "boolean"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"name": "previewUrlTemplate",
|
|
1884
|
+
"description": "生成视图预览页的 URL 模板,支持 {viewId} 等字段插值",
|
|
1885
|
+
"type": "string"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"name": "showCases",
|
|
1889
|
+
"description": "示例场景列表,用于在空对话时展示快速入口",
|
|
1890
|
+
"attribute": false,
|
|
1891
|
+
"type": "ShowCaseType[]"
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"name": "exampleProjects",
|
|
1895
|
+
"description": "示例项目列表,用于展示可参考的已有项目",
|
|
1896
|
+
"attribute": false,
|
|
1897
|
+
"type": "ExampleProject[]"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"name": "tryItOutUrl",
|
|
1901
|
+
"description": "\"试一试\"跳转 URL",
|
|
1902
|
+
"type": "string"
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
"name": "separateInstructions",
|
|
1906
|
+
"description": "是否将任务说明独立展示,而非内联在节点中",
|
|
1907
|
+
"type": "boolean"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"name": "aiEmployees",
|
|
1911
|
+
"description": "可 @ 提及的数字人列表",
|
|
1912
|
+
"attribute": false,
|
|
1913
|
+
"type": "AIEmployee[]"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"name": "commands",
|
|
1917
|
+
"description": "命令列表,支持通过 / 或搜索触发联想",
|
|
1918
|
+
"attribute": false,
|
|
1919
|
+
"type": "Command[]"
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"name": "uploadOptions",
|
|
1923
|
+
"description": "文件上传配置",
|
|
1924
|
+
"attribute": false,
|
|
1925
|
+
"type": "UploadOptions"
|
|
1926
|
+
}
|
|
1927
|
+
],
|
|
1928
|
+
"events": [
|
|
1929
|
+
{
|
|
1930
|
+
"name": "share",
|
|
1931
|
+
"description": "",
|
|
1932
|
+
"detail": {
|
|
1933
|
+
"description": "void",
|
|
1934
|
+
"type": "void"
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "terminate",
|
|
1939
|
+
"description": "",
|
|
1940
|
+
"detail": {
|
|
1941
|
+
"description": "void",
|
|
1942
|
+
"type": "void"
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"name": "feedback.submit",
|
|
1947
|
+
"description": "",
|
|
1948
|
+
"detail": {
|
|
1949
|
+
"description": "{ plan: 计划步骤列表, result: 结果列表, feedback: 反馈文本 }",
|
|
1950
|
+
"type": "FeedbackDetail"
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "feedback.on.view",
|
|
1955
|
+
"description": "",
|
|
1956
|
+
"detail": {
|
|
1957
|
+
"description": "生成视图的 viewId",
|
|
1958
|
+
"type": "string"
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"name": "ui.switch",
|
|
1963
|
+
"description": "",
|
|
1964
|
+
"detail": {
|
|
1965
|
+
"description": "切换目标 UI 模式,值为 \"chat\"",
|
|
1966
|
+
"type": "\"chat\""
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"name": "detail.change",
|
|
1971
|
+
"description": "",
|
|
1972
|
+
"detail": {
|
|
1973
|
+
"description": "{ projectId: 关联的项目 ID }",
|
|
1974
|
+
"type": "ConversationDetail"
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
],
|
|
1978
|
+
"slots": [],
|
|
1979
|
+
"methods": [
|
|
1980
|
+
{
|
|
1981
|
+
"name": "resumed",
|
|
1982
|
+
"params": [],
|
|
1983
|
+
"description": "通知组件任务已恢复,用于继续中断的对话",
|
|
1984
|
+
"returns": {}
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
"name": "feedbackSubmitDone",
|
|
1988
|
+
"params": [],
|
|
1989
|
+
"description": "通知组件反馈提交成功",
|
|
1990
|
+
"returns": {}
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"name": "feedbackSubmitFailed",
|
|
1994
|
+
"params": [],
|
|
1995
|
+
"description": "通知组件反馈提交失败",
|
|
1996
|
+
"returns": {}
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"name": "feedbackOnViewDone",
|
|
2000
|
+
"params": [
|
|
2001
|
+
{
|
|
2002
|
+
"name": "viewId",
|
|
2003
|
+
"description": "对应的视图 ID",
|
|
2004
|
+
"type": "string"
|
|
2005
|
+
}
|
|
2006
|
+
],
|
|
2007
|
+
"description": "通知组件查看视图的反馈处理完成",
|
|
2008
|
+
"returns": {}
|
|
2009
|
+
}
|
|
2010
|
+
],
|
|
2011
|
+
"parts": [],
|
|
2012
|
+
"description": "AI 任务执行画布,以节点图形式展示任务的执行过程,支持任务回放、反馈及 UI 切换等功能。",
|
|
2013
|
+
"category": "ai-portal"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"name": "ai-portal.stat-with-mini-chart",
|
|
2017
|
+
"properties": [
|
|
2018
|
+
{
|
|
2019
|
+
"name": "label",
|
|
2020
|
+
"description": "统计指标标签名称",
|
|
2021
|
+
"type": "string"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"name": "value",
|
|
2025
|
+
"description": "统计数值文本",
|
|
2026
|
+
"type": "string"
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
"name": "size",
|
|
2030
|
+
"description": "展示尺寸,medium 时图表高度为 92px,small 时为 55px",
|
|
2031
|
+
"default": "\"medium\"",
|
|
2032
|
+
"type": "\"medium\" | \"small\""
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "lineColor",
|
|
2036
|
+
"description": "折线颜色",
|
|
2037
|
+
"default": "\"var(--color-brand)\"",
|
|
2038
|
+
"type": "string"
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
"name": "showArea",
|
|
2042
|
+
"description": "是否在折线下方显示渐变填充区域",
|
|
2043
|
+
"type": "boolean"
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
"name": "min",
|
|
2047
|
+
"description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
|
|
2048
|
+
"type": "number"
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"name": "max",
|
|
2052
|
+
"description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
|
|
2053
|
+
"type": "number"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"name": "xField",
|
|
2057
|
+
"description": "x 轴字段名(数据中时间字段的 key)",
|
|
2058
|
+
"default": "\"0\"",
|
|
2059
|
+
"type": "string"
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "yField",
|
|
2063
|
+
"description": "y 轴字段名(数据中数值字段的 key)",
|
|
2064
|
+
"default": "\"1\"",
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "data",
|
|
2069
|
+
"description": "图表数据源,每项为包含 xField 和 yField 字段的对象",
|
|
2070
|
+
"attribute": false,
|
|
2071
|
+
"type": "Record<string, number>[]"
|
|
2072
|
+
}
|
|
2073
|
+
],
|
|
2074
|
+
"events": [],
|
|
2075
|
+
"slots": [],
|
|
2076
|
+
"methods": [],
|
|
2077
|
+
"parts": [],
|
|
2078
|
+
"description": "构件 `ai-portal.stat-with-mini-chart`\n\n带迷你折线图的统计数据展示构件,在统计数值旁边渲染一个迷你折线图。"
|
|
2079
|
+
}
|
|
2080
|
+
],
|
|
2081
|
+
"providers": [
|
|
2082
|
+
{
|
|
2083
|
+
"name": "ai-portal.call-tool"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "ai-portal.save-request-store"
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
"name": "ai-portal.load-request-store"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"name": "ai-portal.clear-request-store"
|
|
2096
2093
|
},
|
|
2097
2094
|
{
|
|
2098
2095
|
"name": "ai-portal.set-chat-mentioned-employee"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"name": "ai-portal.set-chat-command"
|
|
2099
2099
|
}
|
|
2100
2100
|
]
|
|
2101
2101
|
}
|