fix(schema): 禁用时必填可点击修复
This commit is contained in:
parent
6e0c20771e
commit
039572994c
|
@ -928,6 +928,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleRequired(record: JsonSchemaTableItem) {
|
function toggleRequired(record: JsonSchemaTableItem) {
|
||||||
|
if (props.disabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
record.required = !record.required;
|
record.required = !record.required;
|
||||||
emitChange('toggleRequired');
|
emitChange('toggleRequired');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue