$watch<
T
>(source
,cb
,options
?):WatchStopHandle
• T extends string
| (...args
) => any
T
T
extends (...args
) => R
? (...args
) => any
: (...args
) => any
WatchOptions
<boolean
>
WatchStopHandle
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:130
getItemOffset(
index
):number
Get item offset from start.
number
index of item
number
getItemSize(
index
):number
Get item size.
number
index of item
number
scrollToIndex(
index
,opts
?):void
Scroll to the item specified by index.
number
index of item
options
void
scrollTo(
offset
):void
Scroll to the given offset.
number
offset from start
void
scrollBy(
offset
):void
Scroll by the given offset.
number
offset from current position
void
$:
ComponentInternalInstance
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:117
$data:
object
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:118
$props:
Partial
<object
> &Omit
<object
&VNodeProps
&AllowedComponentProps
&ComponentCustomProps
&Readonly
<ExtractPropTypes
<object
>> &object
,DefaultKeys
<object
>>
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:119
$attrs:
Data
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:120
$refs:
Data
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:121
$slots:
Readonly
<object
>
default: (
arg
) =>VNode
<RendererNode
,RendererElement
,object
>[]
any
number
VNode
<RendererNode
, RendererElement
, object
>[]
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:122
$root:
null
|ComponentPublicInstance
<object
,object
,object
,object
,object
,object
,object
,object
,false
,ComponentOptionsBase
<any
,any
,any
,any
,any
,any
,any
,any
,any
,object
,object
,string
,object
>,object
,object
>
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:123
$parent:
null
|ComponentPublicInstance
<object
,object
,object
,object
,object
,object
,object
,object
,false
,ComponentOptionsBase
<any
,any
,any
,any
,any
,any
,any
,any
,any
,object
,object
,string
,object
>,object
,object
>
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:124
$emit: (
event
, ...args
) =>void
& (event
, ...args
) =>void
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:125
$el:
any
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:126
$options:
ComponentOptionsBase
<ResolveProps
<object
,object
>,VirtualizerHandle
,object
,object
,object
,ComponentOptionsMixin
,ComponentOptionsMixin
,object
,string
,object
,object
,string
,SlotsType
<object
>> &MergedComponentOptionsOverride
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:127
$forceUpdate: () =>
void
void
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:128
$nextTick: <
T
,R
>(this
,fn
?) =>Promise
<Awaited
<R
>>
• T = void
• R = void
T
(this
) => R
Promise
<Awaited
<R
>>
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:129
optional
onScroll: (...args
) =>any
...[number
]
any
readonly
shift:boolean
=Boolean
While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.
readonly
data:unknown
[]
The data items rendered by this component.
readonly
optional
overscan:number
=Number
Number of items to render above/below the visible bounds of the list. You can increase to avoid showing blank items in fast scrolling.
4
readonly
optional
itemSize:number
=Number
Item size hint for unmeasured items. It will help to reduce scroll jump when items are measured if used properly.
- If not set, initial item sizes will be automatically estimated from measured sizes. This is recommended for most cases.
- If set, you can opt out estimation and use the value as initial item size.
readonly
horizontal:boolean
=Boolean
If true, rendered as a horizontally scrollable list. Otherwise rendered as a vertically scrollable list.
readonly
optional
keepMounted:number
[]
List of indexes that should be always mounted, even when off screen.
readonly
startMargin:number
If you put an element before virtualizer, you have to define its height with this prop.
readonly
optional
ssrCount:number
=Number
A prop for SSR. If set, the specified amount of items will be mounted in the initial rendering regardless of the container size until hydrated.
readonly
as: keyofIntrinsicElementAttributes
Component or element type for container element.
"div"
readonly
item: keyofIntrinsicElementAttributes
Component or element type for item element.
"div"
readonly
optional
scrollRef:HTMLElement
Reference to the scrollable element. The default will get the direct parent element of virtualizer.
optional
onScrollEnd: (...args
) =>any
...[]
any
readonly
optional
itemProps:ItemProps
A function that provides properties/attributes for item element
This prop will be merged into item
prop in the future
readonly
scrollOffset:number
Get current scrollTop, or scrollLeft if horizontal: true.
readonly
scrollSize:number
Get current scrollHeight, or scrollWidth if horizontal: true.
readonly
viewportSize:number
Get current offsetHeight, or offsetWidth if horizontal: true.
findStartIndex: () =>
number
Find the start index of visible range of items.
number
findEndIndex: () =>
number
Find the end index of visible range of items.
number