From 9ffe6418f98ac45745ca8e35d28daff0c36d3be9 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 13 Apr 2022 23:17:48 +0800 Subject: [PATCH] fix: array operators schema --- .../interfaces/properties/operators.ts | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/client/src/collection-manager/interfaces/properties/operators.ts b/packages/client/src/collection-manager/interfaces/properties/operators.ts index 15c23e300..1eb06ce5c 100644 --- a/packages/client/src/collection-manager/interfaces/properties/operators.ts +++ b/packages/client/src/collection-manager/interfaces/properties/operators.ts @@ -12,22 +12,34 @@ export const array = [ label: '{{t("is")}}', value: '$match', selected: true, - schema: { 'x-component': 'Select' }, + schema: { + 'x-component': 'Select', + 'x-component-props': { mode: 'tags' }, + }, }, { label: '{{t("is not")}}', value: '$notMatch', - schema: { 'x-component': 'Select' }, + schema: { + 'x-component': 'Select', + 'x-component-props': { mode: 'tags' }, + }, }, { label: '{{t("contains")}}', value: '$anyOf', - schema: { 'x-component': 'Select' }, + schema: { + 'x-component': 'Select', + 'x-component-props': { mode: 'tags' }, + }, }, { label: '{{t("does not contain")}}', value: '$noneOf', - schema: { 'x-component': 'Select' }, + schema: { + 'x-component': 'Select', + 'x-component-props': { mode: 'tags' }, + }, }, { label: '{{t("is empty")}}', value: '$empty', noValue: true }, { label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },