Vueye table :

Description

It's a data table created using Vue.js, which has some features like :
  1. Show data per page
  2. Sort columns
  3. Cells Custom rendering
  4. CRUD Actions
  5. Customize the columns display
  6. Filter data by fields

Installation :

npm install vueye-table --save

Requirements :

To make this component work with Vue 2, you should use the Vue composition-api plugin by importing it and using it in main.js as follows :

 
import Vue from 'vue';
import App from './App.vue';
import VueComp from '@vue/composition-api';

Vue.use(VueComp);

new Vue({

render: h => h(App),
}).$mount('#app'); 

Columns configuration:

The columns prop value could have the following structure :

  columns: [
      {
        key: "id",
        label: "ID",
        sortable: true,
        type: "number",
        display: true
      },
      ...
 ] 
Key
Description
keythe corresponding field in the data array, it could be a path to a nested field
labelthe text to show in the table head
sortableAllow or not the column sorting
typethe field type
displayshow the column
Preview
Code

Employees

ID
Employee Name
Employee Salary
Address
Actions
1Tiger Nixon320800Gwenborough
2Garrett Winters170750Wisokyburgh
3Ashton Cox86000McKenziehaven
4Cedric Kelly433060South Elvis
5Airi Satou162700
6Brielle Williamson372000
7Herrod Chandler137500
8Rhona Davidson327900
9Colleen Hurst205500
10Sonya Frost103600