mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 06:29:25 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
6e0f198d6f
@ -137,6 +137,9 @@ const EditOperator = () => {
|
||||
const operator = fieldSchema['x-component-props']?.['filter-operator'];
|
||||
|
||||
const setOperatorComponent = (operator: any, component: any, props = {}) => {
|
||||
if (component === 'DatePicker.FilterWithPicker') {
|
||||
component = 'DatePicker';
|
||||
}
|
||||
const componentProps = field.componentProps || {};
|
||||
field.component = component;
|
||||
field.componentProps = {
|
||||
@ -150,6 +153,7 @@ const EditOperator = () => {
|
||||
'filter-operator': operator,
|
||||
...props,
|
||||
};
|
||||
fieldSchema['x-filter-operator'] = operator?.value;
|
||||
dn.emit('patch', {
|
||||
schema: {
|
||||
'x-uid': fieldSchema['x-uid'],
|
||||
@ -159,6 +163,7 @@ const EditOperator = () => {
|
||||
'filter-operator': operator,
|
||||
...props,
|
||||
},
|
||||
'x-filter-operator': operator?.value,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -138,6 +138,7 @@ export const useChartFilter = () => {
|
||||
...field.uiSchema?.['x-component-props'],
|
||||
'filter-operator': defaultOperator,
|
||||
},
|
||||
'x-filter-operators': defaultOperator?.value,
|
||||
};
|
||||
if (field.interface === 'formula') {
|
||||
const component = getFormulaComponent(field.dataType) || 'Input';
|
||||
@ -195,6 +196,7 @@ export const useChartFilter = () => {
|
||||
'x-component-props': {
|
||||
'filter-operator': defaultOperator,
|
||||
},
|
||||
'x-filter-operators': defaultOperator?.value,
|
||||
};
|
||||
if (defaultOperator?.noValue) {
|
||||
schema = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user