From bd3ff54eac73e01e212050ed2600a37f58349ec5 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 24 Jan 2024 10:05:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=97=A5=E5=BF=97=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drawer-filter/src/DrawerFilter.vue | 12 +++++-- .../drawer-filter/src/DrawerTreeFilter.vue | 35 +++++++++++++++---- .../components/drawer-main/src/DrawerMain.vue | 2 ++ de-xpack | 2 +- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/components/drawer-filter/src/DrawerFilter.vue b/core/core-frontend/src/components/drawer-filter/src/DrawerFilter.vue index 06de4f472f..07d807af03 100644 --- a/core/core-frontend/src/components/drawer-filter/src/DrawerFilter.vue +++ b/core/core-frontend/src/components/drawer-filter/src/DrawerFilter.vue @@ -2,7 +2,8 @@ import { propTypes } from '@/utils/propTypes' import { ElSelect, ElOption } from 'element-plus-secondary' import { computed, reactive } from 'vue' - +import { useI18n } from '@/hooks/web/useI18n' +const { t } = useI18n() const props = defineProps({ optionList: propTypes.arrayOf( propTypes.shape({ @@ -10,7 +11,13 @@ const props = defineProps({ name: propTypes.string }) ), - title: propTypes.string + title: propTypes.string, + property: { + type: Object, + default: () => { + placeholder: '' + } + } }) const state = reactive({ @@ -46,6 +53,7 @@ defineExpose({ v-model="state.activeStatus" value-key="id" filterable + :placeholder="t('common.please_select') + props.property.placeholder" multiple @change="selectStatus" > diff --git a/core/core-frontend/src/components/drawer-filter/src/DrawerTreeFilter.vue b/core/core-frontend/src/components/drawer-filter/src/DrawerTreeFilter.vue index aa06ae72d4..2eb1a307f9 100644 --- a/core/core-frontend/src/components/drawer-filter/src/DrawerTreeFilter.vue +++ b/core/core-frontend/src/components/drawer-filter/src/DrawerTreeFilter.vue @@ -1,8 +1,15 @@