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/快速开始 →
examples/getting-started/basic-usage.md or examples/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/高级功能 →
examples/advanced/ directory
Load the appropriate example file from the examples/ directory:
Getting Started (快速开始) - examples/getting-started/:
examples/getting-started/basic-usage.md - Basic CRUD usage
examples/getting-started/configuration.md - CRUD configuration options
Features (功能特性) - examples/features/:
examples/features/columns.md - Column configuration
examples/features/crud-operations.md - CRUD operations (add, edit, delete)
examples/features/pagination.md - Pagination configuration
examples/features/search.md - Search functionality
examples/features/sorting.md - Sorting configuration
examples/features/selection.md - Row selection
examples/features/export.md - Data export
examples/features/form-config.md - Form configuration in CRUD
Advanced (高级) - examples/advanced/:
examples/advanced/custom-operations.md - Custom operations
examples/advanced/column-types.md - Different column types
examples/advanced/validation.md - Form validation in CRUD
examples/advanced/events.md - Event handling
Follow the specific instructions in that example file for syntax, structure, and best practices
Important 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 the api/ directory when needed:
api/crud-api.md - CRUD component API reference
api/column-api.md - Column configuration API
api/option-api.md - Option configuration API
Use templates from the templates/ directory:
templates/basic-crud.md - Basic CRUD template
templates/advanced-crud.md - Advanced CRUD template
templates/crud-with-api.md - CRUD with API integration
Doc mapping (one-to-one with official documentation)
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
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
templates/ directory for common scaffolding
- Adapt templates to your specific needs and coding style
API Reference
Detailed API documentation is available in the api/ directory, organized to match the official Avue CRUD API documentation structure:
CRUD API (api/crud-api.md)
- Component props and APIs
- Component events and methods
- Component configuration
Column API (api/column-api.md)
- Column configuration options
- Column types and properties
- Column renderers and formatters
Option API (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
api/ directory
- 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
examples/ directory
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
Keywords
Avue CRUD, avue-crud, table, CRUD, Create Read Update Delete, pagination, search, sort, export, column, form, validation, 表格, CRUD, 增删改查, 分页, 搜索, 排序, 导出, 列配置, 表单, 验证
1---2name: avue-crud3description: 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.4license: Complete terms in LICENSE.txt5---6
7## When to use this skill
8
9Use this skill whenever the user wants to:
10- Build CRUD (Create, Read, Update, Delete) tables with Avue
11- Configure Avue CRUD tables
12- Implement data management interfaces
13- Add pagination, search, and sorting to tables
14- Customize table columns and operations
15- Handle table events (save, update, delete)
16- Export table data
17- Implement table selection and batch operations
18- Configure table forms for add/edit
19- Use advanced CRUD features
20
21## How to use this skill
22
23This skill is organized to match the Avue CRUD official documentation structure (https://avuejs.com/crud/crud-doc.html). When working with Avue CRUD:
24
251. **Identify the topic** from the user's request:
26 - Getting started/快速开始 → `examples/getting-started/basic-usage.md` or `examples/getting-started/configuration.md`
27 - Column configuration/列配置 → `examples/features/columns.md`
28 - CRUD operations/CRUD 操作 → `examples/features/crud-operations.md`
29 - Pagination/分页 → `examples/features/pagination.md`
30 - Search/搜索 → `examples/features/search.md`
31 - Export/导出 → `examples/features/export.md`
32 - Advanced features/高级功能 → `examples/advanced/` directory
33
342. **Load the appropriate example file** from the `examples/` directory:
35
36 **Getting Started (快速开始) - `examples/getting-started/`**:
37 - `examples/getting-started/basic-usage.md` - Basic CRUD usage
38 - `examples/getting-started/configuration.md` - CRUD configuration options
39
40 **Features (功能特性) - `examples/features/`**:
41 - `examples/features/columns.md` - Column configuration
42 - `examples/features/crud-operations.md` - CRUD operations (add, edit, delete)
43 - `examples/features/pagination.md` - Pagination configuration
44 - `examples/features/search.md` - Search functionality
45 - `examples/features/sorting.md` - Sorting configuration
46 - `examples/features/selection.md` - Row selection
47 - `examples/features/export.md` - Data export
48 - `examples/features/form-config.md` - Form configuration in CRUD
49
50 **Advanced (高级) - `examples/advanced/`**:
51 - `examples/advanced/custom-operations.md` - Custom operations
52 - `examples/advanced/column-types.md` - Different column types
53 - `examples/advanced/validation.md` - Form validation in CRUD
54 - `examples/advanced/events.md` - Event handling
55
563. **Follow the specific instructions** in that example file for syntax, structure, and best practices
57
58 **Important Notes**:
59 - All examples follow Avue CRUD API
60 - Examples use Vue 2.x syntax
61 - Each example file includes key concepts, code examples, and key points
62 - Always check the example file for best practices and common patterns
63 - Avue CRUD is data-driven and configuration-based
64
654. **Reference API documentation** in the `api/` directory when needed:
66 - `api/crud-api.md` - CRUD component API reference
67 - `api/column-api.md` - Column configuration API
68 - `api/option-api.md` - Option configuration API
69
705. **Use templates** from the `templates/` directory:
71 - `templates/basic-crud.md` - Basic CRUD template
72 - `templates/advanced-crud.md` - Advanced CRUD template
73 - `templates/crud-with-api.md` - CRUD with API integration
74
75
76### Doc mapping (one-to-one with official documentation)
77
78- `examples/` → https://avuejs.com/crud/crud-doc.html
79
80## Examples and Templates
81
82This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).
83
84**To use examples:**
85- Identify the topic from the user's request
86- Load the appropriate example file from the mapping above
87- Follow the instructions, syntax, and best practices in that file
88- Adapt the code examples to your specific use case
89
90**To use templates:**
91- Reference templates in `templates/` directory for common scaffolding
92- Adapt templates to your specific needs and coding style
93
94## API Reference
95
96Detailed API documentation is available in the `api/` directory, organized to match the official Avue CRUD API documentation structure:
97
98### CRUD API (`api/crud-api.md`)
99- Component props and APIs
100- Component events and methods
101- Component configuration
102
103### Column API (`api/column-api.md`)
104- Column configuration options
105- Column types and properties
106- Column renderers and formatters
107
108### Option API (`api/option-api.md`)
109- Option configuration object
110- Table options
111- Form options
112- Button options
113
114**To use API reference:**
1151. Identify the API you need help with
1162. Load the corresponding API file from the `api/` directory
1173. Find the API signature, parameters, return type, and examples
1184. Reference the linked example files for detailed usage patterns
1195. All API files include links to relevant example files in the `examples/` directory
120
121## Best Practices
122
1231. **Configuration-driven**: Use option object for all configuration
1242. **Column definition**: Define columns in option.column array
1253. **Event handling**: Handle @row-save, @row-update, @row-del events
1264. **Data management**: Manage data array and pagination object
1275. **Validation**: Use rules in column configuration for validation
1286. **Performance**: Optimize for large datasets with pagination
1297. **User experience**: Provide loading states and error handling
1308. **API integration**: Integrate with backend APIs properly
1319. **Form configuration**: Configure forms in column definitions
13210. **Customization**: Use slots and custom renderers when needed
133
134## Resources
135
136- **Official Website**: https://avuejs.com/
137- **CRUD Documentation**: https://avuejs.com/crud/crud-doc.html
138- **GitHub Repository**: https://github.com/avue/avue
139
140## Keywords
141
142Avue CRUD, avue-crud, table, CRUD, Create Read Update Delete, pagination, search, sort, export, column, form, validation, 表格, CRUD, 增删改查, 分页, 搜索, 排序, 导出, 列配置, 表单, 验证