zzq
parent
70e26fd53d
commit
f21cdfb0ad
|
|
@ -144,15 +144,19 @@
|
|||
if (configElement.field == element.field) {
|
||||
element.componentProps.disabled = !configElement.disabled;
|
||||
element.ifShow = configElement.ifShow;
|
||||
element.itemProps.required = configElement.required;
|
||||
if (configElement.required) {
|
||||
element.itemProps.required = configElement.required;
|
||||
}
|
||||
}
|
||||
if (element.columns) {
|
||||
element.columns.forEach((child) => {
|
||||
child.children.forEach((t) => {
|
||||
if (configElement.field == t.field) {
|
||||
t.componentProps.disabled = !configElement.disabled;
|
||||
t.itemProps.required = configElement.required;
|
||||
t.ifShow = configElement.ifShow;
|
||||
if (configElement.required) {
|
||||
t.itemProps.required = configElement.required;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue