From cd78192f84280956c206e4f6cfa04b79914272cf Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 14 Apr 2023 22:46:21 +0800 Subject: [PATCH] fix: linkage relationship data condition judgment failed (#1681) --- .../core/client/src/schema-component/common/utils/logic.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/core/client/src/schema-component/common/utils/logic.js b/packages/core/client/src/schema-component/common/utils/logic.js index 57236334d..fd3f84a61 100644 --- a/packages/core/client/src/schema-component/common/utils/logic.js +++ b/packages/core/client/src/schema-component/common/utils/logic.js @@ -65,12 +65,18 @@ http://ricostacruz.com/cheatsheets/umdjs.html $lte: function (a, b, c) { return c === undefined ? a <= b : a <= b && b <= c; }, + $exists: function (a) { + return jsonLogic.truthy(a); + }, $notEmpty: function (a) { return jsonLogic.truthy(a); }, $empty: function (a) { return !jsonLogic.truthy(a); }, + $notExists: function (a) { + return !jsonLogic.truthy(a); + }, '%': function (a, b) { return a % b; },