Ant Design Pro V4下载运行_下载antd design pro

? Select the boilerplate type (Use arrow keys)

ant-design-pro - Create project with a layout-only ant-design-pro boilerplate, use together with umi block.
app - Create project with a simple boilerplate, support typescript.
block - Create a umi block.
library - Create a library with umi.
plugin - Create a umi plugin.


#### 1.2.2选择Pro V4:



? � Be the first to experience the new umi@3 ? (Use arrow keys)
Pro V5

Pro V4


#### 1.2.3选择JavaScript:



? � Which language do you want to use? (Use arrow keys)

TypeScript
JavaScript


#### 1.2.4simple和complete的区别:(这里我选择simple)



? � Do you need all the blocks or a simple scaffold? (Use arrow keys)

simple
complete


simple:只有基础功能,包含的组件和功能较少。选择simple后下一步还要选择ant的版本。


![](https://img-blog.csdnimg.cn/20200628100009735.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L01yX1hpTXU=,size_16,color_FFFFFF,t_70)


complete:包含的组件和功能较多,与线上示例:[https://preview.pro.ant.design/dashboard/analysis]( )完全一致。选择complete后默认使用的ant版本是4,不用再选择ant版本。


![](https://img-blog.csdnimg.cn/20200628100403782.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L01yX1hpTXU=,size_16,color_FFFFFF,t_70)


#### 1.2.5 选择antd@4:



? � Time to use better, faster and latest antd@4! (Use arrow keys)

antd@4
antd@3


经过上述几步操作后就开始下载Ant Design Pro项目了,完整的操作过程。



H:\antcomplete>npm create umi
? Select the boilerplate type ant-design-pro
? � Be the first to experience the new umi@3 ? Pro V4
? � Which language do you want to use? JavaScript
? � Do you need all the blocks or a simple scaffold? simple
? � Time to use better, faster and latest antd@4! antd@4
Cloning into ‘H:\antcomplete’…
remote: Enumerating objects: 188, done.
remote: Counting objects: 100% (188/188), done.
remote: Compressing objects: 100% (173/173), done.
Rremote: Total 188 (delta 21), reused 67 (delta 8), pack-reused 0
Receiving objects: 100% (188/188), 296.12 KiB | 35.00 KiB/s, done.

Resolving deltas: 100% (21/21), done.

� clone success
[Sylvanas] Prepare js environment…
[JS] Clean up…
Clean up…
✨ File Generate Done

H:\antcomplete>


#### **1.2.6下载完成后在antcomplete目录下会共有16个文件及文件夹。(此数量仅代表编写此文档时下载的数量)**


![](https://img-blog.csdnimg.cn/20200628101036853.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L01yX1hpTXU=,size_16,color_FFFFFF,t_70)


#### 1.2.7安装依赖:



yarn

npm install


推荐使用npm install,原因同上。


#### 1.2.8启动



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值