mcpField
U
uview-pro-vue3

uview-pro-vue3

github.com/partme-aiDesign & UI716106 installsUpdated 3w ago
Repository

About uview-pro-vue3

A reference skill for building Vue 3 and uni-app mobile interfaces with uView Pro. It guides developers through setup, component selection, examples, utilities, and configuration.

Key features

  1. 01uView Pro installation guidance
  2. 02Form, display, feedback, and navigation components
  3. 03Component example references
  4. 04HTTP, storage, router, and validation utilities
  5. 05Theme and global configuration references

Use cases

  1. 01Set up uView Pro in a uni-app project
  2. 02Choose components for a mobile interface
  3. 03Find examples and API details for components
  4. 04Use built-in utilities for requests and forms

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/partme-ai/full-stack-skills --skill uview-pro-vue3

After installing, type/uview-pro-vue3in Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.txt
api/
component-api.md
config-api.md
props-and-events.md
tools-api.md
examples/components/
button.md
form.md
input.md
intro.md
examples/guide/
config.md
i18n.md
installation.md
intro.md
quick-start.md
theme.md
examples/layout/
intro.md
examples/tools/
http.md
intro.md
templates/
component-usage.md
installation.md
project-setup.md

Details

From the project README

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
  1. Install - npm install uview-pro and register in main.js
  2. Choose component - Match the UI need to component from reference below
  3. Load example file - Each component has a detailed example in examples/components/
  4. 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
CategoryComponentsExample Files
FormButton, Input, Form, Select, Switch, Checkbox, Radio, Uploadexamples/components/form.md
DisplayList, Card, Avatar, Badge, Tag, Emptyexamples/components/list.md
FeedbackToast, Modal, Loading, Popup, Drawerexamples/components/modal.md
NavigationTabs, NavBar, Pagination, Dropdownexamples/components/tabs.md
Tools Reference
ToolFilePurpose
HTTPexamples/tools/http.mdRequest wrapper with interceptors
Storageexamples/tools/storage.mdLocal storage utilities
Routerexamples/tools/router.mdNavigation helpers
Validatorexamples/tools/validator.mdForm validation
API Reference
  • api/component-api.md - Component props, events, methods, and slots
  • api/tools-api.md - Utility function signatures and parameters
  • api/config-api.md - Global and theme configuration

Best Practices

  1. On-demand import - Import only used components to reduce bundle size
  2. Composition API - Prefer <script setup> for cleaner Vue 3 code
  3. Theme variables - Customize via uView theme config rather than overriding CSS
  4. Use built-in tools - Leverage HTTP, storage, and router utilities instead of adding extra dependencies
  5. Test on device - Verify uni-app behavior on actual mobile devices, not just H5

Resources

Keywords

uView Pro, uview-pro, Vue 3, uni-app, component library, 组件库, Button, Form, List, Modal, Tabs, NavBar, mobile UI, 表单, 列表

Comments

Markdown supported