MCPcopy
hub / github.com/baidu/amis / RendererAction

Interface RendererAction

packages/amis-core/src/actions/Action.ts:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61// Action 基础接口
62export interface RendererAction {
63 // 运行这个 Action,每个类型的 Action 都只有一个实例,run 函数是个可重入的函数
64 run: (
65 action: ListenerAction,
66 renderer: ListenerContext,
67 event: RendererEvent<any>,
68 mergeData?: any // 有些Action内部需要通过上下文数据处理专有逻辑,这里的数据是事件数据+渲染器数据
69 ) => Promise<RendererEvent<any> | void>;
70}
71
72// 存储 Action 和类型的映射关系,用于后续查找
73const ActionTypeMap: {[key: string]: RendererAction} = {};

Callers

nothing calls this directly

Implementers 15

DrawerActionpackages/amis-core/src/actions/DrawerA
CloseDrawerActionpackages/amis-core/src/actions/DrawerA
ParallelActionpackages/amis-core/src/actions/Paralle
EventActionpackages/amis-core/src/actions/EventAc
ContinueActionpackages/amis-core/src/actions/Continu
ToastActionpackages/amis-core/src/actions/ToastAc
PageGoBackActionpackages/amis-core/src/actions/PageAct
PageGoActionpackages/amis-core/src/actions/PageAct
PageRefreshActionpackages/amis-core/src/actions/PageAct
PrintActionpackages/amis-core/src/actions/PrintAc
StatusActionpackages/amis-core/src/actions/StatusA
EmailActionpackages/amis-core/src/actions/EmailAc

Calls

no outgoing calls

Tested by

no test coverage detected