Compare commits
2 Commits
6bbf226452
...
3643f329d8
| Author | SHA1 | Date |
|---|---|---|
|
|
3643f329d8 | |
|
|
f21cdfb0ad |
|
|
@ -144,15 +144,19 @@
|
||||||
if (configElement.field == element.field) {
|
if (configElement.field == element.field) {
|
||||||
element.componentProps.disabled = !configElement.disabled;
|
element.componentProps.disabled = !configElement.disabled;
|
||||||
element.ifShow = configElement.ifShow;
|
element.ifShow = configElement.ifShow;
|
||||||
element.itemProps.required = configElement.required;
|
if (configElement.required) {
|
||||||
|
element.itemProps.required = configElement.required;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (element.columns) {
|
if (element.columns) {
|
||||||
element.columns.forEach((child) => {
|
element.columns.forEach((child) => {
|
||||||
child.children.forEach((t) => {
|
child.children.forEach((t) => {
|
||||||
if (configElement.field == t.field) {
|
if (configElement.field == t.field) {
|
||||||
t.componentProps.disabled = !configElement.disabled;
|
t.componentProps.disabled = !configElement.disabled;
|
||||||
t.itemProps.required = configElement.required;
|
|
||||||
t.ifShow = configElement.ifShow;
|
t.ifShow = configElement.ifShow;
|
||||||
|
if (configElement.required) {
|
||||||
|
t.itemProps.required = configElement.required;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue