avue-crud
Original:🇺🇸 English
Not Translated
Provides comprehensive guidance for Avue CRUD component including table operations, form handling, and data management. Use when the user asks about Avue CRUD, needs to implement table CRUD operations, or build data management interfaces.
2installs
Added on
NPX Install
npx skill4agent add teachingai/full-stack-skills avue-crudSKILL.md Content
When to use this skill
Use this skill whenever the user wants to:
- Build CRUD (Create, Read, Update, Delete) tables with Avue
- Configure Avue CRUD tables
- Implement data management interfaces
- Add pagination, search, and sorting to tables
- Customize table columns and operations
- Handle table events (save, update, delete)
- Export table data
- Implement table selection and batch operations
- Configure table forms for add/edit
- Use advanced CRUD features
How to use this skill
This skill is organized to match the Avue CRUD official documentation structure (https://avuejs.com/crud/crud-doc.html). When working with Avue CRUD:
-
Identify the topic from the user's request:
- Getting started/快速开始 → or
examples/getting-started/basic-usage.mdexamples/getting-started/configuration.md - Column configuration/列配置 →
examples/features/columns.md - CRUD operations/CRUD 操作 →
examples/features/crud-operations.md - Pagination/分页 →
examples/features/pagination.md - Search/搜索 →
examples/features/search.md - Export/导出 →
examples/features/export.md - Advanced features/高级功能 → directory
examples/advanced/
- Getting started/快速开始 →
-
Load the appropriate example file from thedirectory:
examples/Getting Started (快速开始) -:examples/getting-started/- - Basic CRUD usage
examples/getting-started/basic-usage.md - - CRUD configuration options
examples/getting-started/configuration.md
Features (功能特性) -:examples/features/- - Column configuration
examples/features/columns.md - - CRUD operations (add, edit, delete)
examples/features/crud-operations.md - - Pagination configuration
examples/features/pagination.md - - Search functionality
examples/features/search.md - - Sorting configuration
examples/features/sorting.md - - Row selection
examples/features/selection.md - - Data export
examples/features/export.md - - Form configuration in CRUD
examples/features/form-config.md
Advanced (高级) -:examples/advanced/- - Custom operations
examples/advanced/custom-operations.md - - Different column types
examples/advanced/column-types.md - - Form validation in CRUD
examples/advanced/validation.md - - Event handling
examples/advanced/events.md
-
Follow the specific instructions in that example file for syntax, structure, and best practicesImportant Notes:
- All examples follow Avue CRUD API
- Examples use Vue 2.x syntax
- Each example file includes key concepts, code examples, and key points
- Always check the example file for best practices and common patterns
- Avue CRUD is data-driven and configuration-based
-
Reference API documentation in thedirectory when needed:
api/- - CRUD component API reference
api/crud-api.md - - Column configuration API
api/column-api.md - - Option configuration API
api/option-api.md
-
Use templates from thedirectory:
templates/- - Basic CRUD template
templates/basic-crud.md - - Advanced CRUD template
templates/advanced-crud.md - - CRUD with API integration
templates/crud-with-api.md
Doc mapping (one-to-one with official documentation)
- → https://avuejs.com/crud/crud-doc.html
examples/
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the directory (see mapping above).
examples/To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in directory for common scaffolding
templates/ - Adapt templates to your specific needs and coding style
API Reference
Detailed API documentation is available in the directory, organized to match the official Avue CRUD API documentation structure:
api/CRUD API (api/crud-api.md
)
api/crud-api.md- Component props and APIs
- Component events and methods
- Component configuration
Column API (api/column-api.md
)
api/column-api.md- Column configuration options
- Column types and properties
- Column renderers and formatters
Option API (api/option-api.md
)
api/option-api.md- Option configuration object
- Table options
- Form options
- Button options
To use API reference:
- Identify the API you need help with
- Load the corresponding API file from the directory
api/ - Find the API signature, parameters, return type, and examples
- Reference the linked example files for detailed usage patterns
- All API files include links to relevant example files in the directory
examples/
Best Practices
- Configuration-driven: Use option object for all configuration
- Column definition: Define columns in option.column array
- Event handling: Handle @row-save, @row-update, @row-del events
- Data management: Manage data array and pagination object
- Validation: Use rules in column configuration for validation
- Performance: Optimize for large datasets with pagination
- User experience: Provide loading states and error handling
- API integration: Integrate with backend APIs properly
- Form configuration: Configure forms in column definitions
- Customization: Use slots and custom renderers when needed
Resources
- Official Website: https://avuejs.com/
- CRUD Documentation: https://avuejs.com/crud/crud-doc.html
- GitHub Repository: https://github.com/avue/avue
Keywords
Avue CRUD, avue-crud, table, CRUD, Create Read Update Delete, pagination, search, sort, export, column, form, validation, 表格, CRUD, 增删改查, 分页, 搜索, 排序, 导出, 列配置, 表单, 验证