diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx index 8f4b49d8a..e2038a106 100644 --- a/packages/amis-editor/src/renderer/event-control/helper.tsx +++ b/packages/amis-editor/src/renderer/event-control/helper.tsx @@ -962,9 +962,16 @@ export const getEventControlConfig = ( manager?.store?.outline ?? [], (item: any) => { const schema = manager?.store?.getSchema(item.id); + let cmptLabel = ''; + if (item?.region) { + cmptLabel = item?.label; + } else { + cmptLabel = schema?.label ?? schema?.title; + } + cmptLabel = cmptLabel ?? item.label; return { id: item.id, - label: item.label, + label: cmptLabel, value: schema?.id ?? item.id, type: schema?.type ?? item.type, schema,