mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor
This commit is contained in:
parent
855be4bfa1
commit
5250943440
19 changed files with 86 additions and 247 deletions
|
@ -42,7 +42,6 @@ export default {
|
|||
type: Array,
|
||||
default: null
|
||||
},
|
||||
filterInputProps: null,
|
||||
virtualScrollerOptions: {
|
||||
type: Object,
|
||||
default: null
|
||||
|
|
6
components/lib/listbox/Listbox.d.ts
vendored
6
components/lib/listbox/Listbox.d.ts
vendored
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue