Quasar 有四种使用方法。选择最适合你的选项:
¥There are four ways of using Quasar. Pick the one that suits you best:
比较(Comparison)
¥Comparison
功能 | Quasar UMD | Quasar CLI (Vite/Webpack) | Quasar Vite 插件 |
---|---|---|---|
能够嵌入到现有项目中 | 是 | * | 是的,如果是 Vite 应用,则安装 |
Quasar 渐进式集成 | 是 | * | * |
从公共 CDN 包含 Quasar | 是 | * | * |
构建 SPA、PWA | 是 | 是 | 是 |
构建服务器端渲染(+ 可选的 PWA 客户端接管) | * | 是 | * |
通过 Cordova 或 Capacitor 构建移动应用 | 是 | 是 | Yes(*) |
直接在手机上使用 HMR 开发移动应用。 | * | 是 | Yes(*) |
通过 Electron 构建桌面应用 | * | 是 | Yes(*) |
构建浏览器扩展 | * | 是 | Yes(*) |
Quasar 应用扩展 | * | 是 | * |
通过 Icon Genie CLI 轻松管理应用图标和启动画面 | * | 是 | * |
Quasar 组件的动态 RTL 支持 | 是 | 是 | * |
使用 Quasar 自动生成你自己的网站/应用 RTL 等效 CSS 规则 | * | 是 | * |
确保所有 “简单有效” 功能开箱即用,并使用最新、最强大的 Quasar 规范。 | * | 是 | * |
构建模式之间紧密集成,充分利用 Quasar 的所有功能。 | * | 是 | * |
一个代码库,用于创建 SPA、PWA、SSR、移动应用、Electron 应用和浏览器扩展 | * | 是 | * |
Tree Shaking | * | 是 | 是 |
支持 SFC(单文件组件 - 用于 Vue) | * | 是 | 是 |
通过动态 quasar.config 文件进行高级配置 | * | 是 | * |
单元和端到端测试支持 | * | 是 | 是 |
TypeScript 支持 | * | 是 | 是 |
最佳且最受欢迎的选择! | YES! | ||
Quasar UMD | Quasar CLI (Vite/Webpack) | Quasar Vite 插件 |
(*)重要!
虽然你可以通过 Vite(直接)或一些 Vue 社区构建的插件获得类似的多平台支持,但这些第三方支持的构建路径并未与 Quasar 的组件紧密集成。因此,当你在使用这些第三方插件时遇到问题时,你将不得不依赖每个插件开发者的支持。使用 Quasar,如果出现任何问题,你都可以获得一站式服务。此外,Quasar CLI 确保应用在性能、项目大小和最佳实践方面都达到最佳标准。你在其他任何地方都找不到这样的保证!
¥Although you may get a similar multi-platform support via Vite (directly) or some Vue community built plugins, these 3rd party supported build paths aren’t tightly integrated with Quasar’s components. Thus, as you run into problems with these 3rd party plugins, you will have to depend on the support of each individual plugin developer. With Quasar, you have a one-stop-shop should anything go wrong. Also, the Quasar CLI ensures applications are built to the best possible standards in both performance, project size and best practices. You will find no such guarantees anywhere else!
建议(Recommendation)
¥Recommendation
让我们开始使用 Quasar 的 CLI!你将立即启动并运行一个新项目。
¥Let’s get you going with Quasar’s CLI! You’ll be up and running with a new project in no time.
Start with Quasar CLIlaunch