在 NocoBase 中,操作(Action) 是区块里的按钮,用于触发业务逻辑——比如"新建"、"编辑"、"删除"等。通过继承 ActionModel 基类,你可以添加自定义操作按钮。
ActionModel
每个操作需要声明它出现的场景,通过 static scene 属性指定:
static scene
ActionSceneEnum.collection
ActionSceneEnum.record
ActionSceneEnum.both
ActionSceneEnum.all