uview-pro-vue3
When to use this skill
Use this skill whenever the user wants to:
- Build Vue 3 / uni-app mobile interfaces with uView Pro components
- Use form, data display, feedback, or navigation components
- Configure uView Pro theme, internationalization, or global settings
- Use built-in tools (HTTP requests, storage, routing, validation, formatting)
- Set up uView Pro in a new uni-app project
How to use this skill
Workflow
- Install -
npm install uview-proand register in main.js - Choose component - Match the UI need to component from reference below
- Load example file - Each component has a detailed example in
examples/components/ - Use tools - Leverage built-in utilities from
examples/tools/
Quick-Start: Installation and Basic Usage
// 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 }
}
Example: Form with Validation
<template>
<u-form :model="form" :rules="rules" ref="formRef">
<u-form-item label="Username" prop="name">
<u-input v-model="form.name" placeholder="Enter username" />
</u-form-item>
<u-form-item label="Email" prop="email">
<u-input v-model="form.email" placeholder="Enter email" />
</u-form-item>
<u-button type="primary" @click="submit">Submit</u-button>
</u-form>
</template>
<script setup>
import { ref, reactive } from 'vue'
const formRef = ref(null)
const form = reactive({ name: '', email: '' })
const rules = {
name: [{ required: true, message: 'Name is required' }],
email: [{ required: true, message: 'Email is required' }, { type: 'email', message: 'Invalid email' }]
}
const submit = () => {
formRef.value.validate(valid => {
if (valid) uni.showToast({ title: 'Success!' })
})
}
</script>
Component Categories
| Category | Components | Example Files |
|---|---|---|
| Form | Button, Input, Form, Select, Switch, Checkbox, Radio, Upload | examples/components/form.md |
| Display | List, Card, Avatar, Badge, Tag, Empty | examples/components/list.md |
| Feedback | Toast, Modal, Loading, Popup, Drawer | examples/components/modal.md |
| Navigation | Tabs, NavBar, Pagination, Dropdown | examples/components/tabs.md |
Tools Reference
| Tool | File | Purpose |
|---|---|---|
| HTTP | examples/tools/http.md |
Request wrapper with interceptors |
| Storage | examples/tools/storage.md |
Local storage utilities |
| Router | examples/tools/router.md |
Navigation helpers |
| Validator | examples/tools/validator.md |
Form validation |
API Reference
api/component-api.md- Component props, events, methods, and slotsapi/tools-api.md- Utility function signatures and parametersapi/config-api.md- Global and theme configuration
Best Practices
- On-demand import - Import only used components to reduce bundle size
- Composition API - Prefer
<script setup>for cleaner Vue 3 code - Theme variables - Customize via uView theme config rather than overriding CSS
- Use built-in tools - Leverage HTTP, storage, and router utilities instead of adding extra dependencies
- Test on device - Verify uni-app behavior on actual mobile devices, not just H5
Resources
- Official Docs: https://uviewpro.cn/
Keywords
uView Pro, uview-pro, Vue 3, uni-app, component library, 组件库, Button, Form, List, Modal, Tabs, NavBar, mobile UI, 表单, 列表
More from partme-ai/full-stack-skills
vite
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
68element-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.
64vue3
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
54electron
Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.
52uniapp-project
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
40ascii-cli-logo-banner
Entry point for ASCII CLI banners that routes to the Python built-in font skill or figlet.js/FIGfont skill. Use when the user wants a startup banner, ASCII logo, terminal welcome screen, or CLI branding for a service.
38