mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
refactor: form linkage rule to cancel assignment when multiple fields are selected (#4492)
This commit is contained in:
parent
eb0471fe53
commit
a3e47832a6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user