fix: id operators
This commit is contained in:
parent
fca0943e8d
commit
28f9b902e8
packages/core/client/src/collection-manager/interfaces
@ -42,6 +42,6 @@ export const id: IField = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
filterable: {
|
filterable: {
|
||||||
operators: operators.number,
|
operators: operators.id,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -116,19 +116,19 @@ export const linkTo: IField = {
|
|||||||
filterable: {
|
filterable: {
|
||||||
nested: true,
|
nested: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
// {
|
||||||
name: 'id',
|
// name: 'id',
|
||||||
title: '{{t("Exists")}}',
|
// title: '{{t("Exists")}}',
|
||||||
operators: [
|
// operators: [
|
||||||
{ label: '{{t("exists")}}', value: '$exists', noValue: true },
|
// { label: '{{t("exists")}}', value: '$exists', noValue: true },
|
||||||
{ label: '{{t("not exists")}}', value: '$notExists', noValue: true },
|
// { label: '{{t("not exists")}}', value: '$notExists', noValue: true },
|
||||||
],
|
// ],
|
||||||
schema: {
|
// schema: {
|
||||||
title: '{{t("Exists")}}',
|
// title: '{{t("Exists")}}',
|
||||||
type: 'string',
|
// type: 'string',
|
||||||
'x-component': 'Input',
|
// 'x-component': 'Input',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -67,6 +67,13 @@ export const number = [
|
|||||||
{ label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },
|
{ label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const id = [
|
||||||
|
{ label: '{{t("is")}}', value: '$eq', selected: true },
|
||||||
|
{ label: '{{t("is not")}}', value: '$ne' },
|
||||||
|
{ label: '{{t("Exists")}}', value: '$exists', noValue: true },
|
||||||
|
{ label: '{{t("Not exists")}}', value: '$notExists', noValue: true },
|
||||||
|
];
|
||||||
|
|
||||||
export const enumType = [
|
export const enumType = [
|
||||||
{
|
{
|
||||||
label: '{{t("is")}}',
|
label: '{{t("is")}}',
|
||||||
|
Loading…
Reference in New Issue
Block a user