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

Is this an expected behavior of field callback? #182

Closed Tarasovych closed 6 years ago

Tarasovych commented 6 years ago
<vuetable ref="vuetable"
                  api-url="http://vuetable.ratiw.net/api/users"
                  :fields="fields"
                  pagination-path=""></vuetable>

and

data() {
            return {
                fields: [
                    'name', 'email',
                    {
                        // name: 'screenshot',
                        // callback: 'screenshot'
                    }
                ]
            }
        },

causes that no data is loaded (even no api-url is called), because of empty object after 'name', 'email',.