安装 npmi vue-virtual-scroller@next 1. 安装完后 package.js 中会多出 "vue-virtual-scroller": "^2.0.0-alpha.1" 1. main.js // vue virtual scroller import "vue-virtual-scroller/dist/vue-virtual-scroller.css" // 引入它的 css import VueVirtualScroller from "...
npm install --save vue-virtual-scroller@next yarn add vue-virtual-scroller@next Default importInstall all the components:import VueVirtualScroller from 'vue-virtual-scroller' app.use(VueVirtualScroller)Use specific components:import { RecycleScroller } from 'vue-virtual-scroller' app.component('...
I found a solution, you just need to install thenextbranchpnpm add vue-virtual-scroller@next. scrollToBottom not working.. Assignees No one assigned Labels None yet Projects None yet Milestone No milestone Development No branches or pull requests ...
yarn add vue-virtual-scroller@next Default importInstall all the components:import VueVirtualScroller from 'vue-virtual-scroller' app.use(VueVirtualScroller)Use specific components:import { RecycleScroller } from 'vue-virtual-scroller' app.component('RecycleScroller', RecycleScroller)...
import{createApp}from'vue'import{VirtualScroller}from'vue-virtual-scroller-classic'import{ObserveVisibility}from'vue-observe-visibility';constapp=createApp({})// latest release of dependency vue-observe-visibility uses a vue 2 API, this// ensures compatibility until next releaseapp.directive('observe...
$ yarn add vue-virtual-scroller@next # NPM $ npm i vue-virtual-scroller@next Description: The Vue Virtual Scroller Component allows for smooth scrolling with any amount of data. Compatible with both Vue 3 and Vue 2. Components Included: ...
ref的值在安装组件之前为null。您必须将无限滚动器的初始化推迟到onMounted:
ref的值在安装组件之前为null。您必须将无限滚动器的初始化推迟到onMounted:
{ "name": "vue-virtual-scroller-monorepo", "version": "2.0.0-beta.8", "private": true, "scripts": { "build": "pnpm run -r --filter=!demo build", "release": "pnpm run lint && pnpm run build && sheep release -b master --tag next", "lint": "eslint --ext .js,.vue pack...
It would appear that if you pass an empty array of items to<virtual-scrollerthen the following error is raised: [Vue warn]: Error in nextTick: "TypeError: Cannot read property 'accumulator' of undefined" For example if you have virtual-scroller setup as follows then: ...