修改组件label

Change-Id: I969fe2bb6d8fd1ae79dbad998aab2aa1d9d76426
This commit is contained in:
pianruijie 2022-08-16 20:16:20 +08:00
parent 9c2b47ee3a
commit e988d3cfcd

View File

@ -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,