多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
1.4 KiB

import { UITypes } from 'nocodb-sdk'
export const comparisonOpList: {
text: string
value: string
ignoreVal?: boolean
allowedTypes?: string[]
}[] = [
{
text: 'is equal',
value: 'eq',
},
{
text: 'is not equal',
value: 'neq',
},
{
text: 'is like',
value: 'like',
},
{
text: 'is not like',
value: 'nlike',
},
{
text: 'is empty',
value: 'empty',
ignoreVal: true,
},
{
text: 'is not empty',
value: 'notempty',
ignoreVal: true,
},
{
text: 'is null',
value: 'null',
ignoreVal: true,
},
{
text: 'is not null',
value: 'notnull',
ignoreVal: true,
},
{
text: 'is checked',
value: 'checked',
ignoreVal: true,
allowedTypes: ['boolean'],
},
{
text: 'is not checked',
value: 'notchecked',
ignoreVal: true,
allowedTypes: ['boolean'],
},
{
text: 'contains all of',
value: 'allof',
types: ['MultiSelect'],
},
{
text: 'contains any of',
value: 'anyof',
types: ['MultiSelect'],
},
{
text: 'does not contain all of',
value: 'nallof',
types: ['MultiSelect'],
},
{
text: 'does not contain any of',
value: 'nanyof',
types: ['MultiSelect'],
},
{
text: '>',
value: 'gt',
},
{
text: '<',
value: 'lt',
},
{
text: '>=',
value: 'gte',
},
{
text: '<=',
value: 'lte',
},
]