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

wz-grid

v1.3.6

Published

Vue 2/3 Universal High-Quality Grid Component

Readme

WZ-Grid

Vue 2 & 3를 동시에 지원하는 엔터프라이즈급 고성능 데이터 그리드 컴포넌트

npm version npm downloads bundle size Vue 2 & 3 TypeScript License


주요 기능

| 기능 | 설명 | | ----------------- | --------------------------------------------- | | ⚡ 가상 스크롤 | 수십만 행도 버벅임 없이 렌더링 | | 📋 Excel 연동 | Ctrl+C/V로 Excel과 데이터 완벽 호환 | | 🔒 실시간 검증 | required, min, max, regex 등 컬럼별 검증 규칙 | | 🎨 10종 컬럼 타입 | text, number, select, date, badge, button 등 | | 🖱️ 드래그 & 드롭 | 컬럼/행 순서를 드래그로 자유롭게 변경 | | 📌 컬럼 고정 | 좌측 컬럼 sticky 고정 | | 🔍 정렬 & 필터 | 다중 정렬 (Shift+클릭), 컬럼별 실시간 필터 | | 📄 페이징 | 내장 페이지네이션 UI | | 🖨️ 인쇄 & CSV | 브라우저 인쇄 최적화, CSV 내보내기 | | 🔧 Vue 2 & 3 | vue-demi 기반, 두 버전 동시 지원 |


설치

npm install wz-grid

CSS를 반드시 임포트해야 합니다:

// main.ts 또는 main.js
import "wz-grid/dist/wz-grid.css";

빠른 시작

<script setup lang="ts">
import { ref } from "vue";
import { WZGrid } from "wz-grid";
import type { Column } from "wz-grid";

const columns = ref<Column[]>([
  { key: "id", title: "ID", width: 60 },
  { key: "name", title: "이름", width: 150, editable: true },
  {
    key: "dept",
    title: "부서",
    width: 120,
    editable: true,
    type: "select",
    options: [
      { value: "dev", label: "개발팀" },
      { value: "biz", label: "사업팀" },
    ],
  },
  {
    key: "score",
    title: "점수",
    width: 80,
    type: "number",
    align: "right",
    rules: [
      { type: "min", value: 0 },
      { type: "max", value: 100 },
    ],
  },
]);

const rows = ref([
  { id: 1, name: "홍길동", dept: "dev", score: 95 },
  { id: 2, name: "김철수", dept: "biz", score: 80 },
]);

const handleUpdate = ({ row, colKey, value }: any) => {
  const target = rows.value.find((r) => r.id === row.id);
  if (target) (target as any)[colKey] = value;
};
</script>

<template>
  <WZGrid
    :columns="columns"
    :rows="rows"
    :height="500"
    :use-checkbox="true"
    :show-add="true"
    :show-delete="true"
    :use-filter="true"
    @update:cell="handleUpdate"
    @click:add="rows.push({ id: Date.now(), name: '', dept: '', score: 0 })"
  />
</template>

필수 조건: 각 row 객체에는 반드시 고유한 id 필드가 있어야 합니다.


Props

| Prop | 타입 | 기본값 | 설명 | | :------------------- | :--------- | :-----: | :------------------------ | | columns | Column[] | — | (필수) 컬럼 정의 배열 | | rows | any[] | — | (필수) 행 데이터 배열 | | height | number | 500 | 그리드 높이(px) | | rowHeight | number | 40 | 행 높이(px) | | usePaging | boolean | false | 페이징 활성화 | | pageSize | number | 20 | 페이지당 행 수 | | useCheckbox | boolean | false | 체크박스 열 | | showAdd | boolean | false | 툴바 추가 버튼 | | showDelete | boolean | false | 툴바 삭제 버튼 | | useFilter | boolean | false | 컬럼별 필터 행 | | showColumnSettings | boolean | false | 컬럼 표시/숨기기 버튼 | | groupBy | string | '' | 그룹핑 기준 컬럼 key | | useContextMenu | boolean | false | 우클릭 컨텍스트 메뉴 | | useRowDrag | boolean | false | 행 드래그 재배치 | | autoMergeCols | string[] | [] | 자동 셀 병합 컬럼 목록 |


Events

| 이벤트 | 페이로드 | 설명 | | :----------------- | :------------------------------- | :------------- | | @update:cell | { rowIdx, row, colKey, value } | 셀 값 변경 | | @sort | SortConfig[] | 정렬 변경 | | @resize:column | { colIdx, colKey, width } | 컬럼 너비 변경 | | @reorder:columns | { srcKey, targetKey } | 컬럼 순서 변경 | | @reorder:rows | { from, to, position } | 행 순서 변경 | | @click:add | — | 추가 버튼 클릭 | | @click:delete | any[] | 삭제 버튼 클릭 | | @click:button | { rowIdx, row, colKey } | button 셀 클릭 |


라이선스

MIT License — 개인, 상업적 사용 모두 무료입니다.

문의: [email protected]