From ba75e9c51c91e693e95393429b1cb6f80427976c Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 16 Aug 2021 13:48:28 +0300 Subject: [PATCH] Refactor #1451 - For Listbox --- src/components/listbox/Listbox.d.ts | 2 + src/components/listbox/Listbox.vue | 72 ++++++++++++++++++++--------- 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/src/components/listbox/Listbox.d.ts b/src/components/listbox/Listbox.d.ts index b0e325774..651f41015 100755 --- a/src/components/listbox/Listbox.d.ts +++ b/src/components/listbox/Listbox.d.ts @@ -1,4 +1,5 @@ import { VNode } from 'vue'; +import { VirtualScrollerProps } from '../virtualscroller'; interface ListboxProps { modelValue?: any; @@ -20,6 +21,7 @@ interface ListboxProps { filterFields?: string[]; emptyFilterMessage?: string; emptyMessage?: string; + virtualScrollerOptions?: VirtualScrollerProps; } declare class Listbox { diff --git a/src/components/listbox/Listbox.vue b/src/components/listbox/Listbox.vue index 429c2fc18..35512fba3 100755 --- a/src/components/listbox/Listbox.vue +++ b/src/components/listbox/Listbox.vue @@ -8,31 +8,38 @@
-