vue-virtual-scroller icon indicating copy to clipboard operation
vue-virtual-scroller copied to clipboard

Disable RENDER_FUNCTION to to work with vue compat

Open baptistejamin opened this issue 4 years ago • 2 comments

Hello!

We are using your package at Crisp and recently we started to migrate our project to Vue 3 using @vue/compat.

During the migration process, we discovered that DynamicScrollerItem is rendered using the compatibility renderer.

Disabling RENDER_FUNCTION fixes the problem

baptistejamin avatar Jul 23 '21 13:07 baptistejamin

I can tell its working, added locally into DynamicScrollerItem

 compatConfig: {
    RENDER_FUNCTION: false
  },

and its working, @Akryum can we please have this one merged, I would appreciate that :)

Szymon-dziewonski avatar Oct 08 '21 10:10 Szymon-dziewonski

I think you can import DynamicScrollerItem and re-export a modified version

import { DynamicScrollerItem } from 'vue-virtual-scroll'

DynamicScrollerItem.compatConfig = {...}

export const CompatDynamicScrollerItem

Akryum avatar May 03 '22 09:05 Akryum