fix(schema): 禁用时必填可点击修复

This commit is contained in:
baiqi 2024-07-18 18:13:54 +08:00 committed by 刘瑞斌
parent 6e0c20771e
commit 039572994c
1 changed files with 3 additions and 0 deletions

View File

@ -928,6 +928,9 @@
}
function toggleRequired(record: JsonSchemaTableItem) {
if (props.disabled) {
return;
}
record.required = !record.required;
emitChange('toggleRequired');
}