今天来盘点一下几个常用的ui组件库的离线文档地址
- element UI(vue2.x)地址:
把项目下来,然后本地跑下载依赖,运行 npm run deploy:build,打包后在example/element-ui下启一个服务就可以打开了。
https://github.com/ElemeFE/element
- element plus(vue3.x)地址:
https://github.com/element-plus/element-plus/tree/gh-pages
- ant-design-vue步骤
git clone -b gh-pages git@github.com:githubhyh/ant-design-vue.git
本地起服务器的方法:
方法一、sgo
//全局安装sgo
npm install -g sgo
//在项目根目录运行
sgo --fallback index.html
方法二、anywhere
//全局安装anywhere
npm install anywhere -g
//在项目根目录运行
anywhere
方法三、vscode的插件live serve
不能联网的情况下,可以安装vscode,使用vscode的插件live serve
(打开html文件右下角会有一个广播一样的东西)