uni-app README

The project's README from github.com/dcloudio/uni-app. As one markdown file: README.md.

简体中文 | English

uni-app是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、鸿蒙、Web(响应式)、以及各种小程序(微信/支付宝/百度/抖音/飞书/QQ/快手/钉钉/淘宝/京东/小红书)、快应用、鸿蒙元服务等多个平台。

DCloud公司拥有上千万开发者、数百万应用、几十亿手机端月活用户、数万款uni-app插件,开发者可以放心选择。

uni-app分 uni-app 和 uni-app x。

  1. 在view和text组件性能测试中,uni-app x 在Android、iOS、鸿蒙 3个App平台的渲染速度是原生的2~3倍。
  2. 在长列表掉帧测试中,uni-app x 的长列表帧率,在Android、iOS、鸿蒙 3个App平台,是原生的2~4倍。

除了view、text、list,还有更多评测内容,详见benchmark目录下的3个平台的评测报告。

uts是一门类ts的、跨平台的语言。uts在Android平台编译为kotlin、在iOS平台编译为swift、在鸿蒙next平台上编译为ArkTS、在Web和小程序平台编译为js。uts语言主要用于原生插件扩展。

uni-app在手,做啥都不愁。不管用户需要做哪个平台的项目,你都可以快速交付,不需要转换开发思维、不需要更改开发习惯。

即使不跨端,uni-app也是更好的小程序开发框架、更好的App开发框架、更方便的Web开发框架。

uni-app是一个AI友好的技术框架,使用AI擅长的vue、js/ts、css即可完成应用开发。uni-app还为AI模型训练提供了强化学习工具,详见。同时DCloud公司提供了uni-agent,可以更方便的使用AI开发uni-app

快速体验

hello uni-app x 示例效果图

注:
- 某些平台不能提交简单demo,故补充了一些其他功能;hello uni-app (x)示例代码可从 github 获取
- 快应用仅支持 vivo 、oppo、华为

仓库介绍

uni-app x 分支,为 uni-app x 版本的开源仓库。

uni-app,分 vue2 和 vue3,分支分别是:uni-app-vue2、uni-app-vue3。

uni-app x分支目录说明:

一套代码,运行到多个平台

uni-app实现了一套代码,同时运行到多个平台;如下图所示,一套代码,同时运行到iOS模拟器、Android模拟器、web、微信开发者工具、支付宝小程序Studio、百度开发者工具、抖音开发者工具、QQ开发者工具(底部每个终端选项卡,代表1个终端模拟器):

实际运行效果如下(点击图片可放大):

uni-app (dcloudio/uni-app)

vue3
Searching Database…

41.6K ·GitHub
What is this?uni-app is a cross-platform framework built on Vue.js: you write one codebase and ship it to iOS, Android, HarmonyOS, the responsive Web, and a wide range of mini-program platforms (WeChat, Alipay, Baidu, Douyin, QQ, Kuaishou, DingTalk, Taobao, JD, Xiaohongshu), plus quick apps and HarmonyOS mini services.
Is this the same as classic uni-app, or something different?The project splits into two generations: classic uni-app (older, uses the same tech architecture as mini-programs, JS logic layer with a web-view renderer) and uni-app x, which is this repo's main branch and uses js/ts/uts with native rendering instead of web-view.
How do I start building with it?The repository ships 'docs' and 'examples' folders with documentation and sample projects, and the README's 'quick experience' demo shows apps running simultaneously on iOS/Android simulators, Web, and various mini-program dev tools; follow the docs folder or DCloud's HBuilderX IDE to scaffold a project.
Do I need to learn a new language, or is Vue/JS/TS enough?Regular app logic is written in Vue plus js/ts, but native plugin extensions use 'uts', a TypeScript-like cross-platform language that compiles to Kotlin on Android, Swift on iOS, ArkTS on HarmonyOS, and JS on Web/mini-programs.
If I want classic uni-app with Vue2 or Vue3 instead of uni-app x, where do I look?This main branch only contains uni-app x; the classic Vue2 and Vue3 versions of uni-app live in separate branches named uni-app-vue2 and uni-app-vue3.
Is this only for mobile app developers, or useful for mini-program/web devs too?It targets all three: it's pitched as a better mini-program framework (Vue's ecosystem beats vendor-specific mini-program syntax), a better App framework, and a more convenient Web framework, all from one Vue-based codebase.
How does uni-app x claim to outperform typical hybrid/webview frameworks?Because uni-app x compiles to native rendering (via uts) instead of web-view, its benchmark reports show view/text rendering speeds 2-3x native on Android, iOS and HarmonyOS, and long-list scrolling frame rates 2-4x native.
What is uni-agent?uni-agent is a tool provided by DCloud (the company behind uni-app) that makes it easier to build uni-app projects using AI assistance.
Why does the README call uni-app 'AI-friendly'?Because it relies on Vue's declarative template syntax (which AI models already know well) instead of imperative native APIs, so AI coding assistants make fewer mistakes and use fewer tokens; DCloud also offers reinforcement-learning tooling for training AI models on uni-app.
Which mini-program platforms can I target from the same code?WeChat, Alipay, Baidu, Douyin, Feishu, QQ, Kuaishou, DingTalk, Taobao, JD, and Xiaohongshu mini-programs, plus quick apps and HarmonyOS mini services, in addition to iOS, Android, HarmonyOS and the Web.
Creator
dcloudio
Size
8.1 GB
Stars
41.6K
Updated
CommitOct 16
Age
8y
Commits · 90 Days