@uview-pro/uview-pro

uView Pro uni-app UI component library. Invoke when developing uni-app pages, using uView components (u-button, u-input, u-form, etc.), or needing UI elements like forms, buttons, modals, toasts, navigation.

View in AI SkillSafe app
2 scan findings
0 downloads
0 stars
0 demos
SKILL.md
nameuview-pro
descriptionuView Pro uni-app UI component library. Invoke when developing uni-app pages, using uView components (u-button, u-input, u-form, etc.), or needing UI elements like forms, buttons, modals, toasts, navigation.

uView Pro 组件库技能

触发条件

在以下场景中自动调用此技能:

  1. 开发 uni-app 页面时
  2. 使用 u- 前缀的组件时(如 u-button, u-input, u-form 等)
  3. 需要表单、按钮、弹窗、提示、导航等 UI 组件时
  4. 需要使用工具函数(防抖、节流、深拷贝等)时
  5. 需要使用组合式 API 钩子(useToast, useModal, useTheme 等)时
  6. 需要 uView Pro 相关的布局模板时

组件快速索引

基础组件

组件 说明 文档
button 按钮组件 button
icon 图标组件 icon
image 图片组件 image
text 文本组件 text
tag 标签组件 tag
badge 徽章组件 badge
link 链接组件 link
avatar 头像组件 avatar

表单组件

组件 说明 文档
form 表单组件 form
input 输入框组件 input
field 表单字段组件 field
textarea 文本域组件 textarea
checkbox 复选框组件 checkbox
radio 单选框组件 radio
switch 开关组件 switch
slider 滑块组件 slider
rate 评分组件 rate
numberBox 数字输入框组件 numberBox
upload 上传组件 upload
picker 选择器组件 picker
select 选择器组件 select
keyboard 键盘组件 keyboard

数据展示组件

组件 说明 文档
card 卡片组件 card
grid 宫格组件 grid
cell 单元格组件 cell
collapse 折叠面板组件 collapse
table 表格组件 table
list 列表组件 indexList
skeleton 骨架屏组件 skeleton
empty 空状态组件 empty
loading 加载组件 loading
swiper 轮播组件 swiper
steps 步骤组件 steps
timeLine 时间轴组件 timeLine

反馈组件

组件 说明 文档
toast 提示组件 toast
modal 模态框组件 modal
popup 弹出层组件 popup
actionSheet 操作菜单组件 actionSheet
noticeBar 通知栏组件 noticeBar
alertTips 警告提示组件 alertTips
topTips 顶部提示组件 topTips
loadingPopup 加载弹窗组件 loadingPopup

导航组件

组件 说明 文档
navbar 导航栏组件 navbar
tabbar 标签栏组件 tabbar
tabs 标签页组件 tabs
subsection 分段器组件 subsection
pagination 分页组件 pagination

布局组件

组件 说明 文档
layout 布局组件 layout
gap 间距组件 gap
divider 分割线组件 divider
line 线条组件 line
section 区块组件 section
safeAreaInset 安全区域适配组件 safeAreaInset

功能组件

组件 说明 文档
calendar 日历组件 calendar
countDown 倒计时组件 countDown
countTo 数字滚动组件 countTo
backTop 返回顶部组件 backTop
lazyLoad 懒加载组件 lazyLoad
readMore 阅读更多组件 readMore
search 搜索组件 search
swipeAction 滑动操作组件 swipeAction
transition 过渡动画组件 transition
waterfall 瀑布流组件 waterfall

工具函数快速索引

工具 说明 文档
debounce 防抖工具 debounce
deepClone 深拷贝工具 deepClone
deepMerge 深度合并工具 deepMerge
route 路由工具 route
time 时间工具 time
test 测试工具(验证) test
queryParams 查询参数工具 queryParams
guid 生成GUID工具 guid
random 随机数工具 random
trim 字符串修剪工具 trim
color 颜色值工具 color
colorSwitch 颜色转换工具 colorSwitch

组合式 API 钩子

钩子 说明 文档
useToast 提示钩子 useToast
useModal 模态框钩子 useModal
useTheme 主题管理钩子 useTheme
useLocale 国际化钩子 useLocale
useDebounce 防抖钩子 useDebounce
useThrottle 节流钩子 useThrottle
useColor 颜色管理钩子 useColor

布局模板

布局 说明 文档
login 登录布局 login
address 地址布局 address
citySelect 城市选择布局 citySelect
comment 评论布局 comment
coupon 优惠券布局 coupon
order 订单布局 order
submitBar 提交栏布局 submitBar
menu 菜单布局 menu
keyboardPay 键盘支付布局 keyboardPay
wxCenter 微信中心布局 wxCenter

指南文档

指南 说明 文档
design 设计指南 design
customTheme 自定义主题指南 customTheme
customStyle 自定义样式指南 customStyle
customIcon 自定义图标指南 customIcon
i18n 国际化指南 i18n
faq 常见问题指南 faq
note 注意事项指南 note

使用示例

按钮组件

<template>
  <u-button type="primary" @click="handleClick">主要按钮</u-button>
  <u-button type="success">成功按钮</u-button>
  <u-button type="warning" plain>镂空按钮</u-button>
</template>

表单组件

<template>
  <u-form :model="form" :rules="rules" ref="formRef">
    <u-form-item label="用户名" prop="username">
      <u-input v-model="form.username" placeholder="请输入用户名" />
    </u-form-item>
    <u-form-item label="密码" prop="password">
      <u-input v-model="form.password" type="password" placeholder="请输入密码" />
    </u-form-item>
  </u-form>
</template>

提示组件

<script setup>
import { useToast } from '@/uni_modules/uview-pro'

const toast = useToast()

const showToast = () => {
  toast.show({
    title: '操作成功',
    type: 'success'
  })
}
</script>

完整组件列表

指南类 Skills

组件类 Skills

工具类 Skills

钩子类 Skills

布局类 Skills

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@uview-pro/uview-pro/verified)](https://skillsafe.ai/skill/@uview-pro/uview-pro/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@uview-pro/uview-pro/installs)](https://skillsafe.ai/skill/@uview-pro/uview-pro/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@uview-pro/uview-pro/scan)](https://skillsafe.ai/skill/@uview-pro/uview-pro/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@uview-pro/uview-pro/eval)](https://skillsafe.ai/skill/@uview-pro/uview-pro/)