FunBI ComponentSchema 参考指南

SkillDev tools

Field 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.

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 unitPavenTypecomponent-base-identity.md
数据源与数据配置data dataType dataSource dataRemark dataQuery url path listenArgs cbArgs openFiltercomponent-base-data.md
事件/动作/条件events encodescomponent-base-events.md
子组件/层级/父子关系children presetChild panelData parent parentDynamicPanelId parentEncodeIdcomponent-base-hierarchy.md
动画/MinioloadAnimation minioArrcomponent-base-features.md

何时读哪个文件

  • 构造/修改组件位置、尺寸、显隐 → 读 component-base-identity.md
  • 配置组件数据来源(SQL/API/静态) → 读 component-base-data.md
  • 添加/理解事件联动(点击触发显隐等) → 读 component-base-events.md(也可同时参考 sw-event-interaction skill)
  • 处理分组、动态面板、嵌套组件 → 读 component-base-hierarchy.md
  • 配置进入动画、Minio 资源文件 → 读 component-base-features.md

组件类型索引

所有组件按类型分组,详细列表在各类型的 index.md 中。

组件类型中文名组件数量参考索引
图表组件echart32index.md
文字组件text11index.md
媒体组件media9index.md
指标组件indicator14index.md
交互组件interactive21index.md
扩展组件extends15index.md
系统组件system3index.md
第三方组件third-party4index.md

关键约定

  1. 组件引用格式:事件 actions 中的 component 字段使用 "$component(数字ID)" 格式
  2. option 字段:每种组件类型有专属 option schema,ComponentSchema 中为 any,需结合具体组件类型文档
  3. ID 类型:顶层组件 idnumberChildComponentSchema(presetChild)中 idstring
  4. 工具传参:使用 ComponentFlatSchema,避免递归类型导致的 schema 问题

Signals

GitHub stars
31
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
sw-component-schema
Source
github.com/onweekendd/screenwright