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 @@