When to use this skill
Use this skill whenever the user wants to:
- Build management systems with Avue
- Use Avue table and form components
- Implement data-driven views
- Use Avue global APIs ($DialogForm, $Clipboard, $ImagePreview, etc.)
- Configure Avue forms and tables
- Use Avue components (Tree, Upload, Select, etc.)
- Implement CRUD operations with Avue
- Customize Avue components
- Configure internationalization
- Use Avue plugins and extensions
How to use this skill
This skill is organized to match the Avue official documentation structure (https://avuejs.com/). When working with Avue:
Identify the topic from the user's request:
- Getting started/快速开始 →
examples/getting-started/installation.md or examples/getting-started/quick-start.md
- Form/表单 →
examples/forms/basic-form.md or examples/forms/form-config.md
- Table/表格 →
examples/components/table.md
- Tree/树形 →
examples/components/tree.md
- Upload/上传 →
examples/components/upload.md
- Global API/全局 API →
api/global-api.md
Load the appropriate example file from the examples/ directory:
Getting Started (快速开始) - examples/getting-started/:
examples/getting-started/installation.md - Installing Avue and basic setup
examples/getting-started/quick-start.md - Quick start tutorial
examples/getting-started/global-config.md - Global configuration
Forms (表单) - examples/forms/:
examples/forms/basic-form.md - Basic form usage
examples/forms/form-config.md - Form configuration
examples/forms/form-validation.md - Form validation
examples/forms/form-table.md - Form with table selector
Components (组件) - examples/components/:
examples/components/table.md - Table component
examples/components/tree.md - Tree component
examples/components/upload.md - Upload component
examples/components/select.md - Select component
examples/components/input.md - Input component
Advanced (高级) - examples/advanced/:
examples/advanced/crud.md - CRUD operations
examples/advanced/internationalization.md - Internationalization
examples/advanced/plugins.md - Plugins and extensions
Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- All examples follow Avue 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 is based on Vue and Element UI
Reference API documentation in the api/ directory when needed:
api/global-api.md - Global API reference
api/components.md - Component API reference
Use templates from the templates/ directory:
templates/form-template.md - Form template
templates/table-template.md - Table template
templates/crud-template.md - CRUD template
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 API documentation structure:
Global API (api/global-api.md)
- $DialogForm - Dialog form
- $Clipboard - Clipboard operations
- $ImagePreview - Image preview
- $Print - Print functionality
- $Export - Export functionality
- $Log - Logging
- findObject, findArray, findNode - Utility functions
- watermark - Watermark
- downFile - File download
- randomId - Random ID generation
- loadScript - Script loading
- deepClone - Deep clone
- setPx - Pixel conversion
- validatenull - Validation
- vaildData - Data validation
Components API (api/components.md)
- Component props and APIs
- Component events and methods
- Component configuration
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
- Install Avue: Install @smallwei/avue package
- Import styles: Import Avue CSS styles
- Use Vue.use(): Register Avue with Vue.use(Avue)
- Data-driven: Use data-driven approach for forms and tables
- Configuration: Configure forms and tables via option objects
- Global API: Use Avue global APIs for common operations
- Internationalization: Configure i18n for multi-language support
- Plugins: Use Avue plugins for extended functionality
- Component composition: Compose components for complex UIs
- Performance: Optimize for performance with large datasets
Resources
Keywords
Avue, Vue, Element UI, data-driven, form, table, CRUD, $DialogForm, $Clipboard, $ImagePreview, $Print, $Export, tree, upload, select, 数据驱动, 表单, 表格, CRUD, 树形, 上传, 选择器
能力边界
✅ 适用场景
- 当你需要使用此技能对应的技术栈时
- 当项目需要遵循最佳实践时
- 当需要快速上手或深入理解核心概念时
⚠️ 需要注意
- 复杂业务逻辑需要结合具体场景调整
- 性能优化需要根据实际数据量评估
❌ 不适用场景
常见陷阱 (Gotchas)
- 版本兼容性:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异
- 配置文件格式:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查
- 环境变量:确保所有必要的环境变量已正确设置,敏感信息不要硬编码
- 依赖冲突:多版本共存时注意依赖冲突,使用 lock 文件锁定版本
- 性能陷阱:大数据量场景下注意性能优化,避免 N+1 查询等常见问题
使用流程
Step 1: 环境准备
确保开发环境已安装必要的依赖和工具。
Step 2: 配置初始化
根据项目需求进行基础配置。
Step 3: 核心功能使用
按照示例代码实现核心功能。
Step 4: 测试验证
运行测试确保功能正常。
Step 5: 部署上线
完成开发后进行部署和监控。
1---2name: avue3description: Provides comprehensive guidance for Avue framework including CRUD operations, form components, and data management. Use when the user asks about Avue, needs to build admin interfaces, implement CRUD operations, or work with Avue components.4license: Complete terms in LICENSE.txt5---67## When to use this skill89Use this skill whenever the user wants to:10- Build management systems with Avue11- Use Avue table and form components12- Implement data-driven views13- Use Avue global APIs ($DialogForm, $Clipboard, $ImagePreview, etc.)14- Configure Avue forms and tables15- Use Avue components (Tree, Upload, Select, etc.)16- Implement CRUD operations with Avue17- Customize Avue components18- Configure internationalization19- Use Avue plugins and extensions2021## How to use this skill2223This skill is organized to match the Avue official documentation structure (https://avuejs.com/). When working with Avue:24251. **Identify the topic** from the user's request:26 - Getting started/快速开始 → `examples/getting-started/installation.md` or `examples/getting-started/quick-start.md`27 - Form/表单 → `examples/forms/basic-form.md` or `examples/forms/form-config.md`28 - Table/表格 → `examples/components/table.md`29 - Tree/树形 → `examples/components/tree.md`30 - Upload/上传 → `examples/components/upload.md`31 - Global API/全局 API → `api/global-api.md`32332. **Load the appropriate example file** from the `examples/` directory:3435 **Getting Started (快速开始) - `examples/getting-started/`**:36 - `examples/getting-started/installation.md` - Installing Avue and basic setup37 - `examples/getting-started/quick-start.md` - Quick start tutorial38 - `examples/getting-started/global-config.md` - Global configuration3940 **Forms (表单) - `examples/forms/`**:41 - `examples/forms/basic-form.md` - Basic form usage42 - `examples/forms/form-config.md` - Form configuration43 - `examples/forms/form-validation.md` - Form validation44 - `examples/forms/form-table.md` - Form with table selector4546 **Components (组件) - `examples/components/`**:47 - `examples/components/table.md` - Table component48 - `examples/components/tree.md` - Tree component49 - `examples/components/upload.md` - Upload component50 - `examples/components/select.md` - Select component51 - `examples/components/input.md` - Input component5253 **Advanced (高级) - `examples/advanced/`**:54 - `examples/advanced/crud.md` - CRUD operations55 - `examples/advanced/internationalization.md` - Internationalization56 - `examples/advanced/plugins.md` - Plugins and extensions57583. **Follow the specific instructions** in that example file for syntax, structure, and best practices5960 **Important Notes**:61 - All examples follow Avue API62 - Examples use Vue 2.x syntax63 - Each example file includes key concepts, code examples, and key points64 - Always check the example file for best practices and common patterns65 - Avue is based on Vue and Element UI66674. **Reference API documentation** in the `api/` directory when needed:68 - `api/global-api.md` - Global API reference69 - `api/components.md` - Component API reference70715. **Use templates** from the `templates/` directory:72 - `templates/form-template.md` - Form template73 - `templates/table-template.md` - Table template74 - `templates/crud-template.md` - CRUD template757677### Doc mapping (one-to-one with official documentation)7879- See examples and API files → https://avuejs.com8081## Examples and Templates8283This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).8485**To use examples:**86- Identify the topic from the user's request87- Load the appropriate example file from the mapping above88- Follow the instructions, syntax, and best practices in that file89- Adapt the code examples to your specific use case9091**To use templates:**92- Reference templates in `templates/` directory for common scaffolding93- Adapt templates to your specific needs and coding style9495## API Reference9697Detailed API documentation is available in the `api/` directory, organized to match the official Avue API documentation structure:9899### Global API (`api/global-api.md`)100- $DialogForm - Dialog form101- $Clipboard - Clipboard operations102- $ImagePreview - Image preview103- $Print - Print functionality104- $Export - Export functionality105- $Log - Logging106- findObject, findArray, findNode - Utility functions107- watermark - Watermark108- downFile - File download109- randomId - Random ID generation110- loadScript - Script loading111- deepClone - Deep clone112- setPx - Pixel conversion113- validatenull - Validation114- vaildData - Data validation115116### Components API (`api/components.md`)117- Component props and APIs118- Component events and methods119- Component configuration120121**To use API reference:**1221. Identify the API you need help with1232. Load the corresponding API file from the `api/` directory1243. Find the API signature, parameters, return type, and examples1254. Reference the linked example files for detailed usage patterns1265. All API files include links to relevant example files in the `examples/` directory127128## Best Practices1291301. **Install Avue**: Install @smallwei/avue package1312. **Import styles**: Import Avue CSS styles1323. **Use Vue.use()**: Register Avue with Vue.use(Avue)1334. **Data-driven**: Use data-driven approach for forms and tables1345. **Configuration**: Configure forms and tables via option objects1356. **Global API**: Use Avue global APIs for common operations1367. **Internationalization**: Configure i18n for multi-language support1378. **Plugins**: Use Avue plugins for extended functionality1389. **Component composition**: Compose components for complex UIs13910. **Performance**: Optimize for performance with large datasets140141## Resources142143- **Official Website**: https://avuejs.com/144- **GitHub Repository**: https://github.com/avue/avue145146## Keywords147148Avue, Vue, Element UI, data-driven, form, table, CRUD, $DialogForm, $Clipboard, $ImagePreview, $Print, $Export, tree, upload, select, 数据驱动, 表单, 表格, CRUD, 树形, 上传, 选择器149150## 能力边界151152### ✅ 适用场景153- 当你需要使用此技能对应的技术栈时154- 当项目需要遵循最佳实践时155- 当需要快速上手或深入理解核心概念时156157### ⚠️ 需要注意158- 复杂业务逻辑需要结合具体场景调整159- 性能优化需要根据实际数据量评估160161### ❌ 不适用场景162- 不相关的技术栈或框架163- 需要完全自定义的特殊场景164165## 常见陷阱 (Gotchas)1661671. **版本兼容性**:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异1682. **配置文件格式**:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查1693. **环境变量**:确保所有必要的环境变量已正确设置,敏感信息不要硬编码1704. **依赖冲突**:多版本共存时注意依赖冲突,使用 lock 文件锁定版本1715. **性能陷阱**:大数据量场景下注意性能优化,避免 N+1 查询等常见问题172173## 使用流程174175### Step 1: 环境准备176确保开发环境已安装必要的依赖和工具。177178### Step 2: 配置初始化179根据项目需求进行基础配置。180181### Step 3: 核心功能使用182按照示例代码实现核心功能。183184### Step 4: 测试验证185运行测试确保功能正常。186187### Step 5: 部署上线188完成开发后进行部署和监控。