avue
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.mdorexamples/getting-started/quick-start.md - Form/表单 →
examples/forms/basic-form.mdorexamples/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
- Getting started/快速开始 →
-
Load the appropriate example file from the
examples/directory:Getting Started (快速开始) -
examples/getting-started/:examples/getting-started/installation.md- Installing Avue and basic setupexamples/getting-started/quick-start.md- Quick start tutorialexamples/getting-started/global-config.md- Global configuration
Forms (表单) -
examples/forms/:examples/forms/basic-form.md- Basic form usageexamples/forms/form-config.md- Form configurationexamples/forms/form-validation.md- Form validationexamples/forms/form-table.md- Form with table selector
Components (组件) -
examples/components/:examples/components/table.md- Table componentexamples/components/tree.md- Tree componentexamples/components/upload.md- Upload componentexamples/components/select.md- Select componentexamples/components/input.md- Input component
Advanced (高级) -
examples/advanced/:examples/advanced/crud.md- CRUD operationsexamples/advanced/internationalization.md- Internationalizationexamples/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 referenceapi/components.md- Component API reference
-
Use templates from the
templates/directory:templates/form-template.md- Form templatetemplates/table-template.md- Table templatetemplates/crud-template.md- CRUD template
Doc mapping (one-to-one with official documentation)
- See examples and API files → https://avuejs.com
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
- Official Website: https://avuejs.com/
- GitHub Repository: https://github.com/avue/avue
Keywords
Avue, Vue, Element UI, data-driven, form, table, CRUD, $DialogForm, $Clipboard, $ImagePreview, $Print, $Export, tree, upload, select, 数据驱动, 表单, 表格, CRUD, 树形, 上传, 选择器
More from teachingai/agent-skills
element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
9vue2
Provides comprehensive guidance for Vue 2.x development including Options API, components, directives, lifecycle hooks, computed properties, watchers, Vuex state management, and Vue Router. Use when the user asks about Vue 2, needs to create Vue 2 components, implement reactive data binding, handle component communication, or work with Vue 2 ecosystem tools.
8cypress
Provides comprehensive guidance for Cypress end-to-end testing including commands, assertions, component testing, CI/CD integration, and best practices. Use when the user asks about Cypress, needs to write E2E tests, component tests, or configure Cypress for testing.
8cocos2d-x
Provides comprehensive guidance for Cocos2d-x v4 game engine including scene graph, nodes, sprites, actions, animations, physics, rendering, shaders, and platform deployment. Use when the user asks about Cocos2d-x, needs to create games, implement game features, set up development environments, or deploy games to multiple platforms.
7dalle
Provides comprehensive guidance for DALL-E AI image generation including prompt creation, image generation, variations, and editing. Use when the user asks about DALL-E, needs to generate AI images, create image variations, or work with DALL-E API.
6uniapp-mini-guide
A comprehensive skill for uni-app mini program development. Use when building uni-app mini programs, configuring mini program settings, or working with mini program components and APIs based on the official native support docs.
6