vue-slim-tables

1,490 3
Install
npm install vue-slim-tables
Latest Version:0.3.13
Vue:3
Older releases:2
License:MIT
Last Updated:Dec 21, 2025
Links: GitHub  ·  npm
Maintainer: flafla

Vue Slim Tables

Installation & basic usage

yarn add vue-slim-tables
// or
npm install vue-slim-tables
<template>
  <VueSlimTables :columns="columns" :source="asyncSource" />
</template>

<script setup>
const columns = [
  { key: 'id', title: 'ID' },
  { key: 'name', title: 'Name' },
  { key: 'phone', title: 'Phone' }
]

const asyncSource = (params) => {
  return fetch('...', params).then((res) => res.json())
}
</script>

Props

Prop Type Required Description
columns Array true Array of column objects described below
source Function true async load
perPage Number false Number or rows to display. By default 25 will be used
Column object
Key Type Required Description
key String true Uniq key that used for ordering and slots
title String true Displayed in thead cell
orderable Boolean false Ordering by column key

Slots

Slot Props Description
#thead:before - Add a row before main
#thead { columns, orders } Rewrite the entire thead row
#thead:after - Add a row after main
#thead:${column.key} { column } Rewrite thead cell with custom html
#row { row, index, columns } Rewrite the entire tbody row
#row:empty - Rewrite empty table row markup
#row:loading - Rewrite loading table rows markup
#cell:${column.key} { row, index, column, value } Rewrite tbody cell with custom html
#pagination { page, rows } Rewrite pagination with your own implementation

Related Packages

@myena/vue-table

Vue Table components (client/server) used in ENA projects

3,191 29
geeklearners-vue-table

Table Component for vue js

1,075 0
vue3-table-lite

A simple and lightweight data table component for Vue.js 3. Features sorting, pa...

147,296 258
vue2-datatable-component

The best Datatable for Vue.js 2.x which never sucks

37,016 870

Version History

Version Released Vue License
0.3.13 ^3.3.0 MIT
0.3.12 ^3.3.0 MIT
0.3.11 ^3.3.0 MIT
0.3.10 ^3.3.0 MIT
0.3.9 ^3.3.0 MIT