From 08e847d14e1cf7765c212f06396c878216b62d67 Mon Sep 17 00:00:00 2001 From: teukkk Date: Sun, 17 Nov 2024 20:27:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89-?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5-=E6=94=AF?= =?UTF-8?q?=E6=8C=81CASCADER=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pure/ms-advance-filter/filterDrawer.vue | 15 +++++++++++++++ .../components/pure/ms-advance-filter/index.ts | 6 ++++++ frontend/src/enums/advancedFilterEnum.ts | 1 + 3 files changed, 22 insertions(+) diff --git a/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue b/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue index 740acdd38e..fa408d72b3 100644 --- a/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue +++ b/frontend/src/components/pure/ms-advance-filter/filterDrawer.vue @@ -136,6 +136,19 @@ :placeholder="t('common.pleaseSelect')" :field-names="item.treeSelectProps?.fieldNames" /> + = { INPUT: { type: 'INPUT', }, + CASCADER: { + type: 'CASCADER', + propsKey: 'cascaderProps', + props: { multiple: true, valueKey: 'value', labelKey: 'text', options: [] }, + }, SELECT: { type: 'SELECT', propsKey: 'selectProps', diff --git a/frontend/src/enums/advancedFilterEnum.ts b/frontend/src/enums/advancedFilterEnum.ts index 2e0e4d94da..1851c6bbe2 100644 --- a/frontend/src/enums/advancedFilterEnum.ts +++ b/frontend/src/enums/advancedFilterEnum.ts @@ -24,6 +24,7 @@ export enum FilterType { TREE_SELECT = 'TreeSelect', TEXTAREA = 'textArea', BOOLEAN = 'boolean', + CASCADER = 'Cascader', } export enum ViewTypeEnum {