Skip to content

Support vue-class-component #185

@Christilut

Description

@Christilut

Describe

I'm using vue-class-component but this plugin doesn't seem to work with it.

I always get this error: Invalid prop: type check failed for prop "dataComponent". Expected Object, got Function

I saw another issue with the same error but I don't think this problem is solved yet.

To Reproduce

      VirtualList(
        :size='161'
        :keeps='20'
        data-key='id'
        :data-sources='items'
        :data-component='itemComponent'
        )

...

import Item from './Item.vue'

export default class MyClass extends Mixins(MyMixin) {
  itemComponent: any = Item
}
@Component({})
export default class ResultItem extends Vue {
  @Prop()
  source: any
}

Other

  • Browser: Electron 6
    "vue-virtual-scroller": "^1.0.10",
    "vue-class-component": "7.2.2",
    "vue-template-compiler": "2.6.11",
    "vue": "2.6.11",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions