uview-pro-vue3
npx skills add https://github.com/teachingai/full-stack-skills --skill uview-pro-vue3
Agent 安装分布
Skill 文档
When to use this skill
Use this skill whenever the user wants to:
- Install and set up uView Pro in a uni-app project
- Use uView Pro components in Vue 3 / uni-app applications
- Configure uView Pro (theme, i18n, etc.)
- Use form components (Button, Input, Form, etc.)
- Use data display components (List, Card, etc.)
- Use feedback components (Toast, Modal, etc.)
- Use navigation components (Tabs, NavBar, etc.)
- Use uView Pro tools and utilities
- Use uView Pro layout templates
- Customize component styles and themes
- Handle component events
- Understand uView Pro API and methods
- Troubleshoot uView Pro issues
How to use this skill
This skill is organized to match the uView Pro official documentation structure (https://uviewpro.cn/, https://uviewpro.cn/zh/guide/intro.html, https://uviewpro.cn/zh/components/intro.html, https://uviewpro.cn/zh/tools/intro.html, https://uviewpro.cn/zh/layout/intro.html). When working with uView Pro:
-
Identify the topic from the user’s request:
- Installation/å®è£
â
examples/guide/installation.md - Quick Start/å¿«éå¼å§ â
examples/guide/quick-start.md - Components/ç»ä»¶ â
examples/components/ - Tools/å·¥å
· â
examples/tools/ - Layout/å¸å± â
examples/layout/ - API/API ææ¡£ â
api/
- Installation/å®è£
â
-
Load the appropriate example file from the
examples/directory:Guide (ä½¿ç¨æå):
examples/guide/intro.md– Introductionexamples/guide/installation.md– Installation guideexamples/guide/quick-start.md– Quick start guideexamples/guide/theme.md– Theme customizationexamples/guide/i18n.md– Internationalizationexamples/guide/config.md– Configuration
Components (ç»ä»¶):
examples/components/intro.md– Components introductionexamples/components/button.md– Button componentexamples/components/input.md– Input componentexamples/components/form.md– Form componentexamples/components/list.md– List componentexamples/components/card.md– Card componentexamples/components/toast.md– Toast componentexamples/components/modal.md– Modal componentexamples/components/tabs.md– Tabs componentexamples/components/navbar.md– NavBar componentexamples/components/date-picker.md– DatePicker componentexamples/components/select.md– Select componentexamples/components/switch.md– Switch componentexamples/components/checkbox.md– Checkbox componentexamples/components/radio.md– Radio componentexamples/components/upload.md– Upload componentexamples/components/pagination.md– Pagination componentexamples/components/avatar.md– Avatar componentexamples/components/badge.md– Badge componentexamples/components/tag.md– Tag componentexamples/components/empty.md– Empty componentexamples/components/loading.md– Loading componentexamples/components/popup.md– Popup componentexamples/components/dropdown.md– Dropdown componentexamples/components/drawer.md– Drawer component
Tools (å·¥å ·):
examples/tools/intro.md– Tools introductionexamples/tools/http.md– HTTP requestexamples/tools/storage.md– Storage utilitiesexamples/tools/router.md– Router utilitiesexamples/tools/validator.md– Validator utilitiesexamples/tools/format.md– Format utilitiesexamples/tools/color.md– Color utilities
Layout (å¸å±):
examples/layout/intro.md– Layout introductionexamples/layout/grid.md– Grid layoutexamples/layout/flex.md– Flex layoutexamples/layout/container.md– Container layout
-
Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- uView Pro is for Vue 3 and uni-app
- Components use Vue 3 Composition API
- Examples include both Options API and Composition API
- Each example file includes key concepts, code examples, and key points
-
Reference API documentation in the
api/directory when needed:api/component-api.md– Component API referenceapi/props-and-events.md– Props and events referenceapi/tools-api.md– Tools API referenceapi/config-api.md– Configuration API
-
Use templates from the
templates/directory:templates/installation.md– Installation templatestemplates/component-usage.md– Component usage templatestemplates/project-setup.md– Project setup templates
1. Understanding uView Pro
uView Pro is a Vue 3 component library designed for uni-app development, providing rich components and utility methods.
Key Concepts:
- Vue 3 Support: Built for Vue 3 with Composition API
- uni-app Support: Optimized for uni-app development
- Rich Components: 100+ components for various use cases
- Theme Customization: Support for theme customization
- i18n: Internationalization support
- Tools: Rich utility methods
2. Installation
Using npm:
npm install uview-pro
Using yarn:
yarn add uview-pro
Using pnpm:
pnpm add uview-pro
3. Basic Setup
// main.js
import { createSSRApp } from 'vue'
import uView from 'uview-pro'
import App from './App.vue'
export function createApp() {
const app = createSSRApp(App)
app.use(uView)
return {
app
}
}
Doc mapping (one-to-one with official documentation)
Guide (æå):
- See guide files in
examples/guide/orexamples/getting-started/â https://uviewpro.cn/zh/guide/intro.html
Components (ç»ä»¶):
- See component files in
examples/components/â https://uviewpro.cn/zh/components/intro.html
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 uView Pro API documentation structure:
Component API (api/component-api.md)
- Component props and events
- Component methods
- Component slots
Props and Events (api/props-and-events.md)
- Common props
- Common events
- Event handling
Tools API (api/tools-api.md)
- HTTP request methods
- Storage methods
- Router methods
- Validator methods
- Format methods
- Color methods
Configuration API (api/config-api.md)
- Global configuration options
- Theme configuration
- i18n 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
- Use on-demand import: Import only the components you need to reduce bundle size
- Use Composition API: Prefer Composition API for better code organization
- Handle events properly: Use proper event handlers for component interactions
- Customize theme: Use theme variables for customization
- Follow design specs: Follow uView Pro design specifications
- Use tools: Leverage uView Pro tools for common operations
- Use layouts: Use layout templates for consistent page structure
Resources
- Official Documentation: https://uviewpro.cn/
- Guide: https://uviewpro.cn/zh/guide/intro.html
- Components: https://uviewpro.cn/zh/components/intro.html
- Tools: https://uviewpro.cn/zh/tools/intro.html
- Layout: https://uviewpro.cn/zh/layout/intro.html
Keywords
uView Pro, uview-pro, Vue 3, Vue3, uni-app, UI components, component library, ç»ä»¶åº, æé®, 表å, å表, å¡ç, æç¤º, å¼¹çª, æ ç¾é¡µ, å¯¼èªæ , æ¥æéæ©å¨, éæ©å¨, å¼å ³, å¤éæ¡, åéæ¡, ä¸ä¼ , å页, 头å, å¾½æ , æ ç¾, ç©ºç¶æ, å è½½, å¼¹åºå±, 䏿èå, æ½å±, HTTP, åå¨, è·¯ç±, éªè¯, æ ¼å¼å, é¢è², ç½æ ¼å¸å±, å¼¹æ§å¸å±, 容å¨å¸å±, Button, Form, List, Card, Toast, Modal, Tabs, NavBar, DatePicker, Select, Switch, Checkbox, Radio, Upload, Pagination, Avatar, Badge, Tag, Empty, Loading, Popup, Dropdown, Drawer