可以看到这比命令行要多出几个信息,上面的命令行只要求了 App Name 和 Template 难道强大的命令行不支持设置这些么?答案是否定的,当然可以设置这些信息,只是以参数的形式而已,先不说这个,填写好上面的信息以后我们点击[create App]按钮,这时我们进入了下一步,选择代码仓库(Choose a git host),你会看到下面有一个[Skip]按钮说明这步不是必须的,我们先选择一个git仓库,这里我选择github,其他的感兴趣的同学可以自己试试。点击[connect],这时会弹出一个窗口,申请对应git仓库的鉴权认证,认证通过后我们点击[choose],等待程序运行一会儿后工程就会被上传到git仓库中,并且会跳转到一个DashBoard,提供了可视化管理工程的页面(也太高大上了吧),右侧我们看到如何把代码下载到本地,并运行它,真的是很方便。
// 增加CSS文件为组件服务,加在根组件下 /* Core CSS required for Ionic components to work properly */ import'@ionic/react/css/core.css';
/* Basic CSS for apps built with Ionic */ import'@ionic/react/css/normalize.css'; import'@ionic/react/css/structure.css'; import'@ionic/react/css/typography.css';
/* Optional CSS utils that can be commented out */ import'@ionic/react/css/padding.css'; import'@ionic/react/css/float-elements.css'; import'@ionic/react/css/text-alignment.css'; import'@ionic/react/css/text-transformation.css'; import'@ionic/react/css/flex-utils.css'; import'@ionic/react/css/display.css';
// 增加CSS文件为组件服务 main.js /* Core CSS required for Ionic components to work properly */ import'@ionic/vue/css/core.css';
/* Basic CSS for apps built with Ionic */ import'@ionic/vue/css/normalize.css'; import'@ionic/vue/css/structure.css'; import'@ionic/vue/css/typography.css';
/* Optional CSS utils that can be commented out */ import'@ionic/vue/css/padding.css'; import'@ionic/vue/css/float-elements.css'; import'@ionic/vue/css/text-alignment.css'; import'@ionic/vue/css/text-transformation.css'; import'@ionic/vue/css/flex-utils.css'; import'@ionic/vue/css/display.css';
From here, you can learn about how to develop with Ionic Framework in our [Ionic Vue Quickstart Guide](https://ionicframework.com/docs/vue/quickstart).
## Ionicons CDN
Ionicons is packaged by defaultwith the Ionic Framework, so no installation is necessary if you're using Ionic. To use Ionicons without Ionic Framework, place the following `<script>` near the end of your page, right before the closing `</body>` tag. <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ionicons/ionicons.esm.js"></script> <script nomodule src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ionicons/ionicons.js"></script>