DataPredicatePropType
配置示例
{
"dataPredicate": {
"operator": "AND",
"conditions": [
{
"dataField": "status",
"condition": "notEqual",
"value": "草稿"
}
]
}
}
| Name | Type | Default | Description |
|---|---|---|---|
| operator | 'AND' | 'OR' | conditions 是要全部满足还是只满足其中一个 | |
| conditions | Conditions | 匹配当前数据需要满足的条件列表,由 operator 来决定是全部满足还是只满足一个 |
Conditions
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| dataField | string | 数据字段的 id | ||
| field | string | ✔️ | 数据字段的 id,可以写 Variable Pattern | |
| condition | 'equals' | 'stringEquals' | 'notEqual' | 'stringNotEqual' | 'contains' | 'notContains' | 'startsWith' | 'endsWith' | 'lessThan' | 'lessThanOrEqual' | 'greaterThan' | 'greaterThanOrEqual' | 'blank' | 'notBlank' | 条件 | ||
| value | string | number | bool | ✔️ | 值 |