Skip to content

核心注解概览

Erupt 的注解体系由类级字段级两条主线构成:@Erupt 定义实体整体行为,@EruptField 声明每个字段的展示与编辑。功能注解均以属性形式挂载其上,层级关系如下。

@EruptScan入口标注在启动类上,声明 Erupt 实体的扫描包路径
@Erupt类级类注解,定义实体的管理行为与页面能力
@EruptField字段级字段注解,声明字段的展示与编辑行为
  • views =@View表格列展示配置
  • edit =@Edit编辑表单配置
    • type =EditType30+ 组件类型,详见组件总览
    • search =@Search搜索栏配置
    • onchange =OnChange字段联动,值变更时实时联动其他字段
    • dynamic =@Dynamic动态组件控制

使用建议

  1. 从基础开始:先了解 @Erupt 核心注解,再学习其他功能注解
  2. 权限优先:配置 @Power 注解确保数据安全
  3. 布局优化:使用 @Layout 提升用户体验
  4. 数据关联:掌握 @Drill@LinkTree 实现复杂数据关系
  5. 字段配置:结合 @View@Edit 精细控制字段展示和编辑
  6. 动态交互:使用 @Dynamic 实现条件化表单交互

贡献者

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Opus 5 (1M context) Claude Opus 5 (1M context)

页面历史

Released under the Apache-2.0 License.