UNPKG

vue-good-table

Version:

A simple, clean data table for VueJS (2.x) with essential features like sorting, column filtering, pagination etc

16 lines (12 loc) 389 B
import VueGoodTable from './components/Table.vue'; const VueGoodTablePlugin = { install(Vue, options) { Vue.component(VueGoodTable.name, VueGoodTable); }, }; // Automatic installation if Vue has been added to the global scope. if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(VueGoodTablePlugin); } export default VueGoodTablePlugin; export { VueGoodTable };