Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2025-01-16 13:17:33 +00:00
commit 6e0f198d6f
2 changed files with 7 additions and 0 deletions

View File

@ -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,
},
});
};

View File

@ -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 = {