Full-stack-skills avue-crud
Builds configuration-driven CRUD tables with the Avue framework, including column definition, pagination, search, sorting, row operations (add/edit/delete), data export, and form validation. Use when the user needs to create data management interfaces with Avue CRUD tables in Vue 2 applications.
install
source · Clone the upstream repo
git clone https://github.com/partme-ai/full-stack-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/avue-skills/avue-crud" ~/.claude/skills/partme-ai-full-stack-skills-avue-crud && rm -rf "$T"
manifest:
skills/avue-skills/avue-crud/SKILL.mdsource content
When to use this skill
Use this skill whenever the user wants to:
- Build CRUD tables with Avue (create, read, update, delete)
- Configure table columns, pagination, search, and sorting
- Handle row events (@row-save, @row-update, @row-del)
- Export table data or implement batch operations
- Add form validation inside CRUD table dialogs
How to use this skill
Workflow
- Define the option object - Configure columns, table behavior, and form rules
- Bind data and page - Connect data array and pagination to the component
- Handle events - Implement save, update, and delete event handlers
- Load detailed examples - Each feature has a file in
examples/
Quick-Start Example: CRUD Table with Pagination
<template> <avue-crud :option="option" :data="data" :page.sync="page" @row-save="handleSave" @row-update="handleUpdate" @row-del="handleDel" @on-load="loadData" /> </template> <script> export default { data() { return { data: [], page: { currentPage: 1, pageSize: 10, total: 0 }, option: { border: true, index: true, selection: true, column: [ { label: 'Name', prop: 'name', search: true, rules: [{ required: true, message: 'Name is required' }] }, { label: 'Email', prop: 'email', search: true }, { label: 'Status', prop: 'status', type: 'select', dicData: [ { label: 'Active', value: 1 }, { label: 'Inactive', value: 0 } ]} ] } } }, methods: { loadData() { // Fetch data from API using this.page.currentPage and this.page.pageSize }, handleSave(row, done) { /* POST to API, then call done() */ done() }, handleUpdate(row, index, done) { /* PUT to API, then call done() */ done() }, handleDel(row, index) { /* DELETE from API, then remove from this.data */ } } } </script>
Feature Reference
| Feature | File |
|---|---|
| Column config | |
| CRUD operations | |
| Pagination | |
| Search | |
| Export | |
| Form validation | |
API Reference
- Component props, events, methodsapi/crud-api.md
- Column types, renderers, formattersapi/column-api.md
- Table, form, and button optionsapi/option-api.md
Best Practices
- Configuration-driven - Define all table behavior in the
object, not in template markupoption - Call done() in event handlers - Always call
after save/update to close the dialogdone() - Use column types - Set
,type: 'select'
, etc. for automatic form controlstype: 'date' - Paginate server-side - Use
with page params for large datasets@on-load - Add search columns - Set
on columns to enable the search barsearch: true
Resources
- Official Docs: https://avuejs.com/crud/crud-doc.html
Keywords
Avue CRUD, avue-crud, table, CRUD, 增删改查, pagination, search, column, form, 表格, 分页, data management