ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Attribute ":row-data" is ignored on component <component> because the component is a fragment instance: #109

Open davidpmtz opened 7 years ago

davidpmtz commented 7 years ago

Hi, Why I got this warning when I try to do this?:

import Action from './components/Action.vue'

Vue.component('custom-action',Action)

I'm new with vue.

ratiw commented 7 years ago

@davidpmtz Hard to say. Try checking your component template again.

davidpmtz commented 7 years ago

This is my template

<template>
    <div>
        <a href="#" class="btn btn-primary btn-xs" @click.prevent="edit(rowData)">
            <i class="fa fa-pencil" aria-hidden="true"></i>
        </a>
        <a href="#" class="btn btn-danger btn-xs" @click.prevent="destroy(rowData)">
            <i class="fa fa-trash-o" aria-hidden="true"></i>
        </a>
    </div>
</template>

I don't see any error that can generate the warning.

ratiw commented 7 years ago

@davidpmtz Your template looks fine. But the error said the component name is <component>, and I don't see any reference to that in your given template. Still advise to look for that.