From 24446166dbbddfea05cc58347035c9da3cd4d396 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Tue, 19 Dec 2023 15:50:53 +0800 Subject: [PATCH] fix(filter): fix operatror --- packages/core/client/src/filter-provider/utils.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/filter-provider/utils.ts b/packages/core/client/src/filter-provider/utils.ts index e53bf308e..34d3b172d 100644 --- a/packages/core/client/src/filter-provider/utils.ts +++ b/packages/core/client/src/filter-provider/utils.ts @@ -84,7 +84,19 @@ export const transformToFilter = ( values = flatten(values, { breakOn({ value, path }) { // 下面操作符的值是一个数组,需要特殊处理 - if (['$dateBetween', '$in'].includes(operators[path])) { + if ( + [ + '$match', + '$notMatch', + '$anyOf', + '$noneOf', + '$childIn', + '$childNotIn', + '$dateBetween', + '$in', + '$notIn', + ].includes(operators[path]) + ) { return true; }