有時(shí)~~~由于開(kāi)發(fā)環(huán)境限制,在內(nèi)網(wǎng)開(kāi)發(fā)不方便查看Antd的API的尷尬情況......
現(xiàn)在?。?!媽媽再也不用擔(dān)心我看不了API啦~~~~
Antd 2.x及以下的版本
網(wǎng)址:https://github.com/vueComponent/ant-design-vue/tree/main
2.x 及以上的,需要下載對(duì)應(yīng)的版本代碼
執(zhí)行 npm install
再執(zhí)行 npm run site
此時(shí),根目錄會(huì)生成 _site 文件夾,把里面的dist文件夾放到nginx里就可以啦!
Nginx 配置
server{
listen 38084;
server_name localhost;
location / {
try_files $uri $uri/ /index.html;
root html/ant-design-vue-gh-pages; #這里是你文件放的位置注意文件夾名稱
index index.html index.htm;
}
}
