diff --git a/src/components/ui/filter/FilterInput.vue b/src/components/ui/filter/FilterInput.vue index 799a7d91ba9a7..a7a97c64a4a29 100644 --- a/src/components/ui/filter/FilterInput.vue +++ b/src/components/ui/filter/FilterInput.vue @@ -4,6 +4,7 @@ import { debounce } from '@/utils'; defineProps<{ id?: string; + prefixIcon?: Icon; label?: string; placeholder?: string; }>(); @@ -45,6 +46,10 @@ defineOptions({ name: 'ClFilterInput' }); @clear="onClear" @input="onChange" @keyup.enter="onEnter" - /> + > + + diff --git a/src/interfaces/layout/content/list/ListLayout.d.ts b/src/interfaces/layout/content/list/ListLayout.d.ts index f616342699744..85cb04f123065 100644 --- a/src/interfaces/layout/content/list/ListLayout.d.ts +++ b/src/interfaces/layout/content/list/ListLayout.d.ts @@ -29,6 +29,7 @@ export declare global { interface ListAction { id?: string; label?: string; + prefixIcon?: Icon; action?: string; className?: string; size?: BasicSize; diff --git a/src/layouts/content/list/ListLayout.vue b/src/layouts/content/list/ListLayout.vue index fe0d5d3bdc584..30c5b0c6e6b7b 100644 --- a/src/layouts/content/list/ListLayout.vue +++ b/src/layouts/content/list/ListLayout.vue @@ -143,8 +143,10 @@ defineOptions({ name: 'ClListLayout' }); >