npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-quasar-table-wrapper

v0.0.3

Published

A lightweight Vue 3 table wrapper component built with Quasar, providing a flexible and reusable data table component for your projects.

Readme

vue-quasar-table-wrapper

A lightweight Vue 3 table wrapper component built with Quasar, providing a flexible and reusable data table component for your projects.

Installation

npm install vue-quasar-table-wrapper quasar vue

Requirements

  • Vue: ^3.5.25
  • Quasar: ^2.18.6

Usage

Register Plugin Globally

import { createApp } from 'vue';
import Quasar from 'quasar';
import quasarIconSet from 'quasar/icon-set/material-icons';
import '@quasar/extras/material-icons/material-icons.css';
import 'quasar/dist/quasar.css';
import App from './App.vue';
import VueQuasarTableWrapper from 'vue-quasar-table-wrapper';

const app = createApp(App);

app.use(Quasar, {
  iconSet: quasarIconSet,
});
app.use(VueQuasarTableWrapper);
app.mount('#app');

Use Components in Templates

<template>
  <q-table-wrapper
    :rows="tableData"
    :columns="tableColumns"
    :pagination="paginationOptions"
    row-key="id"
  >
    <template #top>
      <div class="text-h6">My Data Table</div>
    </template>
  </q-table-wrapper>
</template>

<script setup lang="ts">
import { ref } from 'vue';

const tableData = ref([
  { id: 1, name: 'John', age: 28 },
  { id: 2, name: 'Jane', age: 32 },
]);

const tableColumns = ref([
  { name: 'id', label: 'ID', field: 'id' },
  { name: 'name', label: 'Name', field: 'name' },
  { name: 'age', label: 'Age', field: 'age' },
]);

const paginationOptions = ref({});
</script>

Components

QTableWrapper

A flexible wrapper around Quasar's q-table component with enhanced slot support.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | rows | Array | [] | Table data rows | | columns | Array | [] | Column definitions | | rowKey | String | 'id' | Unique row identifier | | pagination | Object | {} | Pagination configuration | | loading | Boolean | false | Loading state indicator |

Slots

All main Quasar q-table slots are forwarded:

  • top - Top section
  • top-left - Top-left corner
  • top-right - Top-right corner
  • header - Header cells
  • body - Body rows
  • body-cell - Individual body cells
  • pagination - Pagination controls
  • loading - Loading indicator
  • no-data - Empty state (default: "No data available")

Example

<q-table-wrapper
  :rows="items"
  :columns="cols"
  row-key="id"
  :loading="isLoading"
>
  <template #top>
    <span class="text-subtitle2">Item List</span>
  </template>

  <template #body-cell="props">
    <q-td :props="props">
      {{ props.row[props.col.field] }}
    </q-td>
  </template>
</q-table-wrapper>

Project Structure

src/
├── index.ts              # Entry point and plugin definition
├── shims-vue.d.ts        # Vue SFC type declarations
└── components/
    └── QTableWrapper.vue # Table wrapper component

TypeScript Support

Full TypeScript support is included with type definitions (dist/index.d.ts). Components are fully typed for IDE autocomplete and type checking.

License

ISC

Author

twd

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.