Skip to content

⬅️ Back to Table of Contents

📄 component.ts

📊 Analysis Summary

Metric Count
📦 Imports 5
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/core/useVirtualList/component.ts

📦 Imports

Name Source
UseVirtualListOptions @vueuse/core
useVirtualList @vueuse/core
defineComponent vue
h vue
toRefs vue

Interfaces

UseVirtualListProps

Interface Code
export interface UseVirtualListProps {
  /**
   * data of scrollable list
   *
   * @default []
   */
  list: Array<any>
  /**
   * useVirtualList's options
   *
   * @default {}
   */
  options: UseVirtualListOptions
  /**
   * virtualList's height
   *
   * @default 300px
   */
  height: string
}

Properties

Name Type Optional Description
list Array<any>
options UseVirtualListOptions
height string