mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
修改组件label
Change-Id: I969fe2bb6d8fd1ae79dbad998aab2aa1d9d76426
This commit is contained in:
parent
9c2b47ee3a
commit
e988d3cfcd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user