refactor: form linkage rule to cancel assignment when multiple fields are selected (#4492)

This commit is contained in:
Katherine 2024-05-27 11:51:04 +08:00 committed by GitHub
parent eb0471fe53
commit a3e47832a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,9 @@ export const useValues = (options) => {
field.data = field.data || {};
const operators = option?.operators;
field.data.operators = operators?.filter((v) => {
if (dataIndex.length > 1) {
return v.value !== 'value';
}
return true;
});
field.data.schema = option?.schema;