vue-table-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vue-table-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9bfcf6c379149d441face3c14ae14db4c78722c4da1acf7f2cb775aabf1274d7. Verify the upstream source and version against https://github.com/jiushiwon/wg-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Vue general-purpose table skill. A Vue3 + TypeScript generic-component solution with 23 variants and 3 standalone components. It conforms to the vue-theme-skill / vue-style-skill / base-card container contract, forbids mixing any third-party UI libraries, and strongly depends on base-button, base-status, and base-card. Implemented without semantic HTML table tags, using only <div>, <span> and CSS3. Supports core features such as fixed columns, action columns, sorting, filtering, selection, expansion, editing, tree data, virtual scrolling, and drag-and-drop reordering.
Introduction source: third_party · jiushiwon · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: vue-table-skill
description: Vue 通用表格技能。Vue3 + TypeScript 泛型组件,23 种形态,3 个独立组件。对齐 vue-theme-skill / vue-style-skill / base-card 容器契约,禁止混入任何第三方 UI 库。强依赖 base-button / base-status / base-card。零 HTML5 标签,全部用 <div> <span> + CSS3 实现。支持固定列、操作列、排序、筛选、选择、展开、编辑、树形数据、虚拟滚动、拖拽排序等核心功能。
trigger: |
帮我做一个表格
做一个数据表格
做一个用户表格
做一个产品列表
做一个订单表格
做一个可排序的表格
做一个可筛选的表格
做一个带分页的表格
做一个可选择行的表格
做一个带固定列的表格
做一个带操作列的表格
做一个可编辑的表格
做一个树形表格
做一个加载中效果
做一个分页组件vue-table-skill 表格技能
🎯 定位
Vue3 + TypeScript 泛型表格组件,支持 23 种形态,包含 3 个独立组件:
base-table- 通用表格组件(23 种形态)base-loading- 加载中组件(7 种动画 / 5 种尺寸 / 5 种主题)base-paginated- 分页组件(5 种模式 / 3 种尺寸 / 3 种形状)
核心约束:
- ✅ 零 HTML5 标签(
<button><input><select><table>全部禁用) - ✅ 全部用
<div><span>+ CSS3 实现 - ✅ 强依赖
<base-button><base-status><base-card> - ✅ 全部使用
var(--*)Token
📦 组件清单
1. base-table 通用表格(23 种形态)
| # | 形态 | 说明 | 参数 |
|---|---|---|---|
| 1 | 基础表格 | 默认形态 | - |
| 2 | 固定列 | 左/右固定列 | fixed: 'left'\|'right' |
| 3 | 操作列 | 编辑/删除/自定义 | actions |
| 4 | 可选择行 | 自定义复选框 | selectable |
| 5 | 可排序 | 表头排序 | sortable |
| 6 | 可筛选 | 列筛选 | filterable |
| 7 | 可展开行 | 详情展开 | expandable |
| 8 | 表头分组 | 多级表头 | children |
| 9 | 合并单元格 | 行列合并 | spanMethod |
| 10 | 行编辑 | 单元格编辑 | editable |
| 11 | 树形数据 | 树形结构 | treeData |
| 12 | 虚拟滚动 | 大数据量 | virtual |
| 13 | 拖拽排序 | 拖拽调整 | dragSort |
| 14 | 可调整列宽 | 拖拽列宽 | resizable |
| 15 | 汇总行 | 底部汇总 | showSummary |
| 16 | 斑马纹 | 隔行变色 | striped |
| 17 | 边框 | 带边框 | bordered |
| 18 | 悬停高亮 | 鼠标悬停 | hover |
| 19 | 紧凑模式 | 减少内边距 | compact |
| 20 | 固定表头 | 表头固定 | height |
| 21 | 加载中 | 加载状态 | loading |
| 22 | 空状态 | 无数据 | emptyText |
| 23 | 分页表格 | 内置分页 | pagination |
2. base-loading 加载中(7 种动画)
| 动画 | 说明 |
|---|---|
| dots | 三点弹跳(默认) |
| bar | 条状横扫 |
| ring | 圆环旋转 |
| pulse | 脉冲扩散 |
| wave | 波浪起伏 |
| cube | 方块翻转(3D) |
| ripple | 涟漪扩散 |
类型 / 5 种:container / fullscreen / section / inline / overlay 尺寸 / 5 种:xs / sm / md / lg / xl 主题 / 5 种:primary / success / warning / danger / info
3. base-paginated 分页(5 种模式)
| 模式 | 说明 | 适用场景 |
|---|---|---|
| classic | 经典分页(数字按钮 + 上下页) | 桌面端默认 |
| button | 按钮组(首末页 + 上下页) | 卡片风格 |
| dropdown | 下拉页码 | 页数多时 |
| simple | 简洁模式 | 移动端 |
| scroll | 滚动加载 | 无限滚动 |
尺寸 / 3 种:sm / md / lg 形状 / 3 种:round / square / circle 主题 / 5 种:primary / success / warning / danger / info 位置 / 3 种:left / center / right
🚀 快速开始
基础表格
<template>
<base-card title="用户列表">
<base-table :data="users" :columns="columns" hover />
</base-card>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const columns = [
{ key: 'name', title: '姓名' },
{ key: 'age', title: '年龄' },
{ key: 'email', title: '邮箱' },
]
const users = ref([
{ name: '张三', age: 28, email: 'zhangsan@example.com' },
{ name: '李四', age: 32, email: 'lisi@example.com' },
])
</script>
带固定列、操作列、状态列
<template>
<base-card title="用户管理">
<base-table
:data="users"
:columns="columns"
hover
striped
bordered
@edit="handleEdit"
@delete="handleDelete"
/>
</base-card>
</template>
<script setup lang="ts">
const columns = [
{ key: 'name', title: '姓名', fixed: 'left', width: 120 },
{ key: 'age', title: '年龄', sortable: true, width: 100 },
{
key: 'status',
title: '状态',
width: 120,
render: (row) => h(BaseStatus, {
type: row.active ? 'success' : 'default',
variant: 'light',
size: 'sm',
}, () => row.active ? '启用' : '禁用'),
},
{
key: 'action',
title: '操作',
fixed: 'right',
width: 240,
actions: [
{ label: '查看', type: 'primary', variant: 'outline', event: 'view' },
{ label: '编辑', type: 'primary', event: 'edit' },
{ label: '删除', type: 'danger', variant: 'outline', event: 'delete' },
],
},
]
</script>
表格 + 分页 + 加载
<template>
<base-card title="订单管理">
<base-loading :loading="loading" mode="dots" text="加载订单...">
<base-table :data="orders" :columns="columns" hover />
</base-loading>
<base-paginated
:current="pagination.current"
:page-size="pagination.pageSize"
:total="pagination.total"
show-total
show-size-changer
show-quick-jumper
position="right"
@page-change="handlePageChange"
/>
</base-card>
</template>
⚠️ 容器原则
所有组件必须嵌入
<base-card>使用。
<!-- ✅ 正确 -->
<base-card title="用户列表">
<base-table :data="users" :columns="columns" />
</base-card>
<!-- ❌ 错误 -->
<base-table :data="users" :columns="columns" />
🚫 红线
- ❌ 禁止裸用组件(必须
<base-card>包裹) - ❌ 禁止裸色值 / 裸 px(必须
var(--*)) - ❌ 禁止使用
<button><input><select><table><th><td>等 HTML5 标签 - ❌ 禁止自写按钮样式(必须用
<base-button>) - ❌ 禁止自写状态标签(必须用
<base-status>) - ❌ 禁止混入 Element Plus / 任何第三方组件库
🔗 依赖关系
vue-table-skill
├── base-table(强依赖 base-button + base-status + base-card)
├── base-loading(依赖 base-card)
└── base-paginated(强依赖 base-button + base-card)
依赖:
├── vue-button-skill(base-button)
├── vue-status-skill(base-status)
├── vue-card-skill(base-card)
└── vue-theme-skill(CSS Variables)
📁 文件结构
vue-table-skill/
├── SKILL.md # 技能入口
├── README.md # 说明文档
├── base-table.md # 表格组件文档
├── base-loading.md # 加载组件文档
├── base-paginated.md # 分页组件文档
└── demo-components/
└── base-table/
└── html/
├── base-table.html # 表格 Demo(16 个)
├── base-loading.html # 加载 Demo(6 个)
├── base-paginated.html # 分页 Demo(9 个)
├── demo.css # 共享样式
├── demo.js # 表格渲染
├── paginated.js # 分页渲染
└── loading.js # 加载渲染
📚 参考
- vue-theme-skill — 主题变量
- vue-style-skill — 样式规范
- vue-button-skill — base-button
- vue-status-skill — base-status
- vue-card-skill — base-card
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Vue3 + TypeScript 泛型表格组件,支持 23 种形态,覆盖固定列、排序、筛选、分页、树形数据等核心功能
- 面向前端开发者解决通用表格需求,具有明确且广泛的使用场景
Highlights
- trigger 字段覆盖多种表格相关变体(基础表格、用户表格、可排序、可筛选、分页等),边界清晰
- 能有效命中目标用户意图,无明显误触或漏触风险
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但未明确说明适用边界和使用时机
Recommendation: 建议补充 When to Use 章节,说明该 Skill 最适合的应用场景和使用限制
Highlights
- 文档结构清晰,分定位、组件清单、快速开始、容器原则、红线、依赖关系、文件结构等模块
- 提供了多个端到端示例代码,frontmatter 完整
Highlights
- 组件依赖关系明确(强依赖 base-button/base-status/base-card)
- 有容器原则约束确保正确使用,参数说明清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.