uni-app by uni-helper/skills
npx skills add https://github.com/uni-helper/skills --skill uni-app该技能基于 uni-app 文档生成,生成于 2026-01-30。
uni-app 是一个基于 Vue.js 的跨平台框架,用于开发可运行于 iOS、Android、HarmonyOS、Web(响应式)以及各种小程序平台(微信/支付宝/百度/抖音/飞书/QQ/快手/钉钉/淘宝/京东/小红书)的应用程序。
| 主题 | 描述 | 参考 |
|---|---|---|
| 核心框架 | 项目结构、平台支持、条件编译 | core-framework |
| 视图组件 | view, scroll-view, swiper, movable-area, cover-view | core-view-components |
| 表单组件 | input, textarea, picker, checkbox, radio, switch, slider | core-form-components |
| 主题 | 描述 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 参考 |
|---|
| 媒体组件 | image, video, camera, live-player, map | feature-media-components |
| 导航 | navigator, 路由, 页面导航 | feature-navigation |
| UI 反馈 | toast, modal, loading, action sheet, pull refresh | feature-ui-feedback |
| 主题 | 描述 | 参考 |
|---|---|---|
| 网络 | HTTP 请求、文件上传/下载、WebSocket | feature-network |
| 存储 | 本地存储、文件系统、缓存 | feature-storage |
| 系统信息 | 设备信息、网络状态、屏幕、振动 | feature-system-info |
| 文件操作 | 图片/视频选择、文件系统操作 | feature-file-operations |
| 位置 | 地理定位、地图组件、地址选择 | feature-location |
| 生命周期 | 应用和页面的生命周期钩子 | feature-lifecycle |
| 主题 | 描述 | 参考 |
|---|---|---|
| pages.json | 页面路由、标签栏、全局样式、分包 | config-pages |
| manifest.json | 应用配置、权限、平台设置 | config-manifest |
| 平台 | 支持级别 |
|---|---|
| iOS App | 完全支持 |
| Android App | 完全支持 |
| HarmonyOS Next | 完全支持 |
| H5/Web | 完全支持 |
| 微信小程序 | 完全支持 |
| 支付宝小程序 | 完全支持 |
| 百度智能小程序 | 完全支持 |
| 抖音小程序 | 完全支持 |
| QQ 小程序 | 完全支持 |
| 快手小程序 | 完全支持 |
| 飞书小程序 | 完全支持 |
| 京东小程序 | 完全支持 |
| HarmonyOS 元服务 | 完全支持 |
使用特殊注释编写特定平台的代码:
<!-- #ifdef APP-PLUS -->
<view>仅 App 端</view>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view>仅微信小程序端</view>
<!-- #endif -->
大多数 uni-app API 在不提供回调函数时支持 Promise:
const res = await uni.request({ url: 'https://api.example.com' })
当需要查询 uni-app 官方文档时,优先调用 search-docs-by-Uniapp-official MCP 工具搜索相关 API 文档和使用示例。
使用场景:
工具安装: 如果检测到该 MCP 工具不可用,引导用户访问 https://github.com/uni-helper/mcp 进行安装。
每周安装量
504
仓库
GitHub Stars
38
首次出现
Jan 30, 2026
安全审计
安装于
opencode391
codex389
gemini-cli380
github-copilot370
cursor363
kimi-cli361
The skill is based on uni-app documentation, generated at 2026-01-30.
uni-app is a Vue.js-based cross-platform framework for developing applications that run on iOS, Android, HarmonyOS, Web (responsive), and various mini-program platforms (WeChat/Alipay/Baidu/Douyin/Feishu/QQ/Kuaishou/DingTalk/Taobao/Jingdong/Xiaohongshu).
| Topic | Description | Reference |
|---|---|---|
| Core Framework | Project structure, platform support, condition compilation | core-framework |
| View Components | view, scroll-view, swiper, movable-area, cover-view | core-view-components |
| Form Components | input, textarea, picker, checkbox, radio, switch, slider | core-form-components |
| Topic | Description | Reference |
|---|---|---|
| Media Components | image, video, camera, live-player, map | feature-media-components |
| Navigation | navigator, routing, page navigation | feature-navigation |
| UI Feedback | toast, modal, loading, action sheet, pull refresh | feature-ui-feedback |
| Topic | Description | Reference |
|---|---|---|
| Network | HTTP requests, file upload/download, WebSocket | feature-network |
| Storage | Local storage, file system, caching | feature-storage |
| System Info | Device info, network status, screen, vibration | feature-system-info |
| File Operations | Image/video selection, file system operations | feature-file-operations |
| Location | Geolocation, map component, address selection | feature-location |
| Lifecycle | App and page lifecycle hooks |
| Topic | Description | Reference |
|---|---|---|
| pages.json | Page routing, tab bar, global styles, sub-packages | config-pages |
| manifest.json | App config, permissions, platform settings | config-manifest |
| Platform | Support Level |
|---|---|
| iOS App | Full support |
| Android App | Full support |
| HarmonyOS Next | Full support |
| H5/Web | Full support |
| WeChat Mini Program | Full support |
| Alipay Mini Program | Full support |
| Baidu Smart Program | Full support |
| Douyin Mini Program | Full support |
| QQ Mini Program | Full support |
| Kuaishou Mini Program | Full support |
| Feishu Mini Program | Full support |
| JD Mini Program | Full support |
| HarmonyOS Meta Service | Full support |
Use special comments to write platform-specific code:
<!-- #ifdef APP-PLUS -->
<view>App only</view>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view>WeChat only</view>
<!-- #endif -->
Most uni-app APIs support Promise when no callback is provided:
const res = await uni.request({ url: 'https://api.example.com' })
当需要查询 uni-app 官方文档时,优先调用 search-docs-by-Uniapp-official MCP 工具搜索相关 API 文档和使用示例。
使用场景:
工具安装: 如果检测到该 MCP 工具不可用,引导用户访问 https://github.com/uni-helper/mcp 进行安装。
Weekly Installs
504
Repository
GitHub Stars
38
First Seen
Jan 30, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode391
codex389
gemini-cli380
github-copilot370
cursor363
kimi-cli361
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
| feature-lifecycle |