uniapp-x

uni-app x 跨平台应用开发引擎。适用于使用 UTS、uvue、Vue 语法开发 Android/iOS/鸿蒙/Web/小程序应用时的能力与用法。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "uniapp-x" with this command: npx skills add hairyf/skills/hairyf-skills-uniapp-x

uni-app x

本 skill 基于 uni-app x 文档生成,生成日期 2026-01-29。

uni-app x 是下一代 uni-app,跨平台应用开发引擎。包含 UTS 语言、uvue 渲染引擎、uni 组件与 API 及扩展机制。适用于需要为 Agent 提供「如何用 uni-app x 写页面、组件、API、UTS、样式与工程配置」等能力说明的场景。

核心参考

主题说明参考
项目结构新建项目、目录结构、运行与发行core-project
页面与 uvue页面文件、构成、pages.jsoncore-page
页面生命周期onLoad、onShow、onReady、onBackPress 等core-lifecycle
App.uvue应用入口、应用生命周期、globalData、全局样式core-app
manifest.json应用配置、appid、版本、图标、uni-app-x 标识core-manifest
编译器与静态资源条件编译、static、编译缓存core-compiler

UTS 语言

主题说明参考
UTS 概述类型声明、变量/常量、与 TS 的差异uts-overview
数据类型boolean、number、string、Array、UTSJSONObject、typeuts-data-type
与 JS 开发差别强类型、data 类型、事件参数类型features-codegap
条件编译#ifdef APP-ANDROID、平台与项目类型判断uts-conditional
函数与模块函数定义、异常 try-catch、export/importuts-function-module

Vue / uvue

主题说明参考
uvue 概述SFC、template/script/style、组合式与选项式vue-uvue
组件创建、easycom、手动引用、ref 与 defineExposevue-component
内置指令v-if、v-for、v-show、v-model、v-bind、v-html 等features-vue-directives
组件标志id、ref、UniElement、getElementById、createXXXContextfeatures-idref
组合式 APIref、computed、watch、reactive、readonly、watchEffectvue-composition-api
数据绑定与修饰符响应式状态、事件修饰符、v-model 修饰符vue-data-bind-modifier

样式 (CSS/ucss)

主题说明参考
uvue CSSflex 布局、样式不继承、选择器与优先级css-ucss

组件与 API

主题说明参考
组件概述内置组件、自定义组件、easycom、uts 组件features-component-overview
API 概述uni API、全局 API、原生 API 调用features-api-overview
路由与跳转navigateTo、redirectTo、reLaunch、switchTab、navigateBack、参数传递features-navigation
本地存储setStorageSync、getStorageSync、key-value、对象需 as UTSJSONObjectfeatures-storage
页面栈与当前页getCurrentPages、UniPage、this.$page、getDialogPagesfeatures-get-current-pages
dialogPage弹窗页、openDialogPage、closeDialogPage、与主 page 区别features-dialog-page
全局状态globalData、专用 store 模块(reactive)features-global-state
长列表与滚动scroll-view、list-view、吸顶、嵌套滚动、sticky-headerfeatures-list-scroll
request 与网络流式响应、cookie、拦截器、泛型与 Task 释放features-api-request
事件与系统信息uni.$on/$emit、getLaunchOptionsSync、getSystemInfofeatures-api-event-system-info
DOM 与 UniElementgetElementById、ref、样式与 draw API、跟手动效features-dom
表单 formsubmit/reset、form-type、子组件与数据提交features-form
宽屏适配leftWindow/rightWindow、页面作组件、窗体通信features-adapt
国际化多语言、lime-i18n、vue-i18n(Web)、uni.getLocalefeatures-i18n
主题与暗黑theme.json、setAppTheme、onAppThemeChange、pages.json 样式features-theme-dark
编译到 WebSPA、与 App 差异、refs 类型、SSR 简述features-web

教程与最佳实践

主题说明参考
request 联网UTSJSONObject 与 type 泛型处理接口数据best-practices-request
选项式转组合式改造要点、生命周期与 ref 类型best-practices-options-to-composition
性能优化DOM 数量、动画用 transform、长列表与分批加载best-practices-performance
语言服务与 AI语言服务插件、Cursor/VSCode、AI Rules、MCP、AI 修复tutorial-ls-ai-rules

进阶

主题说明参考
原生 SDK 与混合开发嵌入原生工程、导出应用原生资源、集成文档advanced-native-sdk

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tailwindcss

No summary provided by upstream source.

Repository SourceNeeds Review
754-hairyf
General

hairy-utils

No summary provided by upstream source.

Repository SourceNeeds Review
689-hairyf
General

react-use

No summary provided by upstream source.

Repository SourceNeeds Review
503-hairyf
General

motion

No summary provided by upstream source.

Repository SourceNeeds Review
488-hairyf