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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-z-table

v0.1.1

Published

Vue에서 사용 가능한 Table 플러그인입니다. 각 컬럼에서 사용할 Vue 컴포넌트를 정의할 수 있으며, 그만큼 자유도 높게 사용할 수 있습니다.

Readme

How to use

플러그인 등록

import Vue from 'vue'
import zTable from 'vue-z-table'

Vue.use(zTable)

내장 컴포넌트 사용

import { CheckboxHeader, Checkbox, ColumnHeader, Tooltip } from 'vue-z-table'

options

<template>
  <div>
    <z-table options="options" />
  </div>
</template>

<script>
export default {
  data () {
    return {
      options: {
        data: [], // {Array} - 표에서 사용할 데이터
        columns: [], // {Array} - 머리 열을 구성할 옵션
        rowAddable: false, // {Boolean} - 내장 행 추가 버튼을 사용할 지 여부
        infiniteScroll: false, // {Boolean} - 무한 스크롤 여부
        dataLengthLimit: Infinity, // {Number} - 추가 가능한 데이터의 개수
        tableDataChanged: function (data) {},
        rowDataChanged: function (row, value, status) {},
        // sortedInAscending: function () {},
        // sortedInDescending: function () {},
        columnHeaderSorted: function (columns) {},
        scrollEndPointObserved: function () {},
        checkedItemChanged: function (rows) {}
      }
    }        
  },
  methods: {
    useTo$zTable () {
      this.$zTable.redrawTableLayout()
      this.$zTable.setColumnOptions(columns)
      this.$zTable.setData(data)
      this.$zTable.unshiftData(data)
      this.$zTable.pushData(data)
      this.$zTable.setRow(row, value)
      this.$zTable.addRow(index, value)
      this.$zTable.removeRow(index)
      this.$zTable.removeCheckedRows()
      this.$zTable.addColumn(title, columns)
      this.$zTable.removeColumn(title)
      this.$zTable.unobserveScrollEndPoint()
    }  
  }
}
</script>

<style lang="scss">
  .z-table {
    .table__row {
      &--head {}
      &--body {}
    }
    .table__cell {
      &:focus {}
      &--head {}
      &--data {}
      &--checkbox {}
    }
  }
</style>

column options

import { Tooltip } from 'vue-z-table'
import SomeHeaderComponent from '~/SomeHeaderComponent'
import SomeDataComponent from '~/SomeDataComponent'
import SomeTooltipComponent from '~/SomeTooltipComponent'

const columns = [
  {
    field: '', // {String} - 머리 열의 고유 이름 (필수 속성)
    title: '', // {String} - 머리 열의 표시 이름
    width: 'auto', // {Number} - 'px'단위로 변환 || {String} - 'auto'
    resizable: true, // {Boolean} - 머리 열 가로 너비 조절 여부
    headerComponent: null, // {Component} - 머리 열에서 사용할 Vue 컴포넌트
    component: null, // {Component} - 일반 열에서 사용할 Vue 컴포넌트
    tooltipComponent: Tooltip, // {Component} - 툴팁으로 사용할 Vue 컴포넌트, 지정하지 않으면 내장 컴포넌트(Tooltip) 사용
    tooltip: '' // {String} - 툴팁 메시지, HTML 사용 가능
  },
  {
    field: 'title',
    title: 'My Title~',
    width: 230,
    resizable: false,
    headerComponent: SomeHeaderComponent,
    component: SomeDataComponent,
    tooltipComponent: SomeTooltipComponent,
    tooltip: 'This is <span style="color:red;">Tooltip</span>!'
  }
  {
    // ...
  }
]

component options for column

headerComponent

<script>
export default {
  props: {
    tableData: Array,
    columnData: Object,
    options: Object
  }
}
</script>

component

<script>
export default {
  props: {
    tableData: Array,
    rowData: Object,
    columnData: Object,
    cellId: String
  }
}
</script>

tooltipComponent

<script>
export default {
  props: {
    columnData: Object,
    tooltip: String
  }
}
</script>