This commit is contained in:
tugcekucukoglu 2024-03-19 17:14:13 +03:00
parent 855be4bfa1
commit 5250943440
19 changed files with 86 additions and 247 deletions

View file

@ -42,7 +42,6 @@ export default {
type: Array,
default: null
},
filterInputProps: null,
virtualScrollerOptions: {
type: Object,
default: null

View file

@ -7,7 +7,7 @@
* @module listbox
*
*/
import { InputHTMLAttributes, VNode } from 'vue';
import { VNode } from 'vue';
import { ComponentHooks } from '../basecomponent';
import { InputTextPassThroughOptions } from '../inputtext';
import { PassThroughOptions } from '../passthrough';
@ -303,10 +303,6 @@ export interface ListboxProps {
* Fields used when filtering the options, defaults to optionLabel.
*/
filterFields?: string[] | undefined;
/**
* Used to pass all properties of the HTMLInputElement to the filter input inside the component.
*/
filterInputProps?: InputHTMLAttributes | undefined;
/**
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
* @type {VirtualScrollerProps}

View file

@ -14,7 +14,7 @@
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
<div v-if="filter" :class="cx('header')" v-bind="ptm('header')">
<div :class="cx('filterContainer')" v-bind="ptm('filterContainer')">
<LInputText
<InputText
v-model="filterValue"
type="text"
:class="cx('filterInput')"
@ -30,7 +30,6 @@
@input="onFilterChange"
@blur="onFilterBlur"
@keydown="onFilterKeyDown"
v-bind="filterInputProps"
:pt="ptm('filterInput')"
/>
@ -737,9 +736,9 @@ export default {
ripple: Ripple
},
components: {
LInputText: InputText,
VirtualScroller: VirtualScroller,
SearchIcon: SearchIcon
InputText,
VirtualScroller,
SearchIcon
}
};
</script>