mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:16:03 +00:00
fix: id operators
This commit is contained in:
parent
fca0943e8d
commit
28f9b902e8
@ -42,6 +42,6 @@ export const id: IField = {
|
||||
},
|
||||
},
|
||||
filterable: {
|
||||
operators: operators.number,
|
||||
operators: operators.id,
|
||||
},
|
||||
};
|
||||
|
@ -116,19 +116,19 @@ export const linkTo: IField = {
|
||||
filterable: {
|
||||
nested: true,
|
||||
children: [
|
||||
{
|
||||
name: 'id',
|
||||
title: '{{t("Exists")}}',
|
||||
operators: [
|
||||
{ label: '{{t("exists")}}', value: '$exists', noValue: true },
|
||||
{ label: '{{t("not exists")}}', value: '$notExists', noValue: true },
|
||||
],
|
||||
schema: {
|
||||
title: '{{t("Exists")}}',
|
||||
type: 'string',
|
||||
'x-component': 'Input',
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: 'id',
|
||||
// title: '{{t("Exists")}}',
|
||||
// operators: [
|
||||
// { label: '{{t("exists")}}', value: '$exists', noValue: true },
|
||||
// { label: '{{t("not exists")}}', value: '$notExists', noValue: true },
|
||||
// ],
|
||||
// schema: {
|
||||
// title: '{{t("Exists")}}',
|
||||
// type: 'string',
|
||||
// 'x-component': 'Input',
|
||||
// },
|
||||
// },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
@ -67,6 +67,13 @@ export const number = [
|
||||
{ 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 = [
|
||||
{
|
||||
label: '{{t("is")}}',
|
||||
|
Loading…
Reference in New Issue
Block a user