mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:06:31 +00:00
fix: dynamic component
This commit is contained in:
parent
3e574662cb
commit
c8b100e390
@ -43,7 +43,7 @@ export const FilterItem = observer((props: any) => {
|
||||
{!operator?.noValue &&
|
||||
React.createElement(DynamicComponent, {
|
||||
value,
|
||||
schema: {},
|
||||
schema,
|
||||
onChange(value) {
|
||||
setValue(value);
|
||||
},
|
||||
|
@ -44,13 +44,7 @@ export const useValues = () => {
|
||||
field.data.dataIndex = dataIndex;
|
||||
field.data.operators = operators;
|
||||
field.data.operator = operator;
|
||||
field.data.schema = merge(merge(option?.schema, operator?.schema), {
|
||||
'x-component-props': {
|
||||
style: {
|
||||
minWidth: 150,
|
||||
},
|
||||
},
|
||||
});
|
||||
field.data.schema = merge(option?.schema, operator?.schema);
|
||||
field.data.value = get(field.value, `${fieldPath}.$${operatorValue}`);
|
||||
console.log('option', operator, field.data.value);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user