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/
Load the appropriate example file from the examples/ directory:
Guide (使用指南):
examples/guide/intro.md - Introduction
examples/guide/installation.md - Installation guide
examples/guide/quick-start.md - Quick start guide
examples/guide/theme.md - Theme customization
examples/guide/i18n.md - Internationalization
examples/guide/config.md - Configuration
Components (组件):
examples/components/intro.md - Components introduction
examples/components/button.md - Button component
examples/components/input.md - Input component
examples/components/form.md - Form component
examples/components/list.md - List component
examples/components/card.md - Card component
examples/components/toast.md - Toast component
examples/components/modal.md - Modal component
examples/components/tabs.md - Tabs component
examples/components/navbar.md - NavBar component
examples/components/date-picker.md - DatePicker component
examples/components/select.md - Select component
examples/components/switch.md - Switch component
examples/components/checkbox.md - Checkbox component
examples/components/radio.md - Radio component
examples/components/upload.md - Upload component
examples/components/pagination.md - Pagination component
examples/components/avatar.md - Avatar component
examples/components/badge.md - Badge component
examples/components/tag.md - Tag component
examples/components/empty.md - Empty component
examples/components/loading.md - Loading component
examples/components/popup.md - Popup component
examples/components/dropdown.md - Dropdown component
examples/components/drawer.md - Drawer component
Tools (工具):
examples/tools/intro.md - Tools introduction
examples/tools/http.md - HTTP request
examples/tools/storage.md - Storage utilities
examples/tools/router.md - Router utilities
examples/tools/validator.md - Validator utilities
examples/tools/format.md - Format utilities
examples/tools/color.md - Color utilities
Layout (布局):
examples/layout/intro.md - Layout introduction
examples/layout/grid.md - Grid layout
examples/layout/flex.md - Flex layout
examples/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 reference
api/props-and-events.md - Props and events reference
api/tools-api.md - Tools API reference
api/config-api.md - Configuration API
Use templates from the templates/ directory:
templates/installation.md - Installation templates
templates/component-usage.md - Component usage templates
templates/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 (指南):
Components (组件):
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
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
1---2name: uview-pro-vue33description: Provides comprehensive guidance for uView Pro Vue 3 component library including components, tools, layouts, and templates. Use when the user asks about uView Pro, needs to build Vue 3 applications with uView Pro, or implement mobile-first UI components.4license: Complete terms in LICENSE.txt5---6
7## When to use this skill
8
9Use this skill whenever the user wants to:
10- Install and set up uView Pro in a uni-app project
11- Use uView Pro components in Vue 3 / uni-app applications
12- Configure uView Pro (theme, i18n, etc.)
13- Use form components (Button, Input, Form, etc.)
14- Use data display components (List, Card, etc.)
15- Use feedback components (Toast, Modal, etc.)
16- Use navigation components (Tabs, NavBar, etc.)
17- Use uView Pro tools and utilities
18- Use uView Pro layout templates
19- Customize component styles and themes
20- Handle component events
21- Understand uView Pro API and methods
22- Troubleshoot uView Pro issues
23
24## How to use this skill
25
26This 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:
27
281. **Identify the topic** from the user's request:
29 - Installation/安装 → `examples/guide/installation.md`
30 - Quick Start/快速开始 → `examples/guide/quick-start.md`
31 - Components/组件 → `examples/components/`
32 - Tools/工具 → `examples/tools/`
33 - Layout/布局 → `examples/layout/`
34 - API/API 文档 → `api/`
35
362. **Load the appropriate example file** from the `examples/` directory:
37
38 **Guide (使用指南)**:
39 - `examples/guide/intro.md` - Introduction
40 - `examples/guide/installation.md` - Installation guide
41 - `examples/guide/quick-start.md` - Quick start guide
42 - `examples/guide/theme.md` - Theme customization
43 - `examples/guide/i18n.md` - Internationalization
44 - `examples/guide/config.md` - Configuration
45
46 **Components (组件)**:
47 - `examples/components/intro.md` - Components introduction
48 - `examples/components/button.md` - Button component
49 - `examples/components/input.md` - Input component
50 - `examples/components/form.md` - Form component
51 - `examples/components/list.md` - List component
52 - `examples/components/card.md` - Card component
53 - `examples/components/toast.md` - Toast component
54 - `examples/components/modal.md` - Modal component
55 - `examples/components/tabs.md` - Tabs component
56 - `examples/components/navbar.md` - NavBar component
57 - `examples/components/date-picker.md` - DatePicker component
58 - `examples/components/select.md` - Select component
59 - `examples/components/switch.md` - Switch component
60 - `examples/components/checkbox.md` - Checkbox component
61 - `examples/components/radio.md` - Radio component
62 - `examples/components/upload.md` - Upload component
63 - `examples/components/pagination.md` - Pagination component
64 - `examples/components/avatar.md` - Avatar component
65 - `examples/components/badge.md` - Badge component
66 - `examples/components/tag.md` - Tag component
67 - `examples/components/empty.md` - Empty component
68 - `examples/components/loading.md` - Loading component
69 - `examples/components/popup.md` - Popup component
70 - `examples/components/dropdown.md` - Dropdown component
71 - `examples/components/drawer.md` - Drawer component
72
73 **Tools (工具)**:
74 - `examples/tools/intro.md` - Tools introduction
75 - `examples/tools/http.md` - HTTP request
76 - `examples/tools/storage.md` - Storage utilities
77 - `examples/tools/router.md` - Router utilities
78 - `examples/tools/validator.md` - Validator utilities
79 - `examples/tools/format.md` - Format utilities
80 - `examples/tools/color.md` - Color utilities
81
82 **Layout (布局)**:
83 - `examples/layout/intro.md` - Layout introduction
84 - `examples/layout/grid.md` - Grid layout
85 - `examples/layout/flex.md` - Flex layout
86 - `examples/layout/container.md` - Container layout
87
883. **Follow the specific instructions** in that example file for syntax, structure, and best practices
89
90 **Important Notes**:
91 - uView Pro is for Vue 3 and uni-app
92 - Components use Vue 3 Composition API
93 - Examples include both Options API and Composition API
94 - Each example file includes key concepts, code examples, and key points
95
964. **Reference API documentation** in the `api/` directory when needed:
97 - `api/component-api.md` - Component API reference
98 - `api/props-and-events.md` - Props and events reference
99 - `api/tools-api.md` - Tools API reference
100 - `api/config-api.md` - Configuration API
101
1025. **Use templates** from the `templates/` directory:
103 - `templates/installation.md` - Installation templates
104 - `templates/component-usage.md` - Component usage templates
105 - `templates/project-setup.md` - Project setup templates
106
107### 1. Understanding uView Pro
108
109uView Pro is a Vue 3 component library designed for uni-app development, providing rich components and utility methods.
110
111**Key Concepts**:
112- **Vue 3 Support**: Built for Vue 3 with Composition API
113- **uni-app Support**: Optimized for uni-app development
114- **Rich Components**: 100+ components for various use cases
115- **Theme Customization**: Support for theme customization
116- **i18n**: Internationalization support
117- **Tools**: Rich utility methods
118
119### 2. Installation
120
121**Using npm**:
122
123```bash
124npm install uview-pro
125```
126
127**Using yarn**:
128
129```bash
130yarn add uview-pro
131```
132
133**Using pnpm**:
134
135```bash
136pnpm add uview-pro
137```
138
139### 3. Basic Setup
140
141```javascript
142// main.js
143import { createSSRApp } from 'vue'
144import uView from 'uview-pro'
145import App from './App.vue'
146
147export function createApp() {
148 const app = createSSRApp(App)
149 app.use(uView)
150 return {
151 app
152 }
153}
154```
155
156
157### Doc mapping (one-to-one with official documentation)
158
159**Guide (指南)**:
160- See guide files in `examples/guide/` or `examples/getting-started/` → https://uviewpro.cn/zh/guide/intro.html
161
162**Components (组件)**:
163- See component files in `examples/components/` → https://uviewpro.cn/zh/components/intro.html
164
165## Examples and Templates
166
167This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).
168
169**To use examples:**
170- Identify the topic from the user's request
171- Load the appropriate example file from the mapping above
172- Follow the instructions, syntax, and best practices in that file
173- Adapt the code examples to your specific use case
174
175**To use templates:**
176- Reference templates in `templates/` directory for common scaffolding
177- Adapt templates to your specific needs and coding style
178
179## API Reference
180
181Detailed API documentation is available in the `api/` directory, organized to match the official uView Pro API documentation structure:
182
183### Component API (`api/component-api.md`)
184- Component props and events
185- Component methods
186- Component slots
187
188### Props and Events (`api/props-and-events.md`)
189- Common props
190- Common events
191- Event handling
192
193### Tools API (`api/tools-api.md`)
194- HTTP request methods
195- Storage methods
196- Router methods
197- Validator methods
198- Format methods
199- Color methods
200
201### Configuration API (`api/config-api.md`)
202- Global configuration options
203- Theme configuration
204- i18n configuration
205
206**To use API reference:**
2071. Identify the API you need help with
2082. Load the corresponding API file from the `api/` directory
2093. Find the API signature, parameters, return type, and examples
2104. Reference the linked example files for detailed usage patterns
2115. All API files include links to relevant example files in the `examples/` directory
212
213## Best Practices
214
2151. **Use on-demand import**: Import only the components you need to reduce bundle size
2162. **Use Composition API**: Prefer Composition API for better code organization
2173. **Handle events properly**: Use proper event handlers for component interactions
2184. **Customize theme**: Use theme variables for customization
2195. **Follow design specs**: Follow uView Pro design specifications
2206. **Use tools**: Leverage uView Pro tools for common operations
2217. **Use layouts**: Use layout templates for consistent page structure
222
223## Resources
224
225- **Official Documentation**: https://uviewpro.cn/
226- **Guide**: https://uviewpro.cn/zh/guide/intro.html
227- **Components**: https://uviewpro.cn/zh/components/intro.html
228- **Tools**: https://uviewpro.cn/zh/tools/intro.html
229- **Layout**: https://uviewpro.cn/zh/layout/intro.html
230
231## Keywords
232
233uView 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