FunBI ComponentSchema 参考指南
SkillDev toolsField reference guide for ComponentSchema in FunBI low-code dashboard platform. Use this skill when you need to understand component data structures, read or write component fields, construct or modify component JSON, understand the component tree structure, or handle component parameters in the age
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the FunBI ComponentSchema 参考指南 skill
What this skill tells your AI
The instructions your AI receives, as published by onweekendd/screenwright in servers/server/agent-workspace/skills/executor/sw-component-schema/SKILL.md and read by ahel’s review.
Schema 概览
所有大屏组件共用 ComponentSchema,定义在:
packages/type/src/schemas/component.ts
两个核心变体:
ComponentSchema— 递归版(含嵌套组件对象),用于运行时读取组件树ComponentFlatSchema— 扁平版(children/panelData 简化为 ID 列表),agentBI 工具传参时用此版本
字段分组速查
| 分组 | 包含字段 | 参考文件 |
|---|---|---|
| 身份/布局/基础配置 | id name title img left top zIndex display isLock component option group selected activeStatusId unitPavenType | component-base-identity.md |
| 数据源与数据配置 | data dataType dataSource dataRemark dataQuery url path listenArgs cbArgs openFilter | component-base-data.md |
| 事件/动作/条件 | events encodes | component-base-events.md |
| 子组件/层级/父子关系 | children presetChild panelData parent parentDynamicPanelId parentEncodeId | component-base-hierarchy.md |
| 动画/Minio | loadAnimation minioArr | component-base-features.md |
何时读哪个文件
- 构造/修改组件位置、尺寸、显隐 → 读
component-base-identity.md - 配置组件数据来源(SQL/API/静态) → 读
component-base-data.md - 添加/理解事件联动(点击触发显隐等) → 读
component-base-events.md(也可同时参考sw-event-interactionskill) - 处理分组、动态面板、嵌套组件 → 读
component-base-hierarchy.md - 配置进入动画、Minio 资源文件 → 读
component-base-features.md
组件类型索引
所有组件按类型分组,详细列表在各类型的 index.md 中。
| 组件类型 | 中文名 | 组件数量 | 参考索引 |
|---|---|---|---|
| 图表组件 | echart | 32 | index.md |
| 文字组件 | text | 11 | index.md |
| 媒体组件 | media | 9 | index.md |
| 指标组件 | indicator | 14 | index.md |
| 交互组件 | interactive | 21 | index.md |
| 扩展组件 | extends | 15 | index.md |
| 系统组件 | system | 3 | index.md |
| 第三方组件 | third-party | 4 | index.md |
关键约定
- 组件引用格式:事件
actions中的component字段使用"$component(数字ID)"格式 - option 字段:每种组件类型有专属 option schema,
ComponentSchema中为any,需结合具体组件类型文档 - ID 类型:顶层组件
id为number;ChildComponentSchema(presetChild)中id为string - 工具传参:使用
ComponentFlatSchema,避免递归类型导致的 schema 问题
Signals
- GitHub stars
- 31
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
sw-component-schema- Source
- github.com/onweekendd/screenwright