skills/avue-skills/avue-crud/SKILL.md
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.
npx skillsauth add teachingai/agent-skills avue-crudInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
examples/<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 | File |
|---------|------|
| Column config | examples/features/columns.md |
| CRUD operations | examples/features/crud-operations.md |
| Pagination | examples/features/pagination.md |
| Search | examples/features/search.md |
| Export | examples/features/export.md |
| Form validation | examples/advanced/validation.md |
api/crud-api.md - Component props, events, methodsapi/column-api.md - Column types, renderers, formattersapi/option-api.md - Table, form, and button optionsoption object, not in template markupdone() after save/update to close the dialogtype: 'select', type: 'date', etc. for automatic form controls@on-load with page params for large datasetssearch: true on columns to enable the search barAvue CRUD, avue-crud, table, CRUD, 增删改查, pagination, search, column, form, 表格, 分页, data management
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.