mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +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 ?? [],
|
manager?.store?.outline ?? [],
|
||||||
(item: any) => {
|
(item: any) => {
|
||||||
const schema = manager?.store?.getSchema(item.id);
|
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 {
|
return {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
label: item.label,
|
label: cmptLabel,
|
||||||
value: schema?.id ?? item.id,
|
value: schema?.id ?? item.id,
|
||||||
type: schema?.type ?? item.type,
|
type: schema?.type ?? item.type,
|
||||||
schema,
|
schema,
|
||||||
|
Loading…
Reference in New Issue
Block a user